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

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

Issue 2778913002: exo: Clean up cursor code (Closed)
Patch Set: Rebase Created 3 years, 8 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_ash.cc ('k') | no next file » | 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_MUS_H_ 5 #ifndef COMPONENTS_EXO_WM_HELPER_MUS_H_
6 #define COMPONENTS_EXO_WM_HELPER_MUS_H_ 6 #define COMPONENTS_EXO_WM_HELPER_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/exo/wm_helper.h" 9 #include "components/exo/wm_helper.h"
10 #include "ui/aura/client/focus_change_observer.h" 10 #include "ui/aura/client/focus_change_observer.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // A helper class for accessing WindowManager related features. 22 // A helper class for accessing WindowManager related features.
23 class WMHelperMus : public WMHelper, 23 class WMHelperMus : public WMHelper,
24 public ui::InputDeviceEventObserver, 24 public ui::InputDeviceEventObserver,
25 public aura::FocusSynchronizerObserver, 25 public aura::FocusSynchronizerObserver,
26 public aura::client::FocusChangeObserver { 26 public aura::client::FocusChangeObserver {
27 public: 27 public:
28 WMHelperMus(); 28 WMHelperMus();
29 ~WMHelperMus() override; 29 ~WMHelperMus() override;
30 30
31 // Overriden from WMHelper: 31 // Overridden from WMHelper:
32 const display::ManagedDisplayInfo GetDisplayInfo( 32 const display::ManagedDisplayInfo GetDisplayInfo(
33 int64_t display_id) const override; 33 int64_t display_id) const override;
34 aura::Window* GetContainer(int container_id) override; 34 aura::Window* GetContainer(int container_id) override;
35 aura::Window* GetActiveWindow() const override; 35 aura::Window* GetActiveWindow() const override;
36 aura::Window* GetFocusedWindow() const override; 36 aura::Window* GetFocusedWindow() const override;
37 ui::CursorSetType GetCursorSet() const override; 37 ui::CursorSetType GetCursorSet() const override;
38 void AddPreTargetHandler(ui::EventHandler* handler) override; 38 void AddPreTargetHandler(ui::EventHandler* handler) override;
39 void PrependPreTargetHandler(ui::EventHandler* handler) override; 39 void PrependPreTargetHandler(ui::EventHandler* handler) override;
40 void RemovePreTargetHandler(ui::EventHandler* handler) override; 40 void RemovePreTargetHandler(ui::EventHandler* handler) override;
41 void AddPostTargetHandler(ui::EventHandler* handler) override; 41 void AddPostTargetHandler(ui::EventHandler* handler) override;
42 void RemovePostTargetHandler(ui::EventHandler* handler) override; 42 void RemovePostTargetHandler(ui::EventHandler* handler) override;
43 bool IsMaximizeModeWindowManagerEnabled() const override; 43 bool IsMaximizeModeWindowManagerEnabled() const override;
44 bool IsSpokenFeedbackEnabled() const override; 44 bool IsSpokenFeedbackEnabled() const override;
45 void PlayEarcon(int sound_key) const override; 45 void PlayEarcon(int sound_key) const override;
46 46
47 // Overriden from aura::FocusSynchronizerObserver: 47 // Overridden from aura::FocusSynchronizerObserver:
48 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, 48 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client,
49 aura::Window* focus_client_root) override; 49 aura::Window* focus_client_root) override;
50 50
51 // Overriden from ui::client::FocusChangeObserver: 51 // Overridden from ui::client::FocusChangeObserver:
52 void OnWindowFocused(aura::Window* gained_focus, 52 void OnWindowFocused(aura::Window* gained_focus,
53 aura::Window* lost_focus) override; 53 aura::Window* lost_focus) override;
54 54
55 // Overriden from ui::InputDeviceEventObserver: 55 // Overridden from ui::InputDeviceEventObserver:
56 void OnKeyboardDeviceConfigurationChanged() override; 56 void OnKeyboardDeviceConfigurationChanged() override;
57 57
58 private: 58 private:
59 void SetActiveFocusClient(aura::client::FocusClient* focus_client, 59 void SetActiveFocusClient(aura::client::FocusClient* focus_client,
60 aura::Window* window); 60 aura::Window* window);
61 void SetActiveWindow(aura::Window* window); 61 void SetActiveWindow(aura::Window* window);
62 void SetFocusedWindow(aura::Window* window); 62 void SetFocusedWindow(aura::Window* window);
63 63
64 aura::client::ActivationClient* GetActivationClient(); 64 aura::client::ActivationClient* GetActivationClient();
65 65
66 // Current FocusClient. 66 // Current FocusClient.
67 aura::client::FocusClient* active_focus_client_ = nullptr; 67 aura::client::FocusClient* active_focus_client_ = nullptr;
68 // This is the window that |active_focus_client_| comes from (may be null). 68 // This is the window that |active_focus_client_| comes from (may be null).
69 aura::Window* root_with_active_focus_client_ = nullptr; 69 aura::Window* root_with_active_focus_client_ = nullptr;
70 aura::Window* active_window_ = nullptr; 70 aura::Window* active_window_ = nullptr;
71 aura::Window* focused_window_ = nullptr; 71 aura::Window* focused_window_ = nullptr;
72 72
73 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); 73 DISALLOW_COPY_AND_ASSIGN(WMHelperMus);
74 }; 74 };
75 75
76 } // namespace exo 76 } // namespace exo
77 77
78 #endif // COMPONENTS_EXO_WM_HELPER_H_ 78 #endif // COMPONENTS_EXO_WM_HELPER_H_
OLDNEW
« no previous file with comments | « components/exo/wm_helper_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698