| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate); | 90 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate); |
| 91 virtual bool addAnimation(blink::WebAnimation* animation); | 91 virtual bool addAnimation(blink::WebAnimation* animation); |
| 92 virtual void removeAnimation(int animation_id); | 92 virtual void removeAnimation(int animation_id); |
| 93 virtual void removeAnimation(int animation_id, | 93 virtual void removeAnimation(int animation_id, |
| 94 blink::WebAnimation::TargetProperty); | 94 blink::WebAnimation::TargetProperty); |
| 95 virtual void pauseAnimation(int animation_id, double time_offset); | 95 virtual void pauseAnimation(int animation_id, double time_offset); |
| 96 virtual bool hasActiveAnimation(); | 96 virtual bool hasActiveAnimation(); |
| 97 virtual void setForceRenderSurface(bool force); | 97 virtual void setForceRenderSurface(bool force); |
| 98 virtual void setScrollPosition(blink::WebPoint position); | 98 virtual void setScrollPosition(blink::WebPoint position); |
| 99 virtual blink::WebPoint scrollPosition() const; | 99 virtual blink::WebPoint scrollPosition() const; |
| 100 virtual void setMaxScrollPosition(blink::WebSize max_position); | |
| 101 virtual blink::WebSize maxScrollPosition() const; | 100 virtual blink::WebSize maxScrollPosition() const; |
| 102 virtual void setScrollable(bool scrollable); | 101 virtual void setScrollable(blink::WebLayer* clip_layer); |
| 103 virtual bool scrollable() const; | 102 virtual bool scrollable() const; |
| 104 virtual void setUserScrollable(bool horizontal, bool vertical); | 103 virtual void setUserScrollable(bool horizontal, bool vertical); |
| 105 virtual bool userScrollableHorizontal() const; | 104 virtual bool userScrollableHorizontal() const; |
| 106 virtual bool userScrollableVertical() const; | 105 virtual bool userScrollableVertical() const; |
| 107 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); | 106 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); |
| 108 virtual bool haveWheelEventHandlers() const; | 107 virtual bool haveWheelEventHandlers() const; |
| 109 virtual void setShouldScrollOnMainThread(bool scroll_on_main); | 108 virtual void setShouldScrollOnMainThread(bool scroll_on_main); |
| 110 virtual bool shouldScrollOnMainThread() const; | 109 virtual bool shouldScrollOnMainThread() const; |
| 111 virtual void setNonFastScrollableRegion( | 110 virtual void setNonFastScrollableRegion( |
| 112 const blink::WebVector<blink::WebRect>& region); | 111 const blink::WebVector<blink::WebRect>& region); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 135 | 134 |
| 136 private: | 135 private: |
| 137 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 136 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 138 | 137 |
| 139 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 138 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 140 }; | 139 }; |
| 141 | 140 |
| 142 } // namespace webkit | 141 } // namespace webkit |
| 143 | 142 |
| 144 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 143 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| OLD | NEW |