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

Side by Side Diff: components/exo/wm_helper_ash.h

Issue 2506263002: exo: Implement support for zcr_keyboard_configuration_v1 protocol. (Closed)
Patch Set: add one more TODO Created 4 years 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
« no previous file with comments | « components/exo/wm_helper.cc ('k') | components/exo/wm_helper_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_EXO_WM_HELPER_ASH_H_ 5 #ifndef COMPONENTS_EXO_WM_HELPER_ASH_H_
6 #define COMPONENTS_EXO_WM_HELPER_ASH_H_ 6 #define COMPONENTS_EXO_WM_HELPER_ASH_H_
7 7
8 #include "ash/common/shell_observer.h" 8 #include "ash/common/shell_observer.h"
9 #include "ash/common/system/accessibility_observer.h" 9 #include "ash/common/system/accessibility_observer.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/exo/wm_helper.h" 11 #include "components/exo/wm_helper.h"
12 #include "ui/aura/client/cursor_client_observer.h" 12 #include "ui/aura/client/cursor_client_observer.h"
13 #include "ui/aura/client/focus_change_observer.h" 13 #include "ui/aura/client/focus_change_observer.h"
14 #include "ui/events/devices/input_device_event_observer.h"
14 #include "ui/wm/public/activation_change_observer.h" 15 #include "ui/wm/public/activation_change_observer.h"
15 16
16 namespace exo { 17 namespace exo {
17 18
18 // A helper class for accessing WindowManager related features. 19 // A helper class for accessing WindowManager related features.
19 class WMHelperAsh : public WMHelper, 20 class WMHelperAsh : public WMHelper,
20 public aura::client::ActivationChangeObserver, 21 public aura::client::ActivationChangeObserver,
21 public aura::client::FocusChangeObserver, 22 public aura::client::FocusChangeObserver,
22 public aura::client::CursorClientObserver, 23 public aura::client::CursorClientObserver,
23 public ash::AccessibilityObserver, 24 public ash::AccessibilityObserver,
24 public ash::ShellObserver { 25 public ash::ShellObserver,
26 public ui::InputDeviceEventObserver {
25 public: 27 public:
26 WMHelperAsh(); 28 WMHelperAsh();
27 ~WMHelperAsh() override; 29 ~WMHelperAsh() override;
28 30
29 // Overriden from WMHelper: 31 // Overriden from WMHelper:
30 const display::ManagedDisplayInfo GetDisplayInfo( 32 const display::ManagedDisplayInfo GetDisplayInfo(
31 int64_t display_id) const override; 33 int64_t display_id) const override;
32 aura::Window* GetContainer(int container_id) override; 34 aura::Window* GetContainer(int container_id) override;
33 aura::Window* GetActiveWindow() const override; 35 aura::Window* GetActiveWindow() const override;
34 aura::Window* GetFocusedWindow() const override; 36 aura::Window* GetFocusedWindow() const override;
(...skipping 22 matching lines...) Expand all
57 void OnCursorSetChanged(ui::CursorSetType cursor_set) override; 59 void OnCursorSetChanged(ui::CursorSetType cursor_set) override;
58 60
59 // Overridden from ash::AccessibilityObserver: 61 // Overridden from ash::AccessibilityObserver:
60 void OnAccessibilityModeChanged( 62 void OnAccessibilityModeChanged(
61 ash::AccessibilityNotificationVisibility notify) override; 63 ash::AccessibilityNotificationVisibility notify) override;
62 64
63 // Overriden from ash::ShellObserver: 65 // Overriden from ash::ShellObserver:
64 void OnMaximizeModeStarted() override; 66 void OnMaximizeModeStarted() override;
65 void OnMaximizeModeEnded() override; 67 void OnMaximizeModeEnded() override;
66 68
69 // Overriden from ui::InputDeviceEventObserver:
70 void OnKeyboardDeviceConfigurationChanged() override;
71
67 private: 72 private:
68 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); 73 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh);
69 }; 74 };
70 75
71 } // namespace exo 76 } // namespace exo
72 77
73 #endif // COMPONENTS_EXO_WM_HELPER_H_ 78 #endif // COMPONENTS_EXO_WM_HELPER_H_
OLDNEW
« no previous file with comments | « components/exo/wm_helper.cc ('k') | components/exo/wm_helper_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698