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

Side by Side Diff: services/ui/ws/window_tree_client_unittest.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize Created 3 years, 9 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/window_tree.cc ('k') | ui/aura/mus/DEPS » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 const gfx::Rect& new_bounds, 314 const gfx::Rect& new_bounds,
315 const base::Optional<cc::LocalSurfaceId>& local_surface_id) override { 315 const base::Optional<cc::LocalSurfaceId>& local_surface_id) override {
316 // The bounds of the root may change during startup on Android at random 316 // The bounds of the root may change during startup on Android at random
317 // times. As this doesn't matter, and shouldn't impact test exepctations, 317 // times. As this doesn't matter, and shouldn't impact test exepctations,
318 // it is ignored. 318 // it is ignored.
319 if (window_id == root_window_id_ && !track_root_bounds_changes_) 319 if (window_id == root_window_id_ && !track_root_bounds_changes_)
320 return; 320 return;
321 tracker()->OnWindowBoundsChanged(window_id, old_bounds, new_bounds, 321 tracker()->OnWindowBoundsChanged(window_id, old_bounds, new_bounds,
322 local_surface_id); 322 local_surface_id);
323 } 323 }
324 void OnSetWindowBoundsResponse(
325 uint32_t change_id,
326 const gfx::Rect& bounds,
327 const cc::LocalSurfaceId& local_surface_id) override {}
324 void OnClientAreaChanged( 328 void OnClientAreaChanged(
325 uint32_t window_id, 329 uint32_t window_id,
326 const gfx::Insets& new_client_area, 330 const gfx::Insets& new_client_area,
327 const std::vector<gfx::Rect>& new_additional_client_areas) override {} 331 const std::vector<gfx::Rect>& new_additional_client_areas) override {}
328 void OnTransientWindowAdded(uint32_t window_id, 332 void OnTransientWindowAdded(uint32_t window_id,
329 uint32_t transient_window_id) override { 333 uint32_t transient_window_id) override {
330 tracker()->OnTransientWindowAdded(window_id, transient_window_id); 334 tracker()->OnTransientWindowAdded(window_id, transient_window_id);
331 } 335 }
332 void OnTransientWindowRemoved(uint32_t window_id, 336 void OnTransientWindowRemoved(uint32_t window_id,
333 uint32_t transient_window_id) override { 337 uint32_t transient_window_id) override {
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 2255
2252 // TODO(sky): make sure coverage of what was 2256 // TODO(sky): make sure coverage of what was
2253 // WindowManagerTest.SecondEmbedRoot_InitService and 2257 // WindowManagerTest.SecondEmbedRoot_InitService and
2254 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 2258 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
2255 // manager 2259 // manager
2256 // tests. 2260 // tests.
2257 2261
2258 } // namespace test 2262 } // namespace test
2259 } // namespace ws 2263 } // namespace ws
2260 } // namespace ui 2264 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698