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

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

Issue 2645663004: exo: Initial support for multiple displays in ARC (Closed)
Patch Set: Address nits Created 3 years, 9 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
« 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 "ash/display/window_tree_host_manager.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "components/exo/wm_helper.h" 12 #include "components/exo/wm_helper.h"
12 #include "ui/aura/client/cursor_client_observer.h" 13 #include "ui/aura/client/cursor_client_observer.h"
13 #include "ui/aura/client/focus_change_observer.h" 14 #include "ui/aura/client/focus_change_observer.h"
14 #include "ui/events/devices/input_device_event_observer.h" 15 #include "ui/events/devices/input_device_event_observer.h"
15 #include "ui/wm/public/activation_change_observer.h" 16 #include "ui/wm/public/activation_change_observer.h"
16 17
17 namespace exo { 18 namespace exo {
18 19
19 // A helper class for accessing WindowManager related features. 20 // A helper class for accessing WindowManager related features.
20 class WMHelperAsh : public WMHelper, 21 class WMHelperAsh : public WMHelper,
21 public aura::client::ActivationChangeObserver, 22 public aura::client::ActivationChangeObserver,
22 public aura::client::FocusChangeObserver, 23 public aura::client::FocusChangeObserver,
23 public aura::client::CursorClientObserver, 24 public aura::client::CursorClientObserver,
24 public ash::AccessibilityObserver, 25 public ash::AccessibilityObserver,
25 public ash::ShellObserver, 26 public ash::ShellObserver,
27 public ash::WindowTreeHostManager::Observer,
26 public ui::InputDeviceEventObserver { 28 public ui::InputDeviceEventObserver {
27 public: 29 public:
28 WMHelperAsh(); 30 WMHelperAsh();
29 ~WMHelperAsh() override; 31 ~WMHelperAsh() override;
30 32
31 // Overriden from WMHelper: 33 // Overriden from WMHelper:
32 const display::ManagedDisplayInfo GetDisplayInfo( 34 const display::ManagedDisplayInfo GetDisplayInfo(
33 int64_t display_id) const override; 35 int64_t display_id) const override;
34 aura::Window* GetContainer(int container_id) override; 36 aura::Window* GetContainer(int container_id) override;
35 aura::Window* GetActiveWindow() const override; 37 aura::Window* GetActiveWindow() const override;
(...skipping 24 matching lines...) Expand all
60 62
61 // Overridden from ash::AccessibilityObserver: 63 // Overridden from ash::AccessibilityObserver:
62 void OnAccessibilityModeChanged( 64 void OnAccessibilityModeChanged(
63 ash::AccessibilityNotificationVisibility notify) override; 65 ash::AccessibilityNotificationVisibility notify) override;
64 66
65 // Overriden from ash::ShellObserver: 67 // Overriden from ash::ShellObserver:
66 void OnMaximizeModeStarted() override; 68 void OnMaximizeModeStarted() override;
67 void OnMaximizeModeEnding() override; 69 void OnMaximizeModeEnding() override;
68 void OnMaximizeModeEnded() override; 70 void OnMaximizeModeEnded() override;
69 71
72 // Overriden from ash::WindowTreeHostManager::Observer:
73 void OnDisplayConfigurationChanged() override;
74
70 // Overriden from ui::InputDeviceEventObserver: 75 // Overriden from ui::InputDeviceEventObserver:
71 void OnKeyboardDeviceConfigurationChanged() override; 76 void OnKeyboardDeviceConfigurationChanged() override;
72 77
73 private: 78 private:
74 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); 79 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh);
75 }; 80 };
76 81
77 } // namespace exo 82 } // namespace exo
78 83
79 #endif // COMPONENTS_EXO_WM_HELPER_H_ 84 #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