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

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 636283003: Remove WebPoint version of WebLayerImpl::setScrollPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ignore presubmit warning Created 6 years, 2 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
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CC_BLINK_WEB_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ 6 #define CC_BLINK_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
96 virtual void setBackgroundFilters(const blink::WebFilterOperations& filters); 96 virtual void setBackgroundFilters(const blink::WebFilterOperations& filters);
97 virtual void setAnimationDelegate( 97 virtual void setAnimationDelegate(
98 blink::WebCompositorAnimationDelegate* delegate); 98 blink::WebCompositorAnimationDelegate* delegate);
99 virtual bool addAnimation(blink::WebCompositorAnimation* animation); 99 virtual bool addAnimation(blink::WebCompositorAnimation* animation);
100 virtual void removeAnimation(int animation_id); 100 virtual void removeAnimation(int animation_id);
101 virtual void removeAnimation(int animation_id, 101 virtual void removeAnimation(int animation_id,
102 blink::WebCompositorAnimation::TargetProperty); 102 blink::WebCompositorAnimation::TargetProperty);
103 virtual void pauseAnimation(int animation_id, double time_offset); 103 virtual void pauseAnimation(int animation_id, double time_offset);
104 virtual bool hasActiveAnimation(); 104 virtual bool hasActiveAnimation();
105 virtual void setForceRenderSurface(bool force); 105 virtual void setForceRenderSurface(bool force);
106 // TODO(miletus): Add the WebDoublePoint version to WebLayer and then remove
107 // the WebPoint version from WebLayer and WebLayerImpl.
108 virtual void setScrollPosition(blink::WebPoint position);
109 virtual blink::WebPoint scrollPosition() const;
110 virtual void setScrollPositionDouble(blink::WebDoublePoint position); 106 virtual void setScrollPositionDouble(blink::WebDoublePoint position);
111 virtual blink::WebDoublePoint scrollPositionDouble() const; 107 virtual blink::WebDoublePoint scrollPositionDouble() const;
112 virtual void setScrollClipLayer(blink::WebLayer* clip_layer); 108 virtual void setScrollClipLayer(blink::WebLayer* clip_layer);
113 virtual bool scrollable() const; 109 virtual bool scrollable() const;
114 virtual void setUserScrollable(bool horizontal, bool vertical); 110 virtual void setUserScrollable(bool horizontal, bool vertical);
115 virtual bool userScrollableHorizontal() const; 111 virtual bool userScrollableHorizontal() const;
116 virtual bool userScrollableVertical() const; 112 virtual bool userScrollableVertical() const;
117 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers); 113 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers);
118 virtual bool haveWheelEventHandlers() const; 114 virtual bool haveWheelEventHandlers() const;
119 virtual void setHaveScrollEventHandlers(bool have_scroll_event_handlers); 115 virtual void setHaveScrollEventHandlers(bool have_scroll_event_handlers);
(...skipping 28 matching lines...) Expand all
148 144
149 private: 145 private:
150 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
151 147
152 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
153 }; 149 };
154 150
155 } // namespace cc_blink 151 } // namespace cc_blink
156 152
157 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 153 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698