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

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

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug Created 4 years, 4 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void setShowFPSCounter(bool show) override; 154 void setShowFPSCounter(bool show) override;
155 void setShowPaintRects(bool show) override; 155 void setShowPaintRects(bool show) override;
156 void setShowDebugBorders(bool show) override; 156 void setShowDebugBorders(bool show) override;
157 void setShowScrollBottleneckRects(bool show) override; 157 void setShowScrollBottleneckRects(bool show) override;
158 158
159 void updateTopControlsState(blink::WebTopControlsState constraints, 159 void updateTopControlsState(blink::WebTopControlsState constraints,
160 blink::WebTopControlsState current, 160 blink::WebTopControlsState current,
161 bool animate) override; 161 bool animate) override;
162 void setTopControlsHeight(float height, bool shrink) override; 162 void setTopControlsHeight(float height, bool shrink) override;
163 void setTopControlsShownRatio(float) override; 163 void setTopControlsShownRatio(float) override;
164 // TODO(ianwen): Move this method to WebLayerTreeView and implement main
165 // thread scrolling.
166 virtual void setBottomControlsHeight(float height);
164 167
165 // cc::LayerTreeHostClient implementation. 168 // cc::LayerTreeHostClient implementation.
166 void WillBeginMainFrame() override; 169 void WillBeginMainFrame() override;
167 void DidBeginMainFrame() override; 170 void DidBeginMainFrame() override;
168 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 171 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
169 void BeginMainFrameNotExpectedSoon() override; 172 void BeginMainFrameNotExpectedSoon() override;
170 void UpdateLayerTreeHost() override; 173 void UpdateLayerTreeHost() override;
171 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 174 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
172 const gfx::Vector2dF& outer_delta, 175 const gfx::Vector2dF& outer_delta,
173 const gfx::Vector2dF& elastic_overscroll_delta, 176 const gfx::Vector2dF& elastic_overscroll_delta,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 224 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
222 225
223 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; 226 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_;
224 227
225 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 228 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
226 }; 229 };
227 230
228 } // namespace content 231 } // namespace content
229 232
230 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 233 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698