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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual void suspendAnimations(double monotonic_time); | 96 virtual void suspendAnimations(double monotonic_time); |
97 virtual void resumeAnimations(double monotonic_time); | 97 virtual void resumeAnimations(double monotonic_time); |
98 virtual bool hasActiveAnimation(); | 98 virtual bool hasActiveAnimation(); |
99 virtual void setForceRenderSurface(bool force); | 99 virtual void setForceRenderSurface(bool force); |
100 virtual void setScrollPosition(WebKit::WebPoint position); | 100 virtual void setScrollPosition(WebKit::WebPoint position); |
101 virtual WebKit::WebPoint scrollPosition() const; | 101 virtual WebKit::WebPoint scrollPosition() const; |
102 virtual void setMaxScrollPosition(WebKit::WebSize max_position); | 102 virtual void setMaxScrollPosition(WebKit::WebSize max_position); |
103 virtual WebKit::WebSize maxScrollPosition() const; | 103 virtual WebKit::WebSize maxScrollPosition() const; |
104 virtual void setScrollable(bool scrollable); | 104 virtual void setScrollable(bool scrollable); |
105 virtual bool scrollable() const; | 105 virtual bool scrollable() const; |
| 106 virtual void setUserScrollable(bool horizontal, bool vertical); |
| 107 virtual bool userScrollableHorizontal() const; |
| 108 virtual bool userScrollableVertical() const; |
106 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); | 109 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); |
107 virtual bool haveWheelEventHandlers() const; | 110 virtual bool haveWheelEventHandlers() const; |
108 virtual void setShouldScrollOnMainThread(bool scroll_on_main); | 111 virtual void setShouldScrollOnMainThread(bool scroll_on_main); |
109 virtual bool shouldScrollOnMainThread() const; | 112 virtual bool shouldScrollOnMainThread() const; |
110 virtual void setNonFastScrollableRegion( | 113 virtual void setNonFastScrollableRegion( |
111 const WebKit::WebVector<WebKit::WebRect>& region); | 114 const WebKit::WebVector<WebKit::WebRect>& region); |
112 virtual WebKit::WebVector<WebKit::WebRect> nonFastScrollableRegion() const; | 115 virtual WebKit::WebVector<WebKit::WebRect> nonFastScrollableRegion() const; |
113 virtual void setTouchEventHandlerRegion( | 116 virtual void setTouchEventHandlerRegion( |
114 const WebKit::WebVector<WebKit::WebRect>& region); | 117 const WebKit::WebVector<WebKit::WebRect>& region); |
115 virtual WebKit::WebVector<WebKit::WebRect> touchEventHandlerRegion() const; | 118 virtual WebKit::WebVector<WebKit::WebRect> touchEventHandlerRegion() const; |
(...skipping 18 matching lines...) Expand all Loading... |
134 | 137 |
135 private: | 138 private: |
136 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 139 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
137 | 140 |
138 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 141 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
139 }; | 142 }; |
140 | 143 |
141 } // namespace webkit | 144 } // namespace webkit |
142 | 145 |
143 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 146 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
OLD | NEW |