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

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

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 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/base/touch/selection_bound.h ('k') | ui/compositor/dip_util.h » ('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 (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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include "ui/compositor/debug_utils.h" 7 #include "ui/compositor/debug_utils.h"
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <iomanip> 10 #include <iomanip>
11 #include <ostream> 11 #include <ostream>
12 #include <string> 12 #include <string>
13 13
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "ui/compositor/layer.h" 16 #include "ui/compositor/layer.h"
17 #include "ui/gfx/geometry/point.h"
18 #include "ui/gfx/geometry/point_conversions.h"
17 #include "ui/gfx/interpolated_transform.h" 19 #include "ui/gfx/interpolated_transform.h"
18 #include "ui/gfx/point.h"
19 #include "ui/gfx/point_conversions.h"
20 #include "ui/gfx/transform.h" 20 #include "ui/gfx/transform.h"
21 21
22 using base::UTF8ToWide; 22 using base::UTF8ToWide;
23 23
24 namespace ui { 24 namespace ui {
25 25
26 namespace { 26 namespace {
27 27
28 void PrintLayerHierarchyImp(const Layer* layer, 28 void PrintLayerHierarchyImp(const Layer* layer,
29 int indent, 29 int indent,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { 113 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) {
114 std::wostringstream out; 114 std::wostringstream out;
115 out << L"Layer hierarchy:\n"; 115 out << L"Layer hierarchy:\n";
116 PrintLayerHierarchyImp(layer, 0, mouse_location, &out); 116 PrintLayerHierarchyImp(layer, 0, mouse_location, &out);
117 // Error so logs can be collected from end-users. 117 // Error so logs can be collected from end-users.
118 LOG(ERROR) << out.str(); 118 LOG(ERROR) << out.str();
119 } 119 }
120 120
121 } // namespace ui 121 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/touch/selection_bound.h ('k') | ui/compositor/dip_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698