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

Side by Side Diff: services/ui/public/cpp/tests/test_window_tree.cc

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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "services/ui/public/cpp/tests/test_window_tree.h" 5 #include "services/ui/public/cpp/tests/test_window_tree.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { 117 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) {
118 got_change_ = true; 118 got_change_ = true;
119 change_id_ = change_id; 119 change_id_ = change_id;
120 } 120 }
121 121
122 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { 122 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) {
123 got_change_ = true; 123 got_change_ = true;
124 change_id_ = change_id; 124 change_id_ = change_id;
125 } 125 }
126 126
127 void TestWindowTree::StartPointerWatcher(bool want_moves, 127 void TestWindowTree::StartPointerWatcher(bool want_moves) {}
128 uint32_t pointer_watcher_id) {}
129 128
130 void TestWindowTree::StopPointerWatcher() {} 129 void TestWindowTree::StopPointerWatcher() {}
131 130
132 void TestWindowTree::Embed(uint32_t window_id, 131 void TestWindowTree::Embed(uint32_t window_id,
133 mojom::WindowTreeClientPtr client, 132 mojom::WindowTreeClientPtr client,
134 uint32_t flags, 133 uint32_t flags,
135 const EmbedCallback& callback) {} 134 const EmbedCallback& callback) {}
136 135
137 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { 136 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) {
138 got_change_ = true; 137 got_change_ = true;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } 169 }
171 170
172 void TestWindowTree::PerformWindowMove(uint32_t change_id, 171 void TestWindowTree::PerformWindowMove(uint32_t change_id,
173 uint32_t window_id, 172 uint32_t window_id,
174 mojom::MoveLoopSource source, 173 mojom::MoveLoopSource source,
175 const gfx::Point& cursor_location) {} 174 const gfx::Point& cursor_location) {}
176 175
177 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 176 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
178 177
179 } // namespace ui 178 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.h ('k') | services/ui/public/cpp/tests/window_tree_client_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698