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

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

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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/wayland/server.cc ('k') | components/exo/wm_helper_ash.h » ('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_H_ 5 #ifndef COMPONENTS_EXO_WM_HELPER_H_
6 #define COMPONENTS_EXO_WM_HELPER_H_ 6 #define COMPONENTS_EXO_WM_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "ui/base/cursor/cursor.h" 10 #include "ui/base/cursor/cursor.h"
11 11
12 namespace ash {
13 class DisplayInfo;
14 }
15
16 namespace aura { 12 namespace aura {
17 class Window; 13 class Window;
18 } 14 }
19 15
16 namespace display {
17 class ManagedDisplayInfo;
18 }
19
20 namespace ui { 20 namespace ui {
21 class EventHandler; 21 class EventHandler;
22 } 22 }
23 23
24 namespace exo { 24 namespace exo {
25 25
26 // A helper class for accessing WindowManager related features. 26 // A helper class for accessing WindowManager related features.
27 class WMHelper { 27 class WMHelper {
28 public: 28 public:
29 class ActivationObserver { 29 class ActivationObserver {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 void AddActivationObserver(ActivationObserver* observer); 70 void AddActivationObserver(ActivationObserver* observer);
71 void RemoveActivationObserver(ActivationObserver* observer); 71 void RemoveActivationObserver(ActivationObserver* observer);
72 void AddFocusObserver(FocusObserver* observer); 72 void AddFocusObserver(FocusObserver* observer);
73 void RemoveFocusObserver(FocusObserver* observer); 73 void RemoveFocusObserver(FocusObserver* observer);
74 void AddCursorObserver(CursorObserver* observer); 74 void AddCursorObserver(CursorObserver* observer);
75 void RemoveCursorObserver(CursorObserver* observer); 75 void RemoveCursorObserver(CursorObserver* observer);
76 void AddMaximizeModeObserver(MaximizeModeObserver* observer); 76 void AddMaximizeModeObserver(MaximizeModeObserver* observer);
77 void RemoveMaximizeModeObserver(MaximizeModeObserver* observer); 77 void RemoveMaximizeModeObserver(MaximizeModeObserver* observer);
78 78
79 virtual const ash::DisplayInfo GetDisplayInfo(int64_t display_id) const = 0; 79 virtual const display::ManagedDisplayInfo GetDisplayInfo(
80 int64_t display_id) const = 0;
80 virtual aura::Window* GetContainer(int container_id) = 0; 81 virtual aura::Window* GetContainer(int container_id) = 0;
81 virtual aura::Window* GetActiveWindow() const = 0; 82 virtual aura::Window* GetActiveWindow() const = 0;
82 virtual aura::Window* GetFocusedWindow() const = 0; 83 virtual aura::Window* GetFocusedWindow() const = 0;
83 virtual ui::CursorSetType GetCursorSet() const = 0; 84 virtual ui::CursorSetType GetCursorSet() const = 0;
84 virtual void AddPreTargetHandler(ui::EventHandler* handler) = 0; 85 virtual void AddPreTargetHandler(ui::EventHandler* handler) = 0;
85 virtual void PrependPreTargetHandler(ui::EventHandler* handler) = 0; 86 virtual void PrependPreTargetHandler(ui::EventHandler* handler) = 0;
86 virtual void RemovePreTargetHandler(ui::EventHandler* handler) = 0; 87 virtual void RemovePreTargetHandler(ui::EventHandler* handler) = 0;
87 virtual void AddPostTargetHandler(ui::EventHandler* handler) = 0; 88 virtual void AddPostTargetHandler(ui::EventHandler* handler) = 0;
88 virtual void RemovePostTargetHandler(ui::EventHandler* handler) = 0; 89 virtual void RemovePostTargetHandler(ui::EventHandler* handler) = 0;
89 virtual bool IsMaximizeModeWindowManagerEnabled() const = 0; 90 virtual bool IsMaximizeModeWindowManagerEnabled() const = 0;
(...skipping 15 matching lines...) Expand all
105 base::ObserverList<FocusObserver> focus_observers_; 106 base::ObserverList<FocusObserver> focus_observers_;
106 base::ObserverList<CursorObserver> cursor_observers_; 107 base::ObserverList<CursorObserver> cursor_observers_;
107 base::ObserverList<MaximizeModeObserver> maximize_mode_observers_; 108 base::ObserverList<MaximizeModeObserver> maximize_mode_observers_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(WMHelper); 110 DISALLOW_COPY_AND_ASSIGN(WMHelper);
110 }; 111 };
111 112
112 } // namespace exo 113 } // namespace exo
113 114
114 #endif // COMPONENTS_EXO_WM_HELPER_H_ 115 #endif // COMPONENTS_EXO_WM_HELPER_H_
OLDNEW
« no previous file with comments | « components/exo/wayland/server.cc ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698