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

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

Issue 379473002: Rename composited selection anchor/focus to start/end (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test Created 6 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
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/trees/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_refptr<Layer> page_scale_layer, 172 scoped_refptr<Layer> page_scale_layer,
173 scoped_refptr<Layer> inner_viewport_scroll_layer, 173 scoped_refptr<Layer> inner_viewport_scroll_layer,
174 scoped_refptr<Layer> outer_viewport_scroll_layer); 174 scoped_refptr<Layer> outer_viewport_scroll_layer);
175 Layer* inner_viewport_scroll_layer() const { 175 Layer* inner_viewport_scroll_layer() const {
176 return inner_viewport_scroll_layer_.get(); 176 return inner_viewport_scroll_layer_.get();
177 } 177 }
178 Layer* outer_viewport_scroll_layer() const { 178 Layer* outer_viewport_scroll_layer() const {
179 return outer_viewport_scroll_layer_.get(); 179 return outer_viewport_scroll_layer_.get();
180 } 180 }
181 181
182 void RegisterSelection(const LayerSelectionBound& anchor, 182 void RegisterSelection(const LayerSelectionBound& start,
183 const LayerSelectionBound& focus); 183 const LayerSelectionBound& end);
184 184
185 const LayerTreeSettings& settings() const { return settings_; } 185 const LayerTreeSettings& settings() const { return settings_; }
186 186
187 void SetDebugState(const LayerTreeDebugState& debug_state); 187 void SetDebugState(const LayerTreeDebugState& debug_state);
188 const LayerTreeDebugState& debug_state() const { return debug_state_; } 188 const LayerTreeDebugState& debug_state() const { return debug_state_; }
189 189
190 bool has_gpu_rasterization_trigger() const { 190 bool has_gpu_rasterization_trigger() const {
191 return has_gpu_rasterization_trigger_; 191 return has_gpu_rasterization_trigger_;
192 } 192 }
193 void SetHasGpuRasterizationTrigger(bool has_trigger); 193 void SetHasGpuRasterizationTrigger(bool has_trigger);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 int64 total_num_cc_layers_will_use_lcd_text; 436 int64 total_num_cc_layers_will_use_lcd_text;
437 }; 437 };
438 LCDTextMetrics lcd_text_metrics_; 438 LCDTextMetrics lcd_text_metrics_;
439 int id_; 439 int id_;
440 bool next_commit_forces_redraw_; 440 bool next_commit_forces_redraw_;
441 441
442 scoped_refptr<Layer> page_scale_layer_; 442 scoped_refptr<Layer> page_scale_layer_;
443 scoped_refptr<Layer> inner_viewport_scroll_layer_; 443 scoped_refptr<Layer> inner_viewport_scroll_layer_;
444 scoped_refptr<Layer> outer_viewport_scroll_layer_; 444 scoped_refptr<Layer> outer_viewport_scroll_layer_;
445 445
446 LayerSelectionBound selection_anchor_; 446 LayerSelectionBound selection_start_;
447 LayerSelectionBound selection_focus_; 447 LayerSelectionBound selection_end_;
448 448
449 SharedBitmapManager* shared_bitmap_manager_; 449 SharedBitmapManager* shared_bitmap_manager_;
450 450
451 ScopedPtrVector<SwapPromise> swap_promise_list_; 451 ScopedPtrVector<SwapPromise> swap_promise_list_;
452 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 452 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
453 453
454 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 454 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
455 }; 455 };
456 456
457 } // namespace cc 457 } // namespace cc
458 458
459 #endif // CC_TREES_LAYER_TREE_HOST_H_ 459 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698