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

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

Issue 2495123002: Make all scrollable layers visible to hit testing. (Closed)
Patch Set: rebase 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
« no previous file with comments | « cc/trees/layer_tree_impl.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/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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // This offset is used when |scrollable| is false and there isn't a transform 51 // This offset is used when |scrollable| is false and there isn't a transform
52 // node already present that covers this offset. 52 // node already present that covers this offset.
53 gfx::Vector2dF offset_to_transform_parent; 53 gfx::Vector2dF offset_to_transform_parent;
54 54
55 bool should_flatten; 55 bool should_flatten;
56 bool user_scrollable_horizontal; 56 bool user_scrollable_horizontal;
57 bool user_scrollable_vertical; 57 bool user_scrollable_vertical;
58 ElementId element_id; 58 ElementId element_id;
59 int transform_id; 59 int transform_id;
60 // Number of drawn layers pointing to this node or any of its descendants.
61 int num_drawn_descendants;
62 60
63 bool operator==(const ScrollNode& other) const; 61 bool operator==(const ScrollNode& other) const;
64 void AsValueInto(base::trace_event::TracedValue* value) const; 62 void AsValueInto(base::trace_event::TracedValue* value) const;
65 }; 63 };
66 64
67 } // namespace cc 65 } // namespace cc
68 66
69 #endif // CC_TREES_SCROLL_NODE_H_ 67 #endif // CC_TREES_SCROLL_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/scroll_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698