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

Unified Diff: cc/layers/layer_impl.h

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove blank line Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index ec5a60980f21d48bc79f22d3cc623e31f166c06c..fe3c1c7048fd91df072f6cd9878739bed61bc5f5 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -503,11 +503,6 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
return !!main_thread_scrolling_reasons_;
}
- void SetHaveWheelEventHandlers(bool have_wheel_event_handlers) {
- have_wheel_event_handlers_ = have_wheel_event_handlers;
- }
- bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; }
-
void SetHaveScrollEventHandlers(bool have_scroll_event_handlers) {
have_scroll_event_handlers_ = have_scroll_event_handlers;
}
@@ -663,14 +658,14 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool layer_or_descendant_is_drawn() { return layer_or_descendant_is_drawn_; }
- void set_layer_or_descendant_has_input_handler(
- bool layer_or_descendant_has_input_handler) {
- layer_or_descendant_has_input_handler_ =
- layer_or_descendant_has_input_handler;
+ void set_layer_or_descendant_has_touch_handler(
+ bool layer_or_descendant_has_touch_handler) {
+ layer_or_descendant_has_touch_handler_ =
+ layer_or_descendant_has_touch_handler;
}
- bool layer_or_descendant_has_input_handler() {
- return layer_or_descendant_has_input_handler_;
+ bool layer_or_descendant_has_touch_handler() {
+ return layer_or_descendant_has_touch_handler_;
}
void set_sorted_for_recursion(bool sorted_for_recursion) {
@@ -766,7 +761,6 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
gfx::Vector2dF offset_to_transform_parent_;
uint32_t main_thread_scrolling_reasons_;
- bool have_wheel_event_handlers_ : 1;
bool have_scroll_event_handlers_ : 1;
bool user_scrollable_horizontal_ : 1;
@@ -881,8 +875,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool frame_timing_requests_dirty_;
bool visited_;
bool layer_or_descendant_is_drawn_;
- // If true, the layer or one of its descendants has a wheel or touch handler.
- bool layer_or_descendant_has_input_handler_;
+ // If true, the layer or one of its descendants has a touch handler.
+ bool layer_or_descendant_has_touch_handler_;
bool sorted_for_recursion_;
DISALLOW_COPY_AND_ASSIGN(LayerImpl);
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698