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

Side by Side Diff: ui/aura/test/mus/test_window_tree.cc

Issue 2517853002: Fixes bug in handling restacking because of transients (Closed)
Patch Set: feedback Created 4 years, 1 month 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 "ui/aura/test/mus/test_window_tree.h" 5 #include "ui/aura/test/mus/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 aura { 9 namespace aura {
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 191 }
192 192
193 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) { 193 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {
194 OnChangeReceived(change_id, WindowTreeChangeType::MODAL); 194 OnChangeReceived(change_id, WindowTreeChangeType::MODAL);
195 } 195 }
196 196
197 void TestWindowTree::ReorderWindow(uint32_t change_id, 197 void TestWindowTree::ReorderWindow(uint32_t change_id,
198 uint32_t window_id, 198 uint32_t window_id,
199 uint32_t relative_window_id, 199 uint32_t relative_window_id,
200 ui::mojom::OrderDirection direction) { 200 ui::mojom::OrderDirection direction) {
201 OnChangeReceived(change_id); 201 OnChangeReceived(change_id, WindowTreeChangeType::REORDER);
202 } 202 }
203 203
204 void TestWindowTree::GetWindowTree(uint32_t window_id, 204 void TestWindowTree::GetWindowTree(uint32_t window_id,
205 const GetWindowTreeCallback& callback) {} 205 const GetWindowTreeCallback& callback) {}
206 206
207 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { 207 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) {
208 OnChangeReceived(change_id, WindowTreeChangeType::CAPTURE); 208 OnChangeReceived(change_id, WindowTreeChangeType::CAPTURE);
209 } 209 }
210 210
211 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { 211 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void TestWindowTree::PerformWindowMove(uint32_t change_id, 271 void TestWindowTree::PerformWindowMove(uint32_t change_id,
272 uint32_t window_id, 272 uint32_t window_id,
273 ui::mojom::MoveLoopSource source, 273 ui::mojom::MoveLoopSource source,
274 const gfx::Point& cursor_location) { 274 const gfx::Point& cursor_location) {
275 OnChangeReceived(change_id); 275 OnChangeReceived(change_id);
276 } 276 }
277 277
278 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 278 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
279 279
280 } // namespace aura 280 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698