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

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

Issue 2780043002: Aura-Mus: Allocate a LocalSurfaceId on size change (Closed)
Patch Set: Cleanup Created 3 years, 8 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 | « ui/aura/test/mus/test_window_tree.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 void TestWindowTree::DeleteWindow(uint32_t change_id, uint32_t window_id) { 132 void TestWindowTree::DeleteWindow(uint32_t change_id, uint32_t window_id) {
133 OnChangeReceived(change_id); 133 OnChangeReceived(change_id);
134 } 134 }
135 135
136 void TestWindowTree::SetWindowBounds( 136 void TestWindowTree::SetWindowBounds(
137 uint32_t change_id, 137 uint32_t change_id,
138 uint32_t window_id, 138 uint32_t window_id,
139 const gfx::Rect& bounds, 139 const gfx::Rect& bounds,
140 const base::Optional<cc::LocalSurfaceId>& local_surface_id) { 140 const base::Optional<cc::LocalSurfaceId>& local_surface_id) {
141 window_id_ = window_id;
142 last_local_surface_id_ = local_surface_id;
141 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS); 143 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS);
142 } 144 }
143 145
144 void TestWindowTree::SetClientArea( 146 void TestWindowTree::SetClientArea(
145 uint32_t window_id, 147 uint32_t window_id,
146 const gfx::Insets& insets, 148 const gfx::Insets& insets,
147 const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) { 149 const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) {
148 last_client_area_ = insets; 150 last_client_area_ = insets;
149 } 151 }
150 152
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void TestWindowTree::PerformWindowMove(uint32_t change_id, 306 void TestWindowTree::PerformWindowMove(uint32_t change_id,
305 uint32_t window_id, 307 uint32_t window_id,
306 ui::mojom::MoveLoopSource source, 308 ui::mojom::MoveLoopSource source,
307 const gfx::Point& cursor_location) { 309 const gfx::Point& cursor_location) {
308 OnChangeReceived(change_id); 310 OnChangeReceived(change_id);
309 } 311 }
310 312
311 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 313 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
312 314
313 } // namespace aura 315 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/mus/test_window_tree.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698