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

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

Issue 22564003: Refactoring: Get rid of isDocument() check in EventTarget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Applied the rename. Created 7 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/dom/EventTarget.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptExecutionContext.h
diff --git a/Source/core/dom/ScriptExecutionContext.h b/Source/core/dom/ScriptExecutionContext.h
index 6e6c3b30f17e08cd5b00283c6b386d75f397fa5b..ee4a31221af6fbe30cf3b1fc64d0a8b48cf84c46 100644
--- a/Source/core/dom/ScriptExecutionContext.h
+++ b/Source/core/dom/ScriptExecutionContext.h
@@ -44,6 +44,7 @@
namespace WebCore {
class ContextLifecycleNotifier;
+class DOMWindow;
class DatabaseContext;
class EventListener;
class EventQueue;
@@ -63,6 +64,9 @@ public:
virtual bool isJSExecutionForbidden() const = 0;
+ virtual DOMWindow* executingWindow() { return 0; }
+ virtual void userEventWasHandled() { }
+
const KURL& url() const { return virtualURL(); }
KURL completeURL(const String& url) const { return virtualCompleteURL(url); }
« no previous file with comments | « Source/core/dom/EventTarget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698