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

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

Issue 30793002: cc: Do not allow gesture-scrolling 'overflow[-{x|y}]:hidden' layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: needs-commit Created 7 years, 2 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
« no previous file with comments | « no previous file | 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 void SetScrollOffset(gfx::Vector2d scroll_offset); 244 void SetScrollOffset(gfx::Vector2d scroll_offset);
245 gfx::Vector2d scroll_offset() const { return scroll_offset_; } 245 gfx::Vector2d scroll_offset() const { return scroll_offset_; }
246 void SetScrollOffsetFromImplSide(gfx::Vector2d scroll_offset); 246 void SetScrollOffsetFromImplSide(gfx::Vector2d scroll_offset);
247 247
248 void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset); 248 void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset);
249 gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; } 249 gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; }
250 250
251 void SetScrollable(bool scrollable); 251 void SetScrollable(bool scrollable);
252 bool scrollable() const { return scrollable_; } 252 bool scrollable() const { return scrollable_; }
253 253
254 void SetUserScrollable(bool horizontal, bool vertical);
255 bool user_scrollable_horizontal() const {
256 return user_scrollable_horizontal_;
257 }
258 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
259
254 void SetShouldScrollOnMainThread(bool should_scroll_on_main_thread); 260 void SetShouldScrollOnMainThread(bool should_scroll_on_main_thread);
255 bool should_scroll_on_main_thread() const { 261 bool should_scroll_on_main_thread() const {
256 return should_scroll_on_main_thread_; 262 return should_scroll_on_main_thread_;
257 } 263 }
258 264
259 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers); 265 void SetHaveWheelEventHandlers(bool have_wheel_event_handlers);
260 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; } 266 bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; }
261 267
262 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); 268 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region);
263 const Region& non_fast_scrollable_region() const { 269 const Region& non_fast_scrollable_region() const {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 scoped_refptr<LayerAnimationController> layer_animation_controller_; 538 scoped_refptr<LayerAnimationController> layer_animation_controller_;
533 539
534 // Layer properties. 540 // Layer properties.
535 gfx::Size bounds_; 541 gfx::Size bounds_;
536 542
537 gfx::Vector2d scroll_offset_; 543 gfx::Vector2d scroll_offset_;
538 gfx::Vector2d max_scroll_offset_; 544 gfx::Vector2d max_scroll_offset_;
539 bool scrollable_; 545 bool scrollable_;
540 bool should_scroll_on_main_thread_; 546 bool should_scroll_on_main_thread_;
541 bool have_wheel_event_handlers_; 547 bool have_wheel_event_handlers_;
548 bool user_scrollable_horizontal_;
549 bool user_scrollable_vertical_;
542 Region non_fast_scrollable_region_; 550 Region non_fast_scrollable_region_;
543 Region touch_event_handler_region_; 551 Region touch_event_handler_region_;
544 gfx::PointF position_; 552 gfx::PointF position_;
545 gfx::PointF anchor_point_; 553 gfx::PointF anchor_point_;
546 SkColor background_color_; 554 SkColor background_color_;
547 CompositingReasons compositing_reasons_; 555 CompositingReasons compositing_reasons_;
548 float opacity_; 556 float opacity_;
549 FilterOperations filters_; 557 FilterOperations filters_;
550 FilterOperations background_filters_; 558 FilterOperations background_filters_;
551 float anchor_point_z_; 559 float anchor_point_z_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 DrawProperties<Layer> draw_properties_; 592 DrawProperties<Layer> draw_properties_;
585 593
586 PaintProperties paint_properties_; 594 PaintProperties paint_properties_;
587 595
588 DISALLOW_COPY_AND_ASSIGN(Layer); 596 DISALLOW_COPY_AND_ASSIGN(Layer);
589 }; 597 };
590 598
591 } // namespace cc 599 } // namespace cc
592 600
593 #endif // CC_LAYERS_LAYER_H_ 601 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698