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

Unified Diff: Source/core/dom/ScrollEventHandlerController.h

Issue 206603002: Add EventHandlerRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests. Created 6 years, 9 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: Source/core/dom/ScrollEventHandlerController.h
diff --git a/Source/core/dom/WheelController.h b/Source/core/dom/ScrollEventHandlerController.h
similarity index 73%
copy from Source/core/dom/WheelController.h
copy to Source/core/dom/ScrollEventHandlerController.h
index 49879f4f0045652d012bd63b9ea1bd7ad446039d..e3f8289e9ceb0b77a09e2eb82dada1b97107295d 100644
--- a/Source/core/dom/WheelController.h
+++ b/Source/core/dom/ScrollEventHandlerController.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google, Inc. All rights reserved.
+ * Copyright (C) 2014 Google, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,8 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
abarth-chromium 2014/03/20 23:42:06 Please use a new-style copyright block: http://de
-#ifndef WheelController_h
-#define WheelController_h
+#ifndef ScrollEventHandlerController_h
+#define ScrollEventHandlerController_h
#include "core/dom/DocumentSupplementable.h"
#include "core/events/Event.h"
@@ -35,29 +35,30 @@ namespace WebCore {
class DOMWindow;
-class WheelController FINAL : public DocumentSupplement, public DOMWindowLifecycleObserver {
+class ScrollEventHandlerController FINAL : public DocumentSupplement, public DOMWindowLifecycleObserver {
public:
- virtual ~WheelController();
+ virtual ~ScrollEventHandlerController();
static const char* supplementName();
- static WheelController* from(Document&);
+ static ScrollEventHandlerController* from(Document&);
- unsigned wheelEventHandlerCount() { return m_wheelEventHandlerCount; }
+ unsigned scrollEventHandlerCount() { return m_scrollEventHandlerCount; }
- void didAddWheelEventHandler(Document&);
- void didRemoveWheelEventHandler(Document&);
+ void didAddScrollEventHandler(Document&);
+ void didRemoveScrollEventHandler(Document&);
// Inherited from DOMWindowLifecycleObserver
virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRIDE;
private:
- explicit WheelController(Document&);
+ explicit ScrollEventHandlerController(Document&);
- unsigned m_wheelEventHandlerCount;
+ unsigned m_scrollEventHandlerCount;
};
} // namespace WebCore
-#endif // WheelController_h
+#endif // ScrollEventHandlerController_h
+

Powered by Google App Engine
This is Rietveld 408576698