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

Side by Side Diff: cc/layers/layer.h

Issue 1766053002: Clean LayerImpl's scroll offset callers in unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove transform tree update setting Created 4 years, 9 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 | « no previous file | cc/layers/layer_impl.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 return touch_event_handler_region_; 299 return touch_event_handler_region_;
300 } 300 }
301 301
302 void set_did_scroll_callback(const base::Closure& callback) { 302 void set_did_scroll_callback(const base::Closure& callback) {
303 did_scroll_callback_ = callback; 303 did_scroll_callback_ = callback;
304 } 304 }
305 305
306 void SetForceRenderSurface(bool force_render_surface); 306 void SetForceRenderSurface(bool force_render_surface);
307 bool force_render_surface() const { return force_render_surface_; } 307 bool force_render_surface() const { return force_render_surface_; }
308 308
309 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); }
310 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; } 309 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; }
311 310
312 void SetDoubleSided(bool double_sided); 311 void SetDoubleSided(bool double_sided);
313 bool double_sided() const { return double_sided_; } 312 bool double_sided() const { return double_sided_; }
314 313
315 void SetShouldFlattenTransform(bool flatten); 314 void SetShouldFlattenTransform(bool flatten);
316 bool should_flatten_transform() const { return should_flatten_transform_; } 315 bool should_flatten_transform() const { return should_flatten_transform_; }
317 316
318 bool Is3dSorted() const { return sorting_context_id_ != 0; } 317 bool Is3dSorted() const { return sorting_context_id_ != 0; }
319 318
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 772
774 std::vector<FrameTimingRequest> frame_timing_requests_; 773 std::vector<FrameTimingRequest> frame_timing_requests_;
775 bool frame_timing_requests_dirty_; 774 bool frame_timing_requests_dirty_;
776 775
777 DISALLOW_COPY_AND_ASSIGN(Layer); 776 DISALLOW_COPY_AND_ASSIGN(Layer);
778 }; 777 };
779 778
780 } // namespace cc 779 } // namespace cc
781 780
782 #endif // CC_LAYERS_LAYER_H_ 781 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698