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

Side by Side Diff: components/exo/wm_helper_ash.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/wm_helper.h ('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 "base/macros.h" 9 #include "base/macros.h"
10 #include "components/exo/wm_helper.h" 10 #include "components/exo/wm_helper.h"
11 #include "ui/aura/client/cursor_client_observer.h" 11 #include "ui/aura/client/cursor_client_observer.h"
12 #include "ui/aura/client/focus_change_observer.h" 12 #include "ui/aura/client/focus_change_observer.h"
13 #include "ui/wm/public/activation_change_observer.h" 13 #include "ui/wm/public/activation_change_observer.h"
14 14
15 namespace exo { 15 namespace exo {
16 16
17 // A helper class for accessing WindowManager related features. 17 // A helper class for accessing WindowManager related features.
18 class WMHelperAsh : public WMHelper, 18 class WMHelperAsh : public WMHelper,
19 public aura::client::ActivationChangeObserver, 19 public aura::client::ActivationChangeObserver,
20 public aura::client::FocusChangeObserver, 20 public aura::client::FocusChangeObserver,
21 public aura::client::CursorClientObserver, 21 public aura::client::CursorClientObserver,
22 public ash::ShellObserver { 22 public ash::ShellObserver {
23 public: 23 public:
24 WMHelperAsh(); 24 WMHelperAsh();
25 ~WMHelperAsh() override; 25 ~WMHelperAsh() override;
26 26
27 // Overriden from WMHelper: 27 // Overriden from WMHelper:
28 const ash::DisplayInfo GetDisplayInfo(int64_t display_id) const override; 28 const display::ManagedDisplayInfo GetDisplayInfo(
29 int64_t display_id) const override;
29 aura::Window* GetContainer(int container_id) override; 30 aura::Window* GetContainer(int container_id) override;
30 aura::Window* GetActiveWindow() const override; 31 aura::Window* GetActiveWindow() const override;
31 aura::Window* GetFocusedWindow() const override; 32 aura::Window* GetFocusedWindow() const override;
32 ui::CursorSetType GetCursorSet() const override; 33 ui::CursorSetType GetCursorSet() const override;
33 void AddPreTargetHandler(ui::EventHandler* handler) override; 34 void AddPreTargetHandler(ui::EventHandler* handler) override;
34 void PrependPreTargetHandler(ui::EventHandler* handler) override; 35 void PrependPreTargetHandler(ui::EventHandler* handler) override;
35 void RemovePreTargetHandler(ui::EventHandler* handler) override; 36 void RemovePreTargetHandler(ui::EventHandler* handler) override;
36 void AddPostTargetHandler(ui::EventHandler* handler) override; 37 void AddPostTargetHandler(ui::EventHandler* handler) override;
37 void RemovePostTargetHandler(ui::EventHandler* handler) override; 38 void RemovePostTargetHandler(ui::EventHandler* handler) override;
38 bool IsMaximizeModeWindowManagerEnabled() const override; 39 bool IsMaximizeModeWindowManagerEnabled() const override;
(...skipping 16 matching lines...) Expand all
55 void OnMaximizeModeStarted() override; 56 void OnMaximizeModeStarted() override;
56 void OnMaximizeModeEnded() override; 57 void OnMaximizeModeEnded() override;
57 58
58 private: 59 private:
59 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); 60 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh);
60 }; 61 };
61 62
62 } // namespace exo 63 } // namespace exo
63 64
64 #endif // COMPONENTS_EXO_WM_HELPER_H_ 65 #endif // COMPONENTS_EXO_WM_HELPER_H_
OLDNEW
« no previous file with comments | « components/exo/wm_helper.h ('k') | components/exo/wm_helper_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698