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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 // the right layer. | 989 // the right layer. |
990 virtual void MoveLayerToParent(ui::Layer* parent_layer, | 990 virtual void MoveLayerToParent(ui::Layer* parent_layer, |
991 const gfx::Point& point); | 991 const gfx::Point& point); |
992 | 992 |
993 // Called to update the bounds of any child layers within this View's | 993 // Called to update the bounds of any child layers within this View's |
994 // hierarchy when something happens to the hierarchy. | 994 // hierarchy when something happens to the hierarchy. |
995 virtual void UpdateChildLayerBounds(const gfx::Point& offset); | 995 virtual void UpdateChildLayerBounds(const gfx::Point& offset); |
996 | 996 |
997 // Overridden from ui::LayerDelegate: | 997 // Overridden from ui::LayerDelegate: |
998 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; | 998 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; |
| 999 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
999 | 1000 |
1000 // Finds the layer that this view paints to (it may belong to an ancestor | 1001 // Finds the layer that this view paints to (it may belong to an ancestor |
1001 // view), then reorders the immediate children of that layer to match the | 1002 // view), then reorders the immediate children of that layer to match the |
1002 // order of the view tree. | 1003 // order of the view tree. |
1003 virtual void ReorderLayers(); | 1004 virtual void ReorderLayers(); |
1004 | 1005 |
1005 // This reorders the immediate children of |*parent_layer| to match the | 1006 // This reorders the immediate children of |*parent_layer| to match the |
1006 // order of the view tree. | 1007 // order of the view tree. |
1007 virtual void ReorderChildLayers(ui::Layer* parent_layer); | 1008 virtual void ReorderChildLayers(ui::Layer* parent_layer); |
1008 | 1009 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 base::win::ScopedComPtr<NativeViewAccessibilityWin> | 1460 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
1460 native_view_accessibility_win_; | 1461 native_view_accessibility_win_; |
1461 #endif | 1462 #endif |
1462 | 1463 |
1463 DISALLOW_COPY_AND_ASSIGN(View); | 1464 DISALLOW_COPY_AND_ASSIGN(View); |
1464 }; | 1465 }; |
1465 | 1466 |
1466 } // namespace views | 1467 } // namespace views |
1467 | 1468 |
1468 #endif // UI_VIEWS_VIEW_H_ | 1469 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |