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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 1 month 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.cc ('k') | cc/trees/layer_tree_host_common_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/debug/micro_benchmark.h" 11 #include "cc/debug/micro_benchmark.h"
12 #include "cc/input/top_controls_state.h" 12 #include "cc/input/browser_controls_state.h"
13 13
14 namespace base { 14 namespace base {
15 class TimeTicks; 15 class TimeTicks;
16 } // namespace base 16 } // namespace base
17 17
18 namespace gfx { 18 namespace gfx {
19 class Rect; 19 class Rect;
20 } // namespace gfx 20 } // namespace gfx
21 21
22 namespace cc { 22 namespace cc {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // CompositorFrame. 151 // CompositorFrame.
152 virtual void SetNextCommitForcesRedraw() = 0; 152 virtual void SetNextCommitForcesRedraw() = 0;
153 153
154 // Input Handling --------------------------------------------- 154 // Input Handling ---------------------------------------------
155 155
156 // Notifies the compositor that input from the browser is being throttled till 156 // Notifies the compositor that input from the browser is being throttled till
157 // the next commit. The compositor will prioritize activation of the pending 157 // the next commit. The compositor will prioritize activation of the pending
158 // tree so a commit can be performed. 158 // tree so a commit can be performed.
159 virtual void NotifyInputThrottledUntilCommit() = 0; 159 virtual void NotifyInputThrottledUntilCommit() = 0;
160 160
161 // Sets the state of the top controls. (Used for URL bar animations on 161 // Sets the state of the browser controls. (Used for URL bar animations on
162 // android). 162 // android).
163 virtual void UpdateTopControlsState(TopControlsState constraints, 163 virtual void UpdateBrowserControlsState(BrowserControlsState constraints,
164 TopControlsState current, 164 BrowserControlsState current,
165 bool animate) = 0; 165 bool animate) = 0;
166 166
167 // Returns a reference to the InputHandler used to respond to input events on 167 // Returns a reference to the InputHandler used to respond to input events on
168 // the compositor thread. 168 // the compositor thread.
169 virtual const base::WeakPtr<InputHandler>& GetInputHandler() const = 0; 169 virtual const base::WeakPtr<InputHandler>& GetInputHandler() const = 0;
170 170
171 // Informs the compositor that an active fling gesture being processed on the 171 // Informs the compositor that an active fling gesture being processed on the
172 // main thread has been finished. 172 // main thread has been finished.
173 virtual void DidStopFlinging() = 0; 173 virtual void DidStopFlinging() = 0;
174 174
175 // Debugging and benchmarks --------------------------------- 175 // Debugging and benchmarks ---------------------------------
(...skipping 22 matching lines...) Expand all
198 virtual void SetNextCommitWaitsForActivation() = 0; 198 virtual void SetNextCommitWaitsForActivation() = 0;
199 199
200 // The LayerTreeHost tracks whether the content is suitable for Gpu raster. 200 // The LayerTreeHost tracks whether the content is suitable for Gpu raster.
201 // Calling this will reset it back to not suitable state. 201 // Calling this will reset it back to not suitable state.
202 virtual void ResetGpuRasterizationTracking() = 0; 202 virtual void ResetGpuRasterizationTracking() = 0;
203 }; 203 };
204 204
205 } // namespace cc 205 } // namespace cc
206 206
207 #endif // CC_TREES_LAYER_TREE_HOST_H_ 207 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698