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

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: Created 4 years, 5 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void setShowFPSCounter(bool show) override; 147 void setShowFPSCounter(bool show) override;
148 void setShowPaintRects(bool show) override; 148 void setShowPaintRects(bool show) override;
149 void setShowDebugBorders(bool show) override; 149 void setShowDebugBorders(bool show) override;
150 void setShowScrollBottleneckRects(bool show) override; 150 void setShowScrollBottleneckRects(bool show) override;
151 151
152 void updateTopControlsState(blink::WebTopControlsState constraints, 152 void updateTopControlsState(blink::WebTopControlsState constraints,
153 blink::WebTopControlsState current, 153 blink::WebTopControlsState current,
154 bool animate) override; 154 bool animate) override;
155 void setTopControlsHeight(float height, bool shrink) override; 155 void setTopControlsHeight(float height, bool shrink) override;
156 void setTopControlsShownRatio(float) override; 156 void setTopControlsShownRatio(float) override;
157 // TODO(ianwen): Move this method to WebLayerTreeView and implement main
158 // thread scrolling.
159 virtual void setBottomControlHeight(float height);
157 160
158 // cc::LayerTreeHostClient implementation. 161 // cc::LayerTreeHostClient implementation.
159 void WillBeginMainFrame() override; 162 void WillBeginMainFrame() override;
160 void DidBeginMainFrame() override; 163 void DidBeginMainFrame() override;
161 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 164 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
162 void BeginMainFrameNotExpectedSoon() override; 165 void BeginMainFrameNotExpectedSoon() override;
163 void UpdateLayerTreeHost() override; 166 void UpdateLayerTreeHost() override;
164 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 167 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
165 const gfx::Vector2dF& outer_delta, 168 const gfx::Vector2dF& outer_delta,
166 const gfx::Vector2dF& elastic_overscroll_delta, 169 const gfx::Vector2dF& elastic_overscroll_delta,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; 217 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_;
215 218
216 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; 219 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_;
217 220
218 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 221 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
219 }; 222 };
220 223
221 } // namespace content 224 } // namespace content
222 225
223 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 226 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698