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

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

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Add documentation Created 3 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/trees/property_tree_builder.cc ('k') | cc/trees/scroll_node.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SCROLL_NODE_H_ 5 #ifndef CC_TREES_SCROLL_NODE_H_
6 #define CC_TREES_SCROLL_NODE_H_ 6 #define CC_TREES_SCROLL_NODE_H_
7 7
8 #include "cc/base/filter_operations.h" 8 #include "cc/base/filter_operations.h"
9 #include "cc/base/region.h" 9 #include "cc/base/region.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
11 #include "cc/input/scroll_boundary_behavior.h"
11 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
12 13
13 namespace base { 14 namespace base {
14 namespace trace_event { 15 namespace trace_event {
15 class TracedValue; 16 class TracedValue;
16 } // namespace trace_event 17 } // namespace trace_event
17 } // namespace base 18 } // namespace base
18 19
19 namespace cc { 20 namespace cc {
20 21
(...skipping 28 matching lines...) Expand all
49 bool user_scrollable_horizontal : 1; 50 bool user_scrollable_horizontal : 1;
50 bool user_scrollable_vertical : 1; 51 bool user_scrollable_vertical : 1;
51 52
52 // This offset is used when |scrollable| is false and there isn't a transform 53 // This offset is used when |scrollable| is false and there isn't a transform
53 // node already present that covers this offset. 54 // node already present that covers this offset.
54 gfx::Vector2dF offset_to_transform_parent; 55 gfx::Vector2dF offset_to_transform_parent;
55 56
56 ElementId element_id; 57 ElementId element_id;
57 int transform_id; 58 int transform_id;
58 59
60 ScrollBoundaryBehavior scroll_boundary_behavior;
61
59 bool operator==(const ScrollNode& other) const; 62 bool operator==(const ScrollNode& other) const;
60 void AsValueInto(base::trace_event::TracedValue* value) const; 63 void AsValueInto(base::trace_event::TracedValue* value) const;
61 }; 64 };
62 65
63 } // namespace cc 66 } // namespace cc
64 67
65 #endif // CC_TREES_SCROLL_NODE_H_ 68 #endif // CC_TREES_SCROLL_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/scroll_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698