Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.h

Issue 2028593004: Add new InputDeviceManager interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_keyboard
Patch Set: Fix windows compile error. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/scoped_observer.h" 9 #include "base/scoped_observer.h"
10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" 10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
11 #include "ui/events/devices/input_device_event_observer.h" 11 #include "ui/events/devices/input_device_event_observer.h"
12 12
13 namespace base { 13 namespace base {
14 class ListValue; 14 class ListValue;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 class WebUI; 18 class WebUI;
19 } 19 }
20 20
21 namespace ui { 21 namespace ui {
22 class DeviceDataManager; 22 class InputDeviceManager;
23 } 23 }
24 24
25 class Profile; 25 class Profile;
26 26
27 namespace chromeos { 27 namespace chromeos {
28 namespace settings { 28 namespace settings {
29 29
30 // Chrome OS "Keyboard" settings page UI handler. 30 // Chrome OS "Keyboard" settings page UI handler.
31 class KeyboardHandler 31 class KeyboardHandler
32 : public ::settings::SettingsPageUIHandler, 32 : public ::settings::SettingsPageUIHandler,
(...skipping 16 matching lines...) Expand all
49 49
50 // Shows the Ash keyboard shortcuts overlay. 50 // Shows the Ash keyboard shortcuts overlay.
51 void HandleShowKeyboardShortcutsOverlay(const base::ListValue* args) const; 51 void HandleShowKeyboardShortcutsOverlay(const base::ListValue* args) const;
52 52
53 // Shows or hides the Caps Lock and Diamond key settings based on whether the 53 // Shows or hides the Caps Lock and Diamond key settings based on whether the
54 // system status. 54 // system status.
55 void UpdateShowKeys(); 55 void UpdateShowKeys();
56 56
57 Profile* profile_; // Weak pointer. 57 Profile* profile_; // Weak pointer.
58 58
59 ScopedObserver<ui::DeviceDataManager, KeyboardHandler> observer_; 59 ScopedObserver<ui::InputDeviceManager, KeyboardHandler> observer_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(KeyboardHandler); 61 DISALLOW_COPY_AND_ASSIGN(KeyboardHandler);
62 }; 62 };
63 63
64 } // namespace settings 64 } // namespace settings
65 } // namespace chromeos 65 } // namespace chromeos
66 66
67 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_ 67 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_DEVICE_KEYBOARD_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698