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

Side by Side Diff: ash/aura/wm_shell_aura.h

Issue 2361563002: chromeos: Laser tool blocks events from propagating. (Closed)
Patch Set: 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 | « ash/ash.gyp ('k') | ash/aura/wm_shell_aura.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 ASH_AURA_WM_SHELL_AURA_H_ 5 #ifndef ASH_AURA_WM_SHELL_AURA_H_
6 #define ASH_AURA_WM_SHELL_AURA_H_ 6 #define ASH_AURA_WM_SHELL_AURA_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void AddActivationObserver(WmActivationObserver* observer) override; 74 void AddActivationObserver(WmActivationObserver* observer) override;
75 void RemoveActivationObserver(WmActivationObserver* observer) override; 75 void RemoveActivationObserver(WmActivationObserver* observer) override;
76 void AddDisplayObserver(WmDisplayObserver* observer) override; 76 void AddDisplayObserver(WmDisplayObserver* observer) override;
77 void RemoveDisplayObserver(WmDisplayObserver* observer) override; 77 void RemoveDisplayObserver(WmDisplayObserver* observer) override;
78 void AddPointerWatcher(views::PointerWatcher* watcher, 78 void AddPointerWatcher(views::PointerWatcher* watcher,
79 bool wants_moves) override; 79 bool wants_moves) override;
80 void RemovePointerWatcher(views::PointerWatcher* watcher) override; 80 void RemovePointerWatcher(views::PointerWatcher* watcher) override;
81 bool IsTouchDown() override; 81 bool IsTouchDown() override;
82 #if defined(OS_CHROMEOS) 82 #if defined(OS_CHROMEOS)
83 void ToggleIgnoreExternalKeyboard() override; 83 void ToggleIgnoreExternalKeyboard() override;
84 void SetLaserPointerEnabled(bool enabled) override;
84 #endif 85 #endif
85 86
86 private: 87 private:
87 // aura::client::ActivationChangeObserver: 88 // aura::client::ActivationChangeObserver:
88 void OnWindowActivated(ActivationReason reason, 89 void OnWindowActivated(ActivationReason reason,
89 aura::Window* gained_active, 90 aura::Window* gained_active,
90 aura::Window* lost_active) override; 91 aura::Window* lost_active) override;
91 void OnAttemptToReactivateWindow(aura::Window* request_active, 92 void OnAttemptToReactivateWindow(aura::Window* request_active,
92 aura::Window* actual_active) override; 93 aura::Window* actual_active) override;
93 94
94 // WindowTreeHostManager::Observer: 95 // WindowTreeHostManager::Observer:
95 void OnDisplayConfigurationChanging() override; 96 void OnDisplayConfigurationChanging() override;
96 void OnDisplayConfigurationChanged() override; 97 void OnDisplayConfigurationChanged() override;
97 98
98 WmLookupAura wm_lookup_; 99 WmLookupAura wm_lookup_;
99 std::unique_ptr<PointerWatcherAdapter> pointer_watcher_adapter_; 100 std::unique_ptr<PointerWatcherAdapter> pointer_watcher_adapter_;
100 101
101 bool added_activation_observer_ = false; 102 bool added_activation_observer_ = false;
102 base::ObserverList<WmActivationObserver> activation_observers_; 103 base::ObserverList<WmActivationObserver> activation_observers_;
103 104
104 bool added_display_observer_ = false; 105 bool added_display_observer_ = false;
105 base::ObserverList<WmDisplayObserver> display_observers_; 106 base::ObserverList<WmDisplayObserver> display_observers_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(WmShellAura); 108 DISALLOW_COPY_AND_ASSIGN(WmShellAura);
108 }; 109 };
109 110
110 } // namespace ash 111 } // namespace ash
111 112
112 #endif // ASH_AURA_WM_SHELL_AURA_H_ 113 #endif // ASH_AURA_WM_SHELL_AURA_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/aura/wm_shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698