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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update the test Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 blink::WebBrowserControlsState current, 178 blink::WebBrowserControlsState current,
179 bool animate) override; 179 bool animate) override;
180 void SetBrowserControlsHeight(float height, bool shrink) override; 180 void SetBrowserControlsHeight(float height, bool shrink) override;
181 void SetBrowserControlsShownRatio(float) override; 181 void SetBrowserControlsShownRatio(float) override;
182 // TODO(ianwen): Move this method to WebLayerTreeView and implement main 182 // TODO(ianwen): Move this method to WebLayerTreeView and implement main
183 // thread scrolling. 183 // thread scrolling.
184 virtual void setBottomControlsHeight(float height); 184 virtual void setBottomControlsHeight(float height);
185 void RequestDecode(const PaintImage& image, 185 void RequestDecode(const PaintImage& image,
186 const base::Callback<void(bool)>& callback) override; 186 const base::Callback<void(bool)>& callback) override;
187 187
188 void SetScrollBoundaryBehavior(
189 const blink::WebScrollBoundaryBehavior&) override;
190
188 // cc::LayerTreeHostClient implementation. 191 // cc::LayerTreeHostClient implementation.
189 void WillBeginMainFrame() override; 192 void WillBeginMainFrame() override;
190 void DidBeginMainFrame() override; 193 void DidBeginMainFrame() override;
191 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 194 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
192 void BeginMainFrameNotExpectedSoon() override; 195 void BeginMainFrameNotExpectedSoon() override;
193 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; 196 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override;
194 void UpdateLayerTreeHost() override; 197 void UpdateLayerTreeHost() override;
195 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 198 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
196 const gfx::Vector2dF& outer_delta, 199 const gfx::Vector2dF& outer_delta,
197 const gfx::Vector2dF& elastic_overscroll_delta, 200 const gfx::Vector2dF& elastic_overscroll_delta,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 cc::FrameSinkId frame_sink_id_; 252 cc::FrameSinkId frame_sink_id_;
250 253
251 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 254 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
252 255
253 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); 256 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor);
254 }; 257 };
255 258
256 } // namespace content 259 } // namespace content
257 260
258 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 261 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698