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

Unified Diff: Source/platform/EventDispatchForbiddenScope.h

Issue 446063007: Rename NoEventDispatchAssertion to EventDispatchForbiddenScope and move it to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/svg/graphics/SVGImage.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/EventDispatchForbiddenScope.h
diff --git a/Source/core/dom/NoEventDispatchAssertion.h b/Source/platform/EventDispatchForbiddenScope.h
similarity index 78%
rename from Source/core/dom/NoEventDispatchAssertion.h
rename to Source/platform/EventDispatchForbiddenScope.h
index 8bf32b2c761f400650b5c9ead55eb1d1bd1e5937..dce2e95dbeac6ae525792fcfd8e20a18ead67f56 100644
--- a/Source/core/dom/NoEventDispatchAssertion.h
+++ b/Source/platform/EventDispatchForbiddenScope.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NoEventDispatchAssertion_h
-#define NoEventDispatchAssertion_h
+#ifndef EventDispatchForbiddenScope_h
+#define EventDispatchForbiddenScope_h
#include "wtf/MainThread.h"
#include "wtf/TemporaryChange.h"
@@ -12,16 +12,16 @@ namespace blink {
#if ENABLE(ASSERT)
-class NoEventDispatchAssertion {
+class EventDispatchForbiddenScope {
public:
- NoEventDispatchAssertion()
+ EventDispatchForbiddenScope()
{
if (!isMainThread())
return;
++s_count;
}
- ~NoEventDispatchAssertion()
+ ~EventDispatchForbiddenScope()
{
if (!isMainThread())
return;
@@ -57,9 +57,9 @@ private:
#else
-class NoEventDispatchAssertion {
+class EventDispatchForbiddenScope {
public:
- NoEventDispatchAssertion() { }
+ EventDispatchForbiddenScope() { }
class AllowUserAgentEvents {
public:
@@ -71,4 +71,4 @@ public:
} // namespace blink
-#endif // NoEventDispatchAssertion_h
+#endif // EventDispatchForbiddenScope_h
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698