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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_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 void setAnimationDelegate(blink::WebAnimationDelegate* delegate); | 100 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate); |
101 virtual bool addAnimation(blink::WebAnimation* animation); | 101 virtual bool addAnimation(blink::WebAnimation* animation); |
102 virtual void removeAnimation(int animation_id); | 102 virtual void removeAnimation(int animation_id); |
103 virtual void removeAnimation(int animation_id, | 103 virtual void removeAnimation(int animation_id, |
104 blink::WebAnimation::TargetProperty); | 104 blink::WebAnimation::TargetProperty); |
105 virtual void pauseAnimation(int animation_id, double time_offset); | 105 virtual void pauseAnimation(int animation_id, double time_offset); |
106 virtual bool hasActiveAnimation(); | 106 virtual bool hasActiveAnimation(); |
107 virtual void setForceRenderSurface(bool force); | 107 virtual void setForceRenderSurface(bool force); |
108 virtual void setScrollPosition(blink::WebPoint position); | 108 virtual void setScrollPosition(blink::WebPoint position); |
109 virtual blink::WebPoint scrollPosition() const; | 109 virtual blink::WebPoint scrollPosition() const; |
110 virtual void setMaxScrollPosition(blink::WebSize max_position); | |
111 virtual blink::WebSize maxScrollPosition() const; | 110 virtual blink::WebSize maxScrollPosition() const; |
112 virtual void setScrollable(bool scrollable); | 111 virtual void setScrollClipLayer(blink::WebLayer* clip_layer); |
113 virtual bool scrollable() const; | 112 virtual bool scrollable() const; |
114 virtual void setUserScrollable(bool horizontal, bool vertical); | 113 virtual void setUserScrollable(bool horizontal, bool vertical); |
115 virtual bool userScrollableHorizontal() const; | 114 virtual bool userScrollableHorizontal() const; |
116 virtual bool userScrollableVertical() const; | 115 virtual bool userScrollableVertical() const; |
117 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); | 116 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); |
118 virtual bool haveWheelEventHandlers() const; | 117 virtual bool haveWheelEventHandlers() const; |
119 virtual void setShouldScrollOnMainThread(bool scroll_on_main); | 118 virtual void setShouldScrollOnMainThread(bool scroll_on_main); |
120 virtual bool shouldScrollOnMainThread() const; | 119 virtual bool shouldScrollOnMainThread() const; |
121 virtual void setNonFastScrollableRegion( | 120 virtual void setNonFastScrollableRegion( |
122 const blink::WebVector<blink::WebRect>& region); | 121 const blink::WebVector<blink::WebRect>& region); |
(...skipping 23 matching lines...) Expand all Loading... |
146 | 145 |
147 private: | 146 private: |
148 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 147 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
149 | 148 |
150 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 149 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
151 }; | 150 }; |
152 | 151 |
153 } // namespace webkit | 152 } // namespace webkit |
154 | 153 |
155 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 154 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
OLD | NEW |