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

Side by Side Diff: components/mus/ws/window_manager_state.h

Issue 1909733002: mus: Add EventObserver to allow passively listening to UI events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 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
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_MUS_WS_WINDOW_MANAGER_STATE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event) override; 156 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event) override;
157 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override; 157 void SetFocusedWindowFromEventDispatcher(ServerWindow* window) override;
158 ServerWindow* GetFocusedWindowForEventDispatcher() override; 158 ServerWindow* GetFocusedWindowForEventDispatcher() override;
159 void SetNativeCapture() override; 159 void SetNativeCapture() override;
160 void ReleaseNativeCapture() override; 160 void ReleaseNativeCapture() override;
161 void OnServerWindowCaptureLost(ServerWindow* window) override; 161 void OnServerWindowCaptureLost(ServerWindow* window) override;
162 void DispatchInputEventToWindow(ServerWindow* target, 162 void DispatchInputEventToWindow(ServerWindow* target,
163 bool in_nonclient_area, 163 bool in_nonclient_area,
164 const ui::Event& event, 164 const ui::Event& event,
165 Accelerator* accelerator) override; 165 Accelerator* accelerator) override;
166 void OnEventTargetNotFound(const ui::Event& event) override;
166 167
167 Display* display_; 168 Display* display_;
168 PlatformDisplay* platform_display_; 169 PlatformDisplay* platform_display_;
169 // If this was created implicitly by a call 170 // If this was created implicitly by a call
170 // WindowTreeHostFactory::CreateWindowTreeHost(), then |is_user_id_valid_| 171 // WindowTreeHostFactory::CreateWindowTreeHost(), then |is_user_id_valid_|
171 // is false. 172 // is false.
172 const bool is_user_id_valid_; 173 const bool is_user_id_valid_;
173 const UserId user_id_; 174 const UserId user_id_;
174 // Root ServerWindow of this WindowManagerState. |root_| has a parent, the 175 // Root ServerWindow of this WindowManagerState. |root_| has a parent, the
175 // root ServerWindow of the Display. 176 // root ServerWindow of the Display.
(...skipping 12 matching lines...) Expand all
188 189
189 EventDispatcher event_dispatcher_; 190 EventDispatcher event_dispatcher_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 192 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
192 }; 193 };
193 194
194 } // namespace ws 195 } // namespace ws
195 } // namespace mus 196 } // namespace mus
196 197
197 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_ 198 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698