| 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_TEST_UTILS_H_ | 5 #ifndef SERVICES_UI_WS_TEST_UTILS_H_ |
| 6 #define SERVICES_UI_WS_TEST_UTILS_H_ | 6 #define SERVICES_UI_WS_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 // ----------------------------------------------------------------------------- | 201 // ----------------------------------------------------------------------------- |
| 202 | 202 |
| 203 class WindowManagerStateTestApi { | 203 class WindowManagerStateTestApi { |
| 204 public: | 204 public: |
| 205 explicit WindowManagerStateTestApi(WindowManagerState* wms) : wms_(wms) {} | 205 explicit WindowManagerStateTestApi(WindowManagerState* wms) : wms_(wms) {} |
| 206 ~WindowManagerStateTestApi() {} | 206 ~WindowManagerStateTestApi() {} |
| 207 | 207 |
| 208 void DispatchInputEventToWindow(ServerWindow* target, | 208 void DispatchInputEventToWindow(ServerWindow* target, |
| 209 ClientSpecificId client_id, | 209 ClientSpecificId client_id, |
| 210 const int64_t display_id, |
| 210 const ui::Event& event, | 211 const ui::Event& event, |
| 211 Accelerator* accelerator) { | 212 Accelerator* accelerator) { |
| 212 wms_->DispatchInputEventToWindow(target, client_id, event, accelerator); | 213 wms_->DispatchInputEventToWindow(target, client_id, display_id, event, |
| 214 accelerator); |
| 213 } | 215 } |
| 214 | 216 |
| 215 ClientSpecificId GetEventTargetClientId(ServerWindow* window, | 217 ClientSpecificId GetEventTargetClientId(ServerWindow* window, |
| 216 bool in_nonclient_area) { | 218 bool in_nonclient_area) { |
| 217 return wms_->GetEventTargetClientId(window, in_nonclient_area); | 219 return wms_->GetEventTargetClientId(window, in_nonclient_area); |
| 218 } | 220 } |
| 219 | 221 |
| 220 void ProcessEvent(const ui::Event& event, int64_t display_id = 0) { | 222 void ProcessEvent(const ui::Event& event, int64_t display_id = 0) { |
| 221 wms_->ProcessEvent(event, display_id); | 223 wms_->ProcessEvent(event, display_id); |
| 222 } | 224 } |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 ClientWindowId* client_id = nullptr); | 753 ClientWindowId* client_id = nullptr); |
| 752 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 754 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 753 ServerWindow* parent, | 755 ServerWindow* parent, |
| 754 ClientWindowId* client_id = nullptr); | 756 ClientWindowId* client_id = nullptr); |
| 755 | 757 |
| 756 } // namespace test | 758 } // namespace test |
| 757 } // namespace ws | 759 } // namespace ws |
| 758 } // namespace ui | 760 } // namespace ui |
| 759 | 761 |
| 760 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 762 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |