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

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

Issue 2248263003: Updates PointerEventRouter to handle switching move type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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/test_change_tracker.cc ('k') | services/ui/ws/test_utils.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_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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 mojom::EventResult::UNHANDLED); 103 mojom::EventResult::UNHANDLED);
104 } 104 }
105 void EnableCapture() { tree_->event_ack_id_ = 1u; } 105 void EnableCapture() { tree_->event_ack_id_ = 1u; }
106 void AckLastEvent(mojom::EventResult result) { 106 void AckLastEvent(mojom::EventResult result) {
107 tree_->OnWindowInputEventAck(tree_->event_ack_id_, result); 107 tree_->OnWindowInputEventAck(tree_->event_ack_id_, result);
108 } 108 }
109 void AckLastAccelerator(mojom::EventResult result) { 109 void AckLastAccelerator(mojom::EventResult result) {
110 tree_->OnAcceleratorAck(tree_->event_ack_id_, result); 110 tree_->OnAcceleratorAck(tree_->event_ack_id_, result);
111 } 111 }
112 112
113 void StartPointerWatcher(bool want_moves, uint32_t pointer_watcher_id); 113 void StartPointerWatcher(bool want_moves);
114 void StopPointerWatcher(); 114 void StopPointerWatcher();
115 115
116 private: 116 private:
117 WindowTree* tree_; 117 WindowTree* tree_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); 119 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi);
120 }; 120 };
121 121
122 // ----------------------------------------------------------------------------- 122 // -----------------------------------------------------------------------------
123 123
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 void OnWindowOpacityChanged(uint32_t window, 397 void OnWindowOpacityChanged(uint32_t window,
398 float old_opacity, 398 float old_opacity,
399 float new_opacity) override; 399 float new_opacity) override;
400 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override; 400 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override;
401 void OnWindowSharedPropertyChanged(uint32_t window, 401 void OnWindowSharedPropertyChanged(uint32_t window,
402 const mojo::String& name, 402 const mojo::String& name,
403 mojo::Array<uint8_t> new_data) override; 403 mojo::Array<uint8_t> new_data) override;
404 void OnWindowInputEvent(uint32_t event_id, 404 void OnWindowInputEvent(uint32_t event_id,
405 uint32_t window, 405 uint32_t window,
406 std::unique_ptr<ui::Event> event, 406 std::unique_ptr<ui::Event> event,
407 uint32_t event_observer_id) override; 407 bool matches_pointer_watcher) override;
408 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, 408 void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
409 uint32_t event_observer_id,
410 uint32_t window_id) override; 409 uint32_t window_id) override;
411 void OnWindowFocused(uint32_t focused_window_id) override; 410 void OnWindowFocused(uint32_t focused_window_id) override;
412 void OnWindowPredefinedCursorChanged(uint32_t window_id, 411 void OnWindowPredefinedCursorChanged(uint32_t window_id,
413 mojom::Cursor cursor_id) override; 412 mojom::Cursor cursor_id) override;
414 void OnChangeCompleted(uint32_t change_id, bool success) override; 413 void OnChangeCompleted(uint32_t change_id, bool success) override;
415 void RequestClose(uint32_t window_id) override; 414 void RequestClose(uint32_t window_id) override;
416 void GetWindowManager( 415 void GetWindowManager(
417 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) override; 416 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) override;
418 417
419 TestChangeTracker tracker_; 418 TestChangeTracker tracker_;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 575 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
577 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 576 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
578 ServerWindow* parent, 577 ServerWindow* parent,
579 ClientWindowId* client_id); 578 ClientWindowId* client_id);
580 579
581 } // namespace test 580 } // namespace test
582 } // namespace ws 581 } // namespace ws
583 } // namespace ui 582 } // namespace ui
584 583
585 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 584 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/test_change_tracker.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698