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

Unified Diff: Source/core/events/ThreadLocalEventNames.h

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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 | « Source/core/events/TextEvent.cpp ('k') | Source/core/events/ThreadLocalEventNames.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/ThreadLocalEventNames.h
diff --git a/Source/core/events/ThreadLocalEventNames.h b/Source/core/events/ThreadLocalEventNames.h
index 940d3cd9ad3197c61aee20ebe8e0dccc024e0a8b..efde7b6d451e586cd321408e6f7ff292abd84a2c 100644
--- a/Source/core/events/ThreadLocalEventNames.h
+++ b/Source/core/events/ThreadLocalEventNames.h
@@ -23,40 +23,21 @@
#define ThreadLocalEventNames_h
#include "EventInterfaces.h"
+#include "EventNames.h"
#include "EventTargetInterfaces.h"
#include "EventTargetNames.h"
#include "EventTypeNames.h"
-#include "core/platform/ThreadGlobalData.h"
#include "wtf/text/AtomicString.h"
namespace WebCore {
- class ThreadLocalEventNames {
- WTF_MAKE_NONCOPYABLE(ThreadLocalEventNames); WTF_MAKE_FAST_ALLOCATED;
- int dummy; // Needed to make initialization macro work.
- // Private to prevent accidental call to ThreadLocalEventNames() instead of eventNames()
- ThreadLocalEventNames();
- friend class ThreadGlobalData;
-
- public:
- #define EVENT_INTERFACE_DECLARE(name) AtomicString interfaceFor##name;
- EVENT_INTERFACES_FOR_EACH(EVENT_INTERFACE_DECLARE)
- EVENT_TARGET_INTERFACES_FOR_EACH(EVENT_INTERFACE_DECLARE)
- #undef EVENT_INTERFACE_DECLARE
- };
-
- inline ThreadLocalEventNames& eventNames()
- {
- return threadGlobalData().eventNames();
- }
-
- inline bool isTouchEventType(const AtomicString& eventType)
- {
- return eventType == EventTypeNames::touchstart
- || eventType == EventTypeNames::touchmove
- || eventType == EventTypeNames::touchend
- || eventType == EventTypeNames::touchcancel;
- }
+inline bool isTouchEventType(const AtomicString& eventType)
+{
+ return eventType == EventTypeNames::touchstart
+ || eventType == EventTypeNames::touchmove
+ || eventType == EventTypeNames::touchend
+ || eventType == EventTypeNames::touchcancel;
+}
}
« no previous file with comments | « Source/core/events/TextEvent.cpp ('k') | Source/core/events/ThreadLocalEventNames.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698