| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
| 6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 void SetSentScrollDelta(gfx::Vector2d sent_scroll_delta); | 323 void SetSentScrollDelta(gfx::Vector2d sent_scroll_delta); |
| 324 gfx::Vector2d sent_scroll_delta() const { return sent_scroll_delta_; } | 324 gfx::Vector2d sent_scroll_delta() const { return sent_scroll_delta_; } |
| 325 | 325 |
| 326 // Returns the delta of the scroll that was outside of the bounds of the | 326 // Returns the delta of the scroll that was outside of the bounds of the |
| 327 // initial scroll | 327 // initial scroll |
| 328 gfx::Vector2dF ScrollBy(gfx::Vector2dF scroll); | 328 gfx::Vector2dF ScrollBy(gfx::Vector2dF scroll); |
| 329 | 329 |
| 330 void SetScrollable(bool scrollable) { scrollable_ = scrollable; } | 330 void SetScrollable(bool scrollable) { scrollable_ = scrollable; } |
| 331 bool scrollable() const { return scrollable_; } | 331 bool scrollable() const { return scrollable_; } |
| 332 | 332 |
| 333 void ApplySentScrollDeltas(); |
| 334 |
| 333 void SetShouldScrollOnMainThread(bool should_scroll_on_main_thread) { | 335 void SetShouldScrollOnMainThread(bool should_scroll_on_main_thread) { |
| 334 should_scroll_on_main_thread_ = should_scroll_on_main_thread; | 336 should_scroll_on_main_thread_ = should_scroll_on_main_thread; |
| 335 } | 337 } |
| 336 bool should_scroll_on_main_thread() const { | 338 bool should_scroll_on_main_thread() const { |
| 337 return should_scroll_on_main_thread_; | 339 return should_scroll_on_main_thread_; |
| 338 } | 340 } |
| 339 | 341 |
| 340 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers) { | 342 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers) { |
| 341 have_wheel_event_handlers_ = have_wheel_event_handlers; | 343 have_wheel_event_handlers_ = have_wheel_event_handlers; |
| 342 } | 344 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 // Group of properties that need to be computed based on the layer tree | 571 // Group of properties that need to be computed based on the layer tree |
| 570 // hierarchy before layers can be drawn. | 572 // hierarchy before layers can be drawn. |
| 571 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 573 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
| 572 | 574 |
| 573 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 575 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 574 }; | 576 }; |
| 575 | 577 |
| 576 } // namespace cc | 578 } // namespace cc |
| 577 | 579 |
| 578 #endif // CC_LAYERS_LAYER_IMPL_H_ | 580 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |