| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 10 #include "ui/events/devices/input_device_event_observer.h" | 10 #include "ui/events/devices/input_device_event_observer.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // SettingsPageUIHandler implementation. | 33 // SettingsPageUIHandler implementation. |
| 34 void RegisterMessages() override; | 34 void RegisterMessages() override; |
| 35 | 35 |
| 36 // ui::InputDeviceEventObserver implementation. | 36 // ui::InputDeviceEventObserver implementation. |
| 37 void OnKeyboardDeviceConfigurationChanged() override; | 37 void OnKeyboardDeviceConfigurationChanged() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // Initializes the page with the current keyboard information. | 40 // Initializes the page with the current keyboard information. |
| 41 void HandleInitialize(const base::ListValue* args); | 41 void HandleInitialize(const base::ListValue* args); |
| 42 | 42 |
| 43 // Shows the Ash keyboard shortcuts overlay. |
| 44 void HandleShowKeyboardShortcutsOverlay(const base::ListValue* args) const; |
| 45 |
| 43 // Shows or hides the Caps Lock and Diamond key settings based on whether the | 46 // Shows or hides the Caps Lock and Diamond key settings based on whether the |
| 44 // system status. | 47 // system status. |
| 45 void UpdateShowKeys() const; | 48 void UpdateShowKeys() const; |
| 46 | 49 |
| 47 Profile* profile_; // Weak pointer. | 50 Profile* profile_; // Weak pointer. |
| 48 | 51 |
| 49 DISALLOW_COPY_AND_ASSIGN(KeyboardHandler); | 52 DISALLOW_COPY_AND_ASSIGN(KeyboardHandler); |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 } // namespace settings | 55 } // namespace settings |
| 53 } // namespace chromeos | 56 } // namespace chromeos |
| 54 | 57 |
| 55 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ | 58 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ |
| OLD | NEW |