| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ | 5 #ifndef CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ |
| 6 #define CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ | 6 #define CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/vector2d_f.h" |
| 9 |
| 8 namespace cc { | 10 namespace cc { |
| 9 | 11 |
| 10 // The LayerScrollOffsetDelegate allows for the embedder to take ownership of | 12 // The LayerScrollOffsetDelegate allows for the embedder to take ownership of |
| 11 // the scroll offset of the root layer. | 13 // the scroll offset of the root layer. |
| 12 // | 14 // |
| 13 // The LayerScrollOffsetDelegate is only used on the impl thread. | 15 // The LayerScrollOffsetDelegate is only used on the impl thread. |
| 14 class LayerScrollOffsetDelegate { | 16 class LayerScrollOffsetDelegate { |
| 15 public: | 17 public: |
| 16 // This is called by the compositor when the scroll offset of the layer would | 18 // This is called by the compositor when the scroll offset of the layer would |
| 17 // have otherwise changed. | 19 // have otherwise changed. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 29 LayerScrollOffsetDelegate() {} | 31 LayerScrollOffsetDelegate() {} |
| 30 virtual ~LayerScrollOffsetDelegate() {} | 32 virtual ~LayerScrollOffsetDelegate() {} |
| 31 | 33 |
| 32 private: | 34 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate); | 35 DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 } // namespace cc | 38 } // namespace cc |
| 37 | 39 |
| 38 #endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ | 40 #endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ |
| OLD | NEW |