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

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

Issue 783373002: Add argument to pass elastic overscroll delta to Blink (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remote TODOs Created 6 years 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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual void setShowScrollBottleneckRects(bool show); 130 virtual void setShowScrollBottleneckRects(bool show);
131 virtual void setTopControlsContentOffset(float); 131 virtual void setTopControlsContentOffset(float);
132 132
133 // cc::LayerTreeHostClient implementation. 133 // cc::LayerTreeHostClient implementation.
134 void WillBeginMainFrame(int frame_id) override; 134 void WillBeginMainFrame(int frame_id) override;
135 void DidBeginMainFrame() override; 135 void DidBeginMainFrame() override;
136 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 136 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
137 void Layout() override; 137 void Layout() override;
138 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, 138 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta,
139 const gfx::Vector2d& outer_delta, 139 const gfx::Vector2d& outer_delta,
140 const gfx::Vector2dF& elastic_overscroll_delta,
140 float page_scale, 141 float page_scale,
141 float top_controls_delta) override; 142 float top_controls_delta) override;
142 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 143 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
143 float page_scale, 144 float page_scale,
144 float top_controls_delta) override; 145 float top_controls_delta) override;
145 void RequestNewOutputSurface(bool fallback) override; 146 void RequestNewOutputSurface(bool fallback) override;
146 void DidInitializeOutputSurface() override; 147 void DidInitializeOutputSurface() override;
147 void WillCommit() override; 148 void WillCommit() override;
148 void DidCommit() override; 149 void DidCommit() override;
149 void DidCommitAndDrawFrame() override; 150 void DidCommitAndDrawFrame() override;
(...skipping 18 matching lines...) Expand all
168 169
169 bool send_v8_idle_notification_after_commit_; 170 bool send_v8_idle_notification_after_commit_;
170 base::TimeTicks begin_main_frame_time_; 171 base::TimeTicks begin_main_frame_time_;
171 // The time interval between BeginMainFrame calls, provided by the scheduler. 172 // The time interval between BeginMainFrame calls, provided by the scheduler.
172 base::TimeDelta begin_main_frame_interval_; 173 base::TimeDelta begin_main_frame_interval_;
173 }; 174 };
174 175
175 } // namespace content 176 } // namespace content
176 177
177 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 178 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698