| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "cc/animation/animation_delegate.h" | 14 #include "cc/animation/animation_delegate.h" |
| 15 #include "cc/animation/layer_animation_controller.h" | 15 #include "cc/animation/layer_animation_controller.h" |
| 16 #include "cc/animation/layer_animation_value_observer.h" | 16 #include "cc/animation/layer_animation_value_observer.h" |
| 17 #include "cc/animation/layer_animation_value_provider.h" | 17 #include "cc/animation/layer_animation_value_provider.h" |
| 18 #include "cc/base/cc_export.h" | 18 #include "cc/base/cc_export.h" |
| 19 #include "cc/base/region.h" | 19 #include "cc/base/region.h" |
| 20 #include "cc/base/scoped_ptr_vector.h" | 20 #include "cc/base/scoped_ptr_vector.h" |
| 21 #include "cc/input/input_handler.h" | 21 #include "cc/input/input_handler.h" |
| 22 #include "cc/input/scrollbar.h" |
| 22 #include "cc/layers/draw_properties.h" | 23 #include "cc/layers/draw_properties.h" |
| 23 #include "cc/layers/layer_lists.h" | 24 #include "cc/layers/layer_lists.h" |
| 24 #include "cc/layers/layer_position_constraint.h" | 25 #include "cc/layers/layer_position_constraint.h" |
| 25 #include "cc/layers/render_surface_impl.h" | 26 #include "cc/layers/render_surface_impl.h" |
| 26 #include "cc/output/filter_operations.h" | 27 #include "cc/output/filter_operations.h" |
| 27 #include "cc/quads/shared_quad_state.h" | 28 #include "cc/quads/shared_quad_state.h" |
| 28 #include "cc/resources/resource_provider.h" | 29 #include "cc/resources/resource_provider.h" |
| 29 #include "skia/ext/refptr.h" | 30 #include "skia/ext/refptr.h" |
| 30 #include "third_party/skia/include/core/SkColor.h" | 31 #include "third_party/skia/include/core/SkColor.h" |
| 31 #include "third_party/skia/include/core/SkImageFilter.h" | 32 #include "third_party/skia/include/core/SkImageFilter.h" |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 void SetScrollClipLayer(int scroll_clip_layer_id); | 404 void SetScrollClipLayer(int scroll_clip_layer_id); |
| 404 LayerImpl* scroll_clip_layer() const { return scroll_clip_layer_; } | 405 LayerImpl* scroll_clip_layer() const { return scroll_clip_layer_; } |
| 405 bool scrollable() const { return !!scroll_clip_layer_; } | 406 bool scrollable() const { return !!scroll_clip_layer_; } |
| 406 | 407 |
| 407 void set_user_scrollable_horizontal(bool scrollable) { | 408 void set_user_scrollable_horizontal(bool scrollable) { |
| 408 user_scrollable_horizontal_ = scrollable; | 409 user_scrollable_horizontal_ = scrollable; |
| 409 } | 410 } |
| 410 void set_user_scrollable_vertical(bool scrollable) { | 411 void set_user_scrollable_vertical(bool scrollable) { |
| 411 user_scrollable_vertical_ = scrollable; | 412 user_scrollable_vertical_ = scrollable; |
| 412 } | 413 } |
| 414 bool user_scrollable(ScrollbarOrientation orientation) const; |
| 413 | 415 |
| 414 void ApplySentScrollDeltasFromAbortedCommit(); | 416 void ApplySentScrollDeltasFromAbortedCommit(); |
| 415 void ApplyScrollDeltasSinceBeginMainFrame(); | 417 void ApplyScrollDeltasSinceBeginMainFrame(); |
| 416 | 418 |
| 417 void SetShouldScrollOnMainThread(bool should_scroll_on_main_thread) { | 419 void SetShouldScrollOnMainThread(bool should_scroll_on_main_thread) { |
| 418 should_scroll_on_main_thread_ = should_scroll_on_main_thread; | 420 should_scroll_on_main_thread_ = should_scroll_on_main_thread; |
| 419 } | 421 } |
| 420 bool should_scroll_on_main_thread() const { | 422 bool should_scroll_on_main_thread() const { |
| 421 return should_scroll_on_main_thread_; | 423 return should_scroll_on_main_thread_; |
| 422 } | 424 } |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 DrawProperties<LayerImpl> draw_properties_; | 709 DrawProperties<LayerImpl> draw_properties_; |
| 708 | 710 |
| 709 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 711 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 710 | 712 |
| 711 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 713 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 712 }; | 714 }; |
| 713 | 715 |
| 714 } // namespace cc | 716 } // namespace cc |
| 715 | 717 |
| 716 #endif // CC_LAYERS_LAYER_IMPL_H_ | 718 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |