Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: webkit/renderer/compositor_bindings/web_layer_impl.h

Issue 212603017: Remove scroll distribution code from Layer/LayerTreeHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate); 101 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate);
102 virtual bool addAnimation(blink::WebAnimation* animation); 102 virtual bool addAnimation(blink::WebAnimation* animation);
103 virtual void removeAnimation(int animation_id); 103 virtual void removeAnimation(int animation_id);
104 virtual void removeAnimation(int animation_id, 104 virtual void removeAnimation(int animation_id,
105 blink::WebAnimation::TargetProperty); 105 blink::WebAnimation::TargetProperty);
106 virtual void pauseAnimation(int animation_id, double time_offset); 106 virtual void pauseAnimation(int animation_id, double time_offset);
107 virtual bool hasActiveAnimation(); 107 virtual bool hasActiveAnimation();
108 virtual void setForceRenderSurface(bool force); 108 virtual void setForceRenderSurface(bool force);
109 virtual void setScrollPosition(blink::WebPoint position); 109 virtual void setScrollPosition(blink::WebPoint position);
110 virtual blink::WebPoint scrollPosition() const; 110 virtual blink::WebPoint scrollPosition() const;
111 virtual blink::WebSize maxScrollPosition() const;
112 virtual void setScrollClipLayer(blink::WebLayer* clip_layer); 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(
(...skipping 24 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_pinch_zoom.cc ('k') | webkit/renderer/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698