-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
customization: Utilize shortuct_input element in key combination dialog
Icon name had to change as it clashed with a settings property that was causing crashes in browser tests. Bug: b/241965717 Change-Id: I52c966f0b0d12c8509793d7470578d156cdab471 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4953426 Reviewed-by: Jimmy Gong <jimmyxgong@chromium.org> Commit-Queue: David Padlipsky <dpad@google.com> Cr-Commit-Position: refs/heads/main@{#1216381}
- Loading branch information
1 parent
a0884bb
commit 4aa7d74
Showing
14 changed files
with
141 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
chrome/browser/resources/ash/settings/device_page/shortcut_input_mojo_interface_provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import {assert} from 'chrome://resources/js/assert.js'; | ||
|
||
import {ShortcutInputProvider} from '../mojom-webui/shortcut_input_provider.mojom-webui.js'; | ||
|
||
import {ShortcutInputProviderInterface} from './input_device_settings_types.js'; | ||
|
||
/** | ||
* @fileoverview | ||
* Provides singleton access to mojo interfaces. | ||
*/ | ||
|
||
let shortcutInputProvider: ShortcutInputProviderInterface|null; | ||
|
||
export function getShortcutInputProvider(): ShortcutInputProviderInterface { | ||
if (!shortcutInputProvider) { | ||
shortcutInputProvider = ShortcutInputProvider.getRemote(); | ||
} | ||
|
||
assert(!!shortcutInputProvider); | ||
return shortcutInputProvider; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.