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

Side by Side Diff: components/mus/ws/window_tree_apptest.cc

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 5 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 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "components/mus/public/interfaces/window_tree.mojom.h" 9 #include "components/mus/public/interfaces/window_tree.mojom.h"
10 #include "components/mus/public/interfaces/window_tree_host.mojom.h" 10 #include "components/mus/public/interfaces/window_tree_host.mojom.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 RectPtr new_bounds) override { 323 RectPtr new_bounds) override {
324 // The bounds of the root may change during startup on Android at random 324 // The bounds of the root may change during startup on Android at random
325 // times. As this doesn't matter, and shouldn't impact test exepctations, 325 // times. As this doesn't matter, and shouldn't impact test exepctations,
326 // it is ignored. 326 // it is ignored.
327 if (window_id == root_window_id_) 327 if (window_id == root_window_id_)
328 return; 328 return;
329 tracker()->OnWindowBoundsChanged(window_id, old_bounds.Pass(), 329 tracker()->OnWindowBoundsChanged(window_id, old_bounds.Pass(),
330 new_bounds.Pass()); 330 new_bounds.Pass());
331 } 331 }
332 void OnClientAreaChanged(uint32_t window_id, 332 void OnClientAreaChanged(uint32_t window_id,
333 mojo::RectPtr old_client_area, 333 mojo::InsetsPtr old_client_area,
334 mojo::RectPtr new_client_area) override {} 334 mojo::InsetsPtr new_client_area) override {}
335 void OnWindowViewportMetricsChanged(ViewportMetricsPtr old_metrics, 335 void OnWindowViewportMetricsChanged(ViewportMetricsPtr old_metrics,
336 ViewportMetricsPtr new_metrics) override { 336 ViewportMetricsPtr new_metrics) override {
337 // Don't track the metrics as they are available at an indeterministic time 337 // Don't track the metrics as they are available at an indeterministic time
338 // on Android. 338 // on Android.
339 } 339 }
340 void OnWindowHierarchyChanged(Id window, 340 void OnWindowHierarchyChanged(Id window,
341 Id new_parent, 341 Id new_parent,
342 Id old_parent, 342 Id old_parent,
343 Array<WindowDataPtr> windows) override { 343 Array<WindowDataPtr> windows) override {
344 tracker()->OnWindowHierarchyChanged(window, new_parent, old_parent, 344 tracker()->OnWindowHierarchyChanged(window, new_parent, old_parent,
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 1715
1716 // TODO(sky): make sure coverage of what was 1716 // TODO(sky): make sure coverage of what was
1717 // WindowManagerTest.SecondEmbedRoot_InitService and 1717 // WindowManagerTest.SecondEmbedRoot_InitService and
1718 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 1718 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
1719 // manager 1719 // manager
1720 // tests. 1720 // tests.
1721 1721
1722 } // namespace ws 1722 } // namespace ws
1723 1723
1724 } // namespace mus 1724 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_client_apptest.cc ('k') | components/mus/ws/window_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698