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

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

Issue 2778943005: Keep root_location to be in pixels and display coordinates in WS. (Closed)
Patch Set: drop events Created 3 years, 6 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 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
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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 ClientWindowId* client_id = nullptr); 725 ClientWindowId* client_id = nullptr);
724 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 726 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
725 ServerWindow* parent, 727 ServerWindow* parent,
726 ClientWindowId* client_id = nullptr); 728 ClientWindowId* client_id = nullptr);
727 729
728 } // namespace test 730 } // namespace test
729 } // namespace ws 731 } // namespace ws
730 } // namespace ui 732 } // namespace ui
731 733
732 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 734 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698