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

Side by Side Diff: ui/gfx/rect.cc

Issue 10837041: Initial iOS bring up of ui. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Stuart feedback. Created 8 years, 4 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/gfx/rect.h ('k') | ui/gfx/size.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 #include "ui/gfx/rect.h" 5 #include "ui/gfx/rect.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_MACOSX)
10 #include <ApplicationServices/ApplicationServices.h>
11 #elif defined(TOOLKIT_GTK) 9 #elif defined(TOOLKIT_GTK)
12 #include <gdk/gdk.h> 10 #include <gdk/gdk.h>
13 #endif 11 #endif
14 12
15 #include "base/logging.h" 13 #include "base/logging.h"
16 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
17 #include "ui/gfx/insets.h" 15 #include "ui/gfx/insets.h"
18 #include "ui/gfx/rect_base_impl.h" 16 #include "ui/gfx/rect_base_impl.h"
19 17
20 namespace gfx { 18 namespace gfx {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 106 }
109 #endif 107 #endif
110 108
111 std::string Rect::ToString() const { 109 std::string Rect::ToString() const {
112 return base::StringPrintf("%s %s", 110 return base::StringPrintf("%s %s",
113 origin().ToString().c_str(), 111 origin().ToString().c_str(),
114 size().ToString().c_str()); 112 size().ToString().c_str());
115 } 113 }
116 114
117 } // namespace gfx 115 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/rect.h ('k') | ui/gfx/size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698