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 <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 // existing view to make sure all descendants that have layers are parented to | 1111 // existing view to make sure all descendants that have layers are parented to |
1112 // the right layer. | 1112 // the right layer. |
1113 void MoveLayerToParent(ui::Layer* parent_layer, const gfx::Point& point); | 1113 void MoveLayerToParent(ui::Layer* parent_layer, const gfx::Point& point); |
1114 | 1114 |
1115 // Called to update the bounds of any child layers within this View's | 1115 // Called to update the bounds of any child layers within this View's |
1116 // hierarchy when something happens to the hierarchy. | 1116 // hierarchy when something happens to the hierarchy. |
1117 void UpdateChildLayerBounds(const gfx::Vector2d& offset); | 1117 void UpdateChildLayerBounds(const gfx::Vector2d& offset); |
1118 | 1118 |
1119 // Overridden from ui::LayerDelegate: | 1119 // Overridden from ui::LayerDelegate: |
1120 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; | 1120 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; |
| 1121 virtual void OnDelegatedFrameDamage( |
| 1122 const gfx::Rect& damage_rect_in_dip) OVERRIDE {} |
1121 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 1123 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
1122 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; | 1124 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; |
1123 | 1125 |
1124 // Finds the layer that this view paints to (it may belong to an ancestor | 1126 // Finds the layer that this view paints to (it may belong to an ancestor |
1125 // view), then reorders the immediate children of that layer to match the | 1127 // view), then reorders the immediate children of that layer to match the |
1126 // order of the view tree. | 1128 // order of the view tree. |
1127 virtual void ReorderLayers(); | 1129 virtual void ReorderLayers(); |
1128 | 1130 |
1129 // This reorders the immediate children of |*parent_layer| to match the | 1131 // This reorders the immediate children of |*parent_layer| to match the |
1130 // order of the view tree. Child layers which are owned by a view are | 1132 // order of the view tree. Child layers which are owned by a view are |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 // Belongs to this view, but it's reference-counted on some platforms | 1601 // Belongs to this view, but it's reference-counted on some platforms |
1600 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1602 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1601 NativeViewAccessibility* native_view_accessibility_; | 1603 NativeViewAccessibility* native_view_accessibility_; |
1602 | 1604 |
1603 DISALLOW_COPY_AND_ASSIGN(View); | 1605 DISALLOW_COPY_AND_ASSIGN(View); |
1604 }; | 1606 }; |
1605 | 1607 |
1606 } // namespace views | 1608 } // namespace views |
1607 | 1609 |
1608 #endif // UI_VIEWS_VIEW_H_ | 1610 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |