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

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

Issue 2495123002: Make all scrollable layers visible to hit testing. (Closed)
Patch Set: Created 4 years, 1 month 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/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/output/filter_operations.h" 9 #include "cc/output/filter_operations.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // This offset is used when |scrollable| is false and there isn't a transform 55 // This offset is used when |scrollable| is false and there isn't a transform
56 // node already present that covers this offset. 56 // node already present that covers this offset.
57 gfx::Vector2dF offset_to_transform_parent; 57 gfx::Vector2dF offset_to_transform_parent;
58 58
59 bool should_flatten; 59 bool should_flatten;
60 bool user_scrollable_horizontal; 60 bool user_scrollable_horizontal;
61 bool user_scrollable_vertical; 61 bool user_scrollable_vertical;
62 ElementId element_id; 62 ElementId element_id;
63 int transform_id; 63 int transform_id;
64 // Number of drawn layers pointing to this node or any of its descendants.
65 int num_drawn_descendants;
66 64
67 bool operator==(const ScrollNode& other) const; 65 bool operator==(const ScrollNode& other) const;
68 66
69 void ToProtobuf(proto::TreeNode* proto) const; 67 void ToProtobuf(proto::TreeNode* proto) const;
70 void FromProtobuf(const proto::TreeNode& proto); 68 void FromProtobuf(const proto::TreeNode& proto);
71 void AsValueInto(base::trace_event::TracedValue* value) const; 69 void AsValueInto(base::trace_event::TracedValue* value) const;
72 }; 70 };
73 71
74 } // namespace cc 72 } // namespace cc
75 73
76 #endif // CC_TREES_SCROLL_NODE_H_ 74 #endif // CC_TREES_SCROLL_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698