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

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

Issue 901813002: Normalize top controls offset to (0, 1), Chromium-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace more EXPECT_EQ with EXPECT_FLOAT_EQ for windows bots Created 5 years, 10 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 | « cc/trees/layer_tree_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.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 (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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const blink::WebLayer* outerViewportScrollLayer) override; 122 const blink::WebLayer* outerViewportScrollLayer) override;
123 virtual void clearViewportLayers() override; 123 virtual void clearViewportLayers() override;
124 virtual void registerSelection(const blink::WebSelectionBound& start, 124 virtual void registerSelection(const blink::WebSelectionBound& start,
125 const blink::WebSelectionBound& end) override; 125 const blink::WebSelectionBound& end) override;
126 virtual void clearSelection() override; 126 virtual void clearSelection() override;
127 virtual void setShowFPSCounter(bool show); 127 virtual void setShowFPSCounter(bool show);
128 virtual void setShowPaintRects(bool show); 128 virtual void setShowPaintRects(bool show);
129 virtual void setShowDebugBorders(bool show); 129 virtual void setShowDebugBorders(bool show);
130 virtual void setContinuousPaintingEnabled(bool enabled); 130 virtual void setContinuousPaintingEnabled(bool enabled);
131 virtual void setShowScrollBottleneckRects(bool show); 131 virtual void setShowScrollBottleneckRects(bool show);
132 virtual void setTopControlsShownRatio(float);
133
134 // TODO(aelias): Delete after Blink roll
132 virtual void setTopControlsContentOffset(float); 135 virtual void setTopControlsContentOffset(float);
133 136
134 // cc::LayerTreeHostClient implementation. 137 // cc::LayerTreeHostClient implementation.
135 void WillBeginMainFrame() override; 138 void WillBeginMainFrame() override;
136 void DidBeginMainFrame() override; 139 void DidBeginMainFrame() override;
137 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 140 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
138 void Layout() override; 141 void Layout() override;
139 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 142 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
140 const gfx::Vector2dF& outer_delta, 143 const gfx::Vector2dF& outer_delta,
141 const gfx::Vector2dF& elastic_overscroll_delta, 144 const gfx::Vector2dF& elastic_overscroll_delta,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 181 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
179 182
180 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; 183 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_;
181 184
182 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 185 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
183 }; 186 };
184 187
185 } // namespace content 188 } // namespace content
186 189
187 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 190 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698