| OLD | NEW |
| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void SetNativeCapture(ServerWindow* window) override; | 184 void SetNativeCapture(ServerWindow* window) override; |
| 184 void ReleaseNativeCapture() override; | 185 void ReleaseNativeCapture() override; |
| 185 void OnServerWindowCaptureLost(ServerWindow* window) override; | 186 void OnServerWindowCaptureLost(ServerWindow* window) override; |
| 186 void OnMouseCursorLocationChanged(const gfx::Point& point) override; | 187 void OnMouseCursorLocationChanged(const gfx::Point& point) override; |
| 187 void DispatchInputEventToWindow(ServerWindow* target, | 188 void DispatchInputEventToWindow(ServerWindow* target, |
| 188 ClientSpecificId client_id, | 189 ClientSpecificId client_id, |
| 189 const ui::Event& event, | 190 const ui::Event& event, |
| 190 Accelerator* accelerator) override; | 191 Accelerator* accelerator) override; |
| 191 ClientSpecificId GetEventTargetClientId(const ServerWindow* window, | 192 ClientSpecificId GetEventTargetClientId(const ServerWindow* window, |
| 192 bool in_nonclient_area) override; | 193 bool in_nonclient_area) override; |
| 193 ServerWindow* GetRootWindowContaining(const gfx::Point& location) override; | 194 ServerWindow* GetRootWindowContaining(gfx::Point* location) override; |
| 194 void OnEventTargetNotFound(const ui::Event& event) override; | 195 void OnEventTargetNotFound(const ui::Event& event) override; |
| 195 | 196 |
| 196 // The single WindowTree this WindowManagerState is associated with. | 197 // The single WindowTree this WindowManagerState is associated with. |
| 197 // |window_tree_| owns this. | 198 // |window_tree_| owns this. |
| 198 WindowTree* window_tree_; | 199 WindowTree* window_tree_; |
| 199 | 200 |
| 200 // Set to true the first time SetFrameDecorationValues() is called. | 201 // Set to true the first time SetFrameDecorationValues() is called. |
| 201 bool got_frame_decoration_values_ = false; | 202 bool got_frame_decoration_values_ = false; |
| 202 mojom::FrameDecorationValuesPtr frame_decoration_values_; | 203 mojom::FrameDecorationValuesPtr frame_decoration_values_; |
| 203 | 204 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 219 | 220 |
| 220 base::WeakPtrFactory<WindowManagerState> weak_factory_; | 221 base::WeakPtrFactory<WindowManagerState> weak_factory_; |
| 221 | 222 |
| 222 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); | 223 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); |
| 223 }; | 224 }; |
| 224 | 225 |
| 225 } // namespace ws | 226 } // namespace ws |
| 226 } // namespace ui | 227 } // namespace ui |
| 227 | 228 |
| 228 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ | 229 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ |
| OLD | NEW |