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

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

Issue 12552004: Support bottom-right anchored fixed-position elements during a pinch gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot to save the comments. sorry. :( Created 7 years, 8 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/cc_tests.gyp ('k') | cc/layers/layer.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 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 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "cc/animation/layer_animation_controller.h" 13 #include "cc/animation/layer_animation_controller.h"
14 #include "cc/animation/layer_animation_event_observer.h" 14 #include "cc/animation/layer_animation_event_observer.h"
15 #include "cc/animation/layer_animation_value_observer.h" 15 #include "cc/animation/layer_animation_value_observer.h"
16 #include "cc/base/cc_export.h" 16 #include "cc/base/cc_export.h"
17 #include "cc/base/region.h" 17 #include "cc/base/region.h"
18 #include "cc/layers/draw_properties.h" 18 #include "cc/layers/draw_properties.h"
19 #include "cc/layers/layer_lists.h" 19 #include "cc/layers/layer_lists.h"
20 #include "cc/layers/layer_position_constraint.h"
20 #include "cc/layers/render_surface.h" 21 #include "cc/layers/render_surface.h"
21 #include "cc/trees/occlusion_tracker.h" 22 #include "cc/trees/occlusion_tracker.h"
22 #include "skia/ext/refptr.h" 23 #include "skia/ext/refptr.h"
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
24 #include "third_party/skia/include/core/SkColor.h" 25 #include "third_party/skia/include/core/SkColor.h"
25 #include "third_party/skia/include/core/SkImageFilter.h" 26 #include "third_party/skia/include/core/SkImageFilter.h"
26 #include "ui/gfx/rect.h" 27 #include "ui/gfx/rect.h"
27 #include "ui/gfx/rect_f.h" 28 #include "ui/gfx/rect_f.h"
28 #include "ui/gfx/transform.h" 29 #include "ui/gfx/transform.h"
29 30
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return background_filters_; 118 return background_filters_;
118 } 119 }
119 120
120 virtual void SetContentsOpaque(bool opaque); 121 virtual void SetContentsOpaque(bool opaque);
121 bool contents_opaque() const { return contents_opaque_; } 122 bool contents_opaque() const { return contents_opaque_; }
122 123
123 void SetPosition(gfx::PointF position); 124 void SetPosition(gfx::PointF position);
124 gfx::PointF position() const { return position_; } 125 gfx::PointF position() const { return position_; }
125 126
126 void SetIsContainerForFixedPositionLayers(bool container); 127 void SetIsContainerForFixedPositionLayers(bool container);
127 bool is_container_for_fixed_position_layers() const { 128 bool IsContainerForFixedPositionLayers() const;
128 return is_container_for_fixed_position_layers_; 129
130 void SetPositionConstraint(const LayerPositionConstraint& constraint);
131 const LayerPositionConstraint& position_constraint() const {
132 return position_constraint_;
129 } 133 }
130 134
131 void SetFixedToContainerLayer(bool fixed_to_container_layer);
132 bool fixed_to_container_layer() const { return fixed_to_container_layer_; }
133
134 void SetSublayerTransform(const gfx::Transform& sublayer_transform); 135 void SetSublayerTransform(const gfx::Transform& sublayer_transform);
135 const gfx::Transform& sublayer_transform() const { 136 const gfx::Transform& sublayer_transform() const {
136 return sublayer_transform_; 137 return sublayer_transform_;
137 } 138 }
138 139
139 void SetTransform(const gfx::Transform& transform); 140 void SetTransform(const gfx::Transform& transform);
140 const gfx::Transform& transform() const { return transform_; } 141 const gfx::Transform& transform() const { return transform_; }
141 bool TransformIsAnimating() const; 142 bool TransformIsAnimating() const;
142 143
143 DrawProperties<Layer, RenderSurface>& draw_properties() { 144 DrawProperties<Layer, RenderSurface>& draw_properties() {
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 gfx::PointF position_; 449 gfx::PointF position_;
449 gfx::PointF anchor_point_; 450 gfx::PointF anchor_point_;
450 SkColor background_color_; 451 SkColor background_color_;
451 std::string debug_name_; 452 std::string debug_name_;
452 float opacity_; 453 float opacity_;
453 skia::RefPtr<SkImageFilter> filter_; 454 skia::RefPtr<SkImageFilter> filter_;
454 WebKit::WebFilterOperations filters_; 455 WebKit::WebFilterOperations filters_;
455 WebKit::WebFilterOperations background_filters_; 456 WebKit::WebFilterOperations background_filters_;
456 float anchor_point_z_; 457 float anchor_point_z_;
457 bool is_container_for_fixed_position_layers_; 458 bool is_container_for_fixed_position_layers_;
458 bool fixed_to_container_layer_; 459 LayerPositionConstraint position_constraint_;
459 bool is_drawable_; 460 bool is_drawable_;
460 bool masks_to_bounds_; 461 bool masks_to_bounds_;
461 bool contents_opaque_; 462 bool contents_opaque_;
462 bool double_sided_; 463 bool double_sided_;
463 bool preserves_3d_; 464 bool preserves_3d_;
464 bool use_parent_backface_visibility_; 465 bool use_parent_backface_visibility_;
465 bool draw_checkerboard_for_missing_tiles_; 466 bool draw_checkerboard_for_missing_tiles_;
466 bool force_render_surface_; 467 bool force_render_surface_;
467 468
468 gfx::Transform transform_; 469 gfx::Transform transform_;
(...skipping 13 matching lines...) Expand all
482 WebKit::WebLayerScrollClient* layer_scroll_client_; 483 WebKit::WebLayerScrollClient* layer_scroll_client_;
483 484
484 DrawProperties<Layer, RenderSurface> draw_properties_; 485 DrawProperties<Layer, RenderSurface> draw_properties_;
485 486
486 DISALLOW_COPY_AND_ASSIGN(Layer); 487 DISALLOW_COPY_AND_ASSIGN(Layer);
487 }; 488 };
488 489
489 } // namespace cc 490 } // namespace cc
490 491
491 #endif // CC_LAYERS_LAYER_H_ 492 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698