| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 // Group of properties that need to be computed based on the layer tree | 575 // Group of properties that need to be computed based on the layer tree |
| 574 // hierarchy before layers can be drawn. | 576 // hierarchy before layers can be drawn. |
| 575 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; | 577 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; |
| 576 | 578 |
| 577 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 579 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 578 }; | 580 }; |
| 579 | 581 |
| 580 } // namespace cc | 582 } // namespace cc |
| 581 | 583 |
| 582 #endif // CC_LAYERS_LAYER_IMPL_H_ | 584 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |