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

Side by Side Diff: services/ui/ws/window_manager_state.h

Issue 2237003002: Find display root ServerWindow for located events in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_display
Patch Set: Fix tests. Created 4 years, 4 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 | « services/ui/ws/event_dispatcher_unittest.cc ('k') | services/ui/ws/window_manager_state.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 SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <queue>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
15 #include "services/ui/public/interfaces/display.mojom.h" 16 #include "services/ui/public/interfaces/display.mojom.h"
16 #include "services/ui/ws/event_dispatcher.h" 17 #include "services/ui/ws/event_dispatcher.h"
17 #include "services/ui/ws/event_dispatcher_delegate.h" 18 #include "services/ui/ws/event_dispatcher_delegate.h"
18 #include "services/ui/ws/user_id.h" 19 #include "services/ui/ws/user_id.h"
19 #include "services/ui/ws/window_server.h" 20 #include "services/ui/ws/window_server.h"
20 21
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void ReleaseNativeCapture() override; 185 void ReleaseNativeCapture() override;
185 void OnCaptureChanged(ServerWindow* new_capture, 186 void OnCaptureChanged(ServerWindow* new_capture,
186 ServerWindow* old_capture) override; 187 ServerWindow* old_capture) override;
187 void OnMouseCursorLocationChanged(const gfx::Point& point) override; 188 void OnMouseCursorLocationChanged(const gfx::Point& point) override;
188 void DispatchInputEventToWindow(ServerWindow* target, 189 void DispatchInputEventToWindow(ServerWindow* target,
189 ClientSpecificId client_id, 190 ClientSpecificId client_id,
190 const ui::Event& event, 191 const ui::Event& event,
191 Accelerator* accelerator) override; 192 Accelerator* accelerator) override;
192 ClientSpecificId GetEventTargetClientId(const ServerWindow* window, 193 ClientSpecificId GetEventTargetClientId(const ServerWindow* window,
193 bool in_nonclient_area) override; 194 bool in_nonclient_area) override;
194 ServerWindow* GetRootWindowContaining(const gfx::Point& location) override; 195 ServerWindow* GetRootWindowContaining(gfx::Point* location) override;
195 void OnEventTargetNotFound(const ui::Event& event) override; 196 void OnEventTargetNotFound(const ui::Event& event) override;
196 197
197 // The single WindowTree this WindowManagerState is associated with. 198 // The single WindowTree this WindowManagerState is associated with.
198 // |window_tree_| owns this. 199 // |window_tree_| owns this.
199 WindowTree* window_tree_; 200 WindowTree* window_tree_;
200 201
201 // Set to true the first time SetFrameDecorationValues() is called. 202 // Set to true the first time SetFrameDecorationValues() is called.
202 bool got_frame_decoration_values_ = false; 203 bool got_frame_decoration_values_ = false;
203 mojom::FrameDecorationValuesPtr frame_decoration_values_; 204 mojom::FrameDecorationValuesPtr frame_decoration_values_;
204 205
(...skipping 15 matching lines...) Expand all
220 221
221 base::WeakPtrFactory<WindowManagerState> weak_factory_; 222 base::WeakPtrFactory<WindowManagerState> weak_factory_;
222 223
223 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 224 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
224 }; 225 };
225 226
226 } // namespace ws 227 } // namespace ws
227 } // namespace ui 228 } // namespace ui
228 229
229 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 230 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/event_dispatcher_unittest.cc ('k') | services/ui/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698