OLD | NEW |
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 UI_VIEWS_VIEW_H_ | 5 #ifndef UI_VIEWS_VIEW_H_ |
6 #define UI_VIEWS_VIEW_H_ | 6 #define UI_VIEWS_VIEW_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 const gfx::Size& size() const { return bounds_.size(); } | 226 const gfx::Size& size() const { return bounds_.size(); } |
227 | 227 |
228 // Returns the bounds of the content area of the view, i.e. the rectangle | 228 // Returns the bounds of the content area of the view, i.e. the rectangle |
229 // enclosed by the view's border. | 229 // enclosed by the view's border. |
230 gfx::Rect GetContentsBounds() const; | 230 gfx::Rect GetContentsBounds() const; |
231 | 231 |
232 // Returns the bounds of the view in its own coordinates (i.e. position is | 232 // Returns the bounds of the view in its own coordinates (i.e. position is |
233 // 0, 0). | 233 // 0, 0). |
234 gfx::Rect GetLocalBounds() const; | 234 gfx::Rect GetLocalBounds() const; |
235 | 235 |
236 // Returns the bounds of the layer in its own pixel coordinates. | |
237 gfx::Rect GetLayerBoundsInPixel() const; | |
238 | |
239 // Returns the insets of the current border. If there is no border an empty | 236 // Returns the insets of the current border. If there is no border an empty |
240 // insets is returned. | 237 // insets is returned. |
241 virtual gfx::Insets GetInsets() const; | 238 virtual gfx::Insets GetInsets() const; |
242 | 239 |
243 // Returns the visible bounds of the receiver in the receivers coordinate | 240 // Returns the visible bounds of the receiver in the receivers coordinate |
244 // system. | 241 // system. |
245 // | 242 // |
246 // When traversing the View hierarchy in order to compute the bounds, the | 243 // When traversing the View hierarchy in order to compute the bounds, the |
247 // function takes into account the mirroring setting and transformation for | 244 // function takes into account the mirroring setting and transformation for |
248 // each View and therefore it will return the mirrored and transformed version | 245 // each View and therefore it will return the mirrored and transformed version |
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 // Belongs to this view, but it's reference-counted on some platforms | 1567 // Belongs to this view, but it's reference-counted on some platforms |
1571 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1568 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1572 NativeViewAccessibility* native_view_accessibility_; | 1569 NativeViewAccessibility* native_view_accessibility_; |
1573 | 1570 |
1574 DISALLOW_COPY_AND_ASSIGN(View); | 1571 DISALLOW_COPY_AND_ASSIGN(View); |
1575 }; | 1572 }; |
1576 | 1573 |
1577 } // namespace views | 1574 } // namespace views |
1578 | 1575 |
1579 #endif // UI_VIEWS_VIEW_H_ | 1576 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |