| 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_COMPOSITOR_LAYER_DELEGATE_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_DELEGATE_H_ |
| 6 #define UI_COMPOSITOR_LAYER_DELEGATE_H_ | 6 #define UI_COMPOSITOR_LAYER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/compositor/compositor_export.h" | 8 #include "ui/compositor/compositor_export.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // A notification that this layer has had a delegated frame swap and | 23 // A notification that this layer has had a delegated frame swap and |
| 24 // will be repainted. | 24 // will be repainted. |
| 25 virtual void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) = 0; | 25 virtual void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) = 0; |
| 26 | 26 |
| 27 // Called when the layer's device scale factor has changed. | 27 // Called when the layer's device scale factor has changed. |
| 28 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 28 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
| 29 | 29 |
| 30 // Invoked when the bounds have changed. | 30 // Invoked when the bounds have changed. |
| 31 virtual void OnLayerBoundsChanged(const gfx::Rect& old_bounds); | 31 virtual void OnLayerBoundsChanged(const gfx::Rect& old_bounds); |
| 32 | 32 |
| 33 protected: | |
| 34 virtual ~LayerDelegate() {} | 33 virtual ~LayerDelegate() {} |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 } // namespace ui | 36 } // namespace ui |
| 38 | 37 |
| 39 #endif // UI_COMPOSITOR_LAYER_DELEGATE_H_ | 38 #endif // UI_COMPOSITOR_LAYER_DELEGATE_H_ |
| OLD | NEW |