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

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

Issue 10386220: Add instantiation declarations for PointBase, SizeBase, RectBase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: not for msvc Created 8 years, 7 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
« no previous file with comments | « ui/gfx/point_f.h ('k') | ui/gfx/rect_f.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 // Defines a simple integer rectangle class. The containment semantics 5 // Defines a simple integer rectangle class. The containment semantics
6 // are array-like; that is, the coordinate (x, y) is considered to be 6 // are array-like; that is, the coordinate (x, y) is considered to be
7 // contained by the rectangle, but the coordinate (x + width, y) is not. 7 // contained by the rectangle, but the coordinate (x + width, y) is not.
8 // The class will happily let you create malformed rectangles (that is, 8 // The class will happily let you create malformed rectangles (that is,
9 // rectangles with negative width and/or height), but there will be assertions 9 // rectangles with negative width and/or height), but there will be assertions
10 // in the operations (such as Contains()) to complain in this case. 10 // in the operations (such as Contains()) to complain in this case.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #elif defined(TOOLKIT_GTK) 60 #elif defined(TOOLKIT_GTK)
61 GdkRectangle ToGdkRectangle() const; 61 GdkRectangle ToGdkRectangle() const;
62 #elif defined(OS_MACOSX) 62 #elif defined(OS_MACOSX)
63 // Construct an equivalent CoreGraphics object. 63 // Construct an equivalent CoreGraphics object.
64 CGRect ToCGRect() const; 64 CGRect ToCGRect() const;
65 #endif 65 #endif
66 66
67 std::string ToString() const; 67 std::string ToString() const;
68 }; 68 };
69 69
70 #if !defined(COMPILER_MSVC)
71 extern template class RectBase<Rect, Point, Size, Insets, int>;
72 #endif
73
70 } // namespace gfx 74 } // namespace gfx
71 75
72 #endif // UI_GFX_RECT_H_ 76 #endif // UI_GFX_RECT_H_
OLDNEW
« no previous file with comments | « ui/gfx/point_f.h ('k') | ui/gfx/rect_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698