| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 contain()) to complain in this case. | 10 // in the operations (such as contain()) to complain in this case. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 gfx::Size size_; | 155 gfx::Size size_; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace gfx | 158 } // namespace gfx |
| 159 | 159 |
| 160 inline std::ostream& operator<<(std::ostream& out, const gfx::Rect& r) { | 160 inline std::ostream& operator<<(std::ostream& out, const gfx::Rect& r) { |
| 161 return out << r.origin() << " " << r.size(); | 161 return out << r.origin() << " " << r.size(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 #endif // BASE_GFX_RECT_H__ | 164 #endif // BASE_GFX_RECT_H__ |
| 165 | |
| OLD | NEW |