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

Side by Side Diff: ui/gfx/compositor/debug_utils.cc

Issue 9580001: Aura: Update window frames, allow resize from outside window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix caption for maximized windows, new resize cursor tweak Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NDEBUG 5 #ifndef NDEBUG
6 6
7 #include "ui/gfx/compositor/debug_utils.h" 7 #include "ui/gfx/compositor/debug_utils.h"
8 8
9 #include <iomanip> 9 #include <iomanip>
10 #include <iostream> 10 #include <iostream>
(...skipping 30 matching lines...) Expand all
41 buf << L' '; 41 buf << L' ';
42 42
43 buf << UTF8ToWide(layer->name()) << L' ' << layer; 43 buf << UTF8ToWide(layer->name()) << L' ' << layer;
44 44
45 switch (layer->type()) { 45 switch (layer->type()) {
46 case Layer::LAYER_NOT_DRAWN: 46 case Layer::LAYER_NOT_DRAWN:
47 buf << L" not_drawn"; 47 buf << L" not_drawn";
48 break; 48 break;
49 case Layer::LAYER_TEXTURED: 49 case Layer::LAYER_TEXTURED:
50 buf << L" textured"; 50 buf << L" textured";
51 if (layer->fills_bounds_opaquely())
52 buf << L" opaque";
51 break; 53 break;
52 case Layer::LAYER_SOLID_COLOR: 54 case Layer::LAYER_SOLID_COLOR:
53 buf << L" solid"; 55 buf << L" solid";
54 break; 56 break;
55 } 57 }
56 58
57 buf << L'\n' << UTF8ToWide(content_indent_str); 59 buf << L'\n' << UTF8ToWide(content_indent_str);
58 buf << L"bounds: " << layer->bounds().x() << L',' << layer->bounds().y(); 60 buf << L"bounds: " << layer->bounds().x() << L',' << layer->bounds().y();
59 buf << L' ' << layer->bounds().width() << L'x' << layer->bounds().height(); 61 buf << L' ' << layer->bounds().width() << L'x' << layer->bounds().height();
60 62
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 } // namespace 101 } // namespace
100 102
101 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { 103 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) {
102 PrintLayerHierarchyImp(layer, 0, mouse_location); 104 PrintLayerHierarchyImp(layer, 0, mouse_location);
103 } 105 }
104 106
105 } // namespace ui 107 } // namespace ui
106 108
107 #endif // NDEBUG 109 #endif // NDEBUG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698