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

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

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Use only gpuBenchmarking. Created 3 years, 6 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool user_scrollable_horizontal : 1; 55 bool user_scrollable_horizontal : 1;
55 bool user_scrollable_vertical : 1; 56 bool user_scrollable_vertical : 1;
56 57
57 // This offset is used when |scrollable| is false and there isn't a transform 58 // This offset is used when |scrollable| is false and there isn't a transform
58 // node already present that covers this offset. 59 // node already present that covers this offset.
59 gfx::Vector2dF offset_to_transform_parent; 60 gfx::Vector2dF offset_to_transform_parent;
60 61
61 ElementId element_id; 62 ElementId element_id;
62 int transform_id; 63 int transform_id;
63 64
65 ScrollBoundaryBehavior scroll_boundary_behavior;
66
64 bool operator==(const ScrollNode& other) const; 67 bool operator==(const ScrollNode& other) const;
65 void AsValueInto(base::trace_event::TracedValue* value) const; 68 void AsValueInto(base::trace_event::TracedValue* value) const;
66 }; 69 };
67 70
68 } // namespace cc 71 } // namespace cc
69 72
70 #endif // CC_TREES_SCROLL_NODE_H_ 73 #endif // CC_TREES_SCROLL_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698