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

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

Issue 18139004: cc: Create a LayerScrollClient interface and an adapter class in compositor_bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
23 #include "cc/layers/render_surface.h" 23 #include "cc/layers/render_surface.h"
24 #include "cc/output/filter_operations.h" 24 #include "cc/output/filter_operations.h"
25 #include "cc/trees/occlusion_tracker.h" 25 #include "cc/trees/occlusion_tracker.h"
26 #include "skia/ext/refptr.h" 26 #include "skia/ext/refptr.h"
27 #include "third_party/skia/include/core/SkColor.h" 27 #include "third_party/skia/include/core/SkColor.h"
28 #include "third_party/skia/include/core/SkImageFilter.h" 28 #include "third_party/skia/include/core/SkImageFilter.h"
29 #include "ui/gfx/rect.h" 29 #include "ui/gfx/rect.h"
30 #include "ui/gfx/rect_f.h" 30 #include "ui/gfx/rect_f.h"
31 #include "ui/gfx/transform.h" 31 #include "ui/gfx/transform.h"
32 32
33 namespace WebKit {
34 class WebLayerScrollClient;
35 }
36
37 namespace cc { 33 namespace cc {
38 34
39 class Animation; 35 class Animation;
40 class AnimationDelegate; 36 class AnimationDelegate;
41 struct AnimationEvent; 37 struct AnimationEvent;
42 class CopyOutputRequest; 38 class CopyOutputRequest;
43 class LayerAnimationDelegate; 39 class LayerAnimationDelegate;
44 class LayerAnimationEventObserver; 40 class LayerAnimationEventObserver;
45 class LayerImpl; 41 class LayerImpl;
46 class LayerTreeHost; 42 class LayerTreeHost;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); 223 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region);
228 const Region& non_fast_scrollable_region() const { 224 const Region& non_fast_scrollable_region() const {
229 return non_fast_scrollable_region_; 225 return non_fast_scrollable_region_;
230 } 226 }
231 227
232 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region); 228 void SetTouchEventHandlerRegion(const Region& touch_event_handler_region);
233 const Region& touch_event_handler_region() const { 229 const Region& touch_event_handler_region() const {
234 return touch_event_handler_region_; 230 return touch_event_handler_region_;
235 } 231 }
236 232
237 void set_layer_scroll_client(WebKit::WebLayerScrollClient* client) { 233 void set_did_scroll_callback(const base::Closure& callback) {
238 layer_scroll_client_ = client; 234 did_scroll_callback_ = callback;
239 } 235 }
240 236
241 void SetDrawCheckerboardForMissingTiles(bool checkerboard); 237 void SetDrawCheckerboardForMissingTiles(bool checkerboard);
242 bool DrawCheckerboardForMissingTiles() const { 238 bool DrawCheckerboardForMissingTiles() const {
243 return draw_checkerboard_for_missing_tiles_; 239 return draw_checkerboard_for_missing_tiles_;
244 } 240 }
245 241
246 void SetForceRenderSurface(bool force_render_surface); 242 void SetForceRenderSurface(bool force_render_surface);
247 bool force_render_surface() const { return force_render_surface_; } 243 bool force_render_surface() const { return force_render_surface_; }
248 244
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 gfx::Transform sublayer_transform_; 477 gfx::Transform sublayer_transform_;
482 478
483 // Replica layer used for reflections. 479 // Replica layer used for reflections.
484 scoped_refptr<Layer> replica_layer_; 480 scoped_refptr<Layer> replica_layer_;
485 481
486 // Transient properties. 482 // Transient properties.
487 float raster_scale_; 483 float raster_scale_;
488 484
489 ScopedPtrVector<CopyOutputRequest> copy_requests_; 485 ScopedPtrVector<CopyOutputRequest> copy_requests_;
490 486
491 WebKit::WebLayerScrollClient* layer_scroll_client_; 487 base::Closure did_scroll_callback_;
492 488
493 DrawProperties<Layer, RenderSurface> draw_properties_; 489 DrawProperties<Layer, RenderSurface> draw_properties_;
494 490
495 PaintProperties paint_properties_; 491 PaintProperties paint_properties_;
496 492
497 DISALLOW_COPY_AND_ASSIGN(Layer); 493 DISALLOW_COPY_AND_ASSIGN(Layer);
498 }; 494 };
499 495
500 } // namespace cc 496 } // namespace cc
501 497
502 #endif // CC_LAYERS_LAYER_H_ 498 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/DEPS ('k') | cc/layers/layer.cc » ('j') | cc/trees/layer_tree_host_unittest_scroll.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698