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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Rebase 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
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 9118e12b05c81c6510b9ef7e427abf4de21ad0cd..2e7fd5fb74d05f1ddd2c885d2910d2fe563f5a2a 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -25,6 +25,7 @@
#include "cc/debug/frame_timing_tracker.h"
#include "cc/debug/micro_benchmark.h"
#include "cc/debug/micro_benchmark_controller.h"
+#include "cc/input/event_listener_properties.h"
#include "cc/input/input_handler.h"
#include "cc/input/layer_selection_bound.h"
#include "cc/input/scrollbar.h"
@@ -229,8 +230,11 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
}
void SetHaveScrollEventHandlers(bool have_event_handlers);
- bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; }
- void SetHaveWheelEventHandlers(bool have_event_handlers);
+ void SetEventListenerProperties(EventListenerClass event_class,
+ uint32_t event_properties);
+ uint32_t event_listener_properties(EventListenerClass event_class) const {
+ return event_listener_properties_[static_cast<size_t>(event_class)];
+ }
const LayerTreeSettings& settings() const { return settings_; }
@@ -538,7 +542,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
bool has_transparent_background_;
bool have_scroll_event_handlers_;
- bool have_wheel_event_handlers_;
+ uint32_t event_listener_properties_[static_cast<size_t>(
+ EventListenerClass::kNumClasses)];
scoped_ptr<AnimationRegistrar> animation_registrar_;
scoped_ptr<AnimationHost> animation_host_;

Powered by Google App Engine
This is Rietveld 408576698