| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SKY_VIEWER_CC_WEB_LAYER_IMPL_H_ | 5 #ifndef SKY_VIEWER_CC_WEB_LAYER_IMPL_H_ |
| 6 #define SKY_VIEWER_CC_WEB_LAYER_IMPL_H_ | 6 #define SKY_VIEWER_CC_WEB_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual bool addAnimation(blink::WebCompositorAnimation* animation); | 100 virtual bool addAnimation(blink::WebCompositorAnimation* animation); |
| 101 virtual void removeAnimation(int animation_id); | 101 virtual void removeAnimation(int animation_id); |
| 102 virtual void removeAnimation(int animation_id, | 102 virtual void removeAnimation(int animation_id, |
| 103 blink::WebCompositorAnimation::TargetProperty); | 103 blink::WebCompositorAnimation::TargetProperty); |
| 104 virtual void pauseAnimation(int animation_id, double time_offset); | 104 virtual void pauseAnimation(int animation_id, double time_offset); |
| 105 virtual bool hasActiveAnimation(); | 105 virtual bool hasActiveAnimation(); |
| 106 virtual void setForceRenderSurface(bool force); | 106 virtual void setForceRenderSurface(bool force); |
| 107 virtual void setScrollPosition(blink::WebPoint position); | 107 virtual void setScrollPosition(blink::WebPoint position); |
| 108 virtual blink::WebPoint scrollPosition() const; | 108 virtual blink::WebPoint scrollPosition() const; |
| 109 virtual void setScrollClipLayer(blink::WebLayer* clip_layer); | 109 virtual void setScrollClipLayer(blink::WebLayer* clip_layer); |
| 110 virtual bool scrollable() const; | |
| 111 virtual void setUserScrollable(bool horizontal, bool vertical); | |
| 112 virtual bool userScrollableHorizontal() const; | |
| 113 virtual bool userScrollableVertical() const; | |
| 114 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); | |
| 115 virtual bool haveWheelEventHandlers() const; | |
| 116 virtual void setHaveScrollEventHandlers(bool have_scroll_event_handlers); | |
| 117 virtual bool haveScrollEventHandlers() const; | |
| 118 virtual void setShouldScrollOnMainThread(bool scroll_on_main); | |
| 119 virtual bool shouldScrollOnMainThread() const; | |
| 120 virtual void setNonFastScrollableRegion( | |
| 121 const blink::WebVector<blink::WebRect>& region); | |
| 122 virtual void setScrollClient(blink::WebLayerScrollClient* client); | 110 virtual void setScrollClient(blink::WebLayerScrollClient* client); |
| 123 virtual bool isOrphan() const; | 111 virtual bool isOrphan() const; |
| 124 virtual void setWebLayerClient(blink::WebLayerClient* client); | 112 virtual void setWebLayerClient(blink::WebLayerClient* client); |
| 125 | 113 |
| 126 // LayerClient implementation. | 114 // LayerClient implementation. |
| 127 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() | 115 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() |
| 128 override; | 116 override; |
| 129 | 117 |
| 130 virtual void setScrollParent(blink::WebLayer* parent); | 118 virtual void setScrollParent(blink::WebLayer* parent); |
| 131 virtual void setClipParent(blink::WebLayer* parent); | 119 virtual void setClipParent(blink::WebLayer* parent); |
| 132 | 120 |
| 133 protected: | 121 protected: |
| 134 scoped_refptr<cc::Layer> layer_; | 122 scoped_refptr<cc::Layer> layer_; |
| 135 blink::WebLayerClient* web_layer_client_; | 123 blink::WebLayerClient* web_layer_client_; |
| 136 | 124 |
| 137 private: | 125 private: |
| 138 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 126 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 139 | 127 |
| 140 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 128 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 141 }; | 129 }; |
| 142 | 130 |
| 143 } // namespace sky_viewer_cc | 131 } // namespace sky_viewer_cc |
| 144 | 132 |
| 145 #endif // SKY_VIEWER_CC_WEB_LAYER_IMPL_H_ | 133 #endif // SKY_VIEWER_CC_WEB_LAYER_IMPL_H_ |
| OLD | NEW |