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

Side by Side Diff: Source/core/dom/Document.h

Issue 149803005: Remove isolated world parameters from event listener attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/V8EventListener.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class CharacterData; 73 class CharacterData;
74 class Chrome; 74 class Chrome;
75 class Comment; 75 class Comment;
76 class ContentSecurityPolicyResponseHeaders; 76 class ContentSecurityPolicyResponseHeaders;
77 class ContextFeatures; 77 class ContextFeatures;
78 class CustomElementRegistrationContext; 78 class CustomElementRegistrationContext;
79 class DOMImplementation; 79 class DOMImplementation;
80 class DOMNamedFlowCollection; 80 class DOMNamedFlowCollection;
81 class DOMSelection; 81 class DOMSelection;
82 class DOMWindow; 82 class DOMWindow;
83 class DOMWrapperWorld;
84 class Database; 83 class Database;
85 class DatabaseThread; 84 class DatabaseThread;
86 class DocumentFragment; 85 class DocumentFragment;
87 class DocumentLifecycleNotifier; 86 class DocumentLifecycleNotifier;
88 class DocumentLifecycleObserver; 87 class DocumentLifecycleObserver;
89 class DocumentLoader; 88 class DocumentLoader;
90 class DocumentMarkerController; 89 class DocumentMarkerController;
91 class DocumentParser; 90 class DocumentParser;
92 class DocumentTimeline; 91 class DocumentTimeline;
93 class DocumentType; 92 class DocumentType;
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 668
670 void didInsertText(Node*, unsigned offset, unsigned length); 669 void didInsertText(Node*, unsigned offset, unsigned length);
671 void didRemoveText(Node*, unsigned offset, unsigned length); 670 void didRemoveText(Node*, unsigned offset, unsigned length);
672 void didMergeTextNodes(Text* oldNode, unsigned offset); 671 void didMergeTextNodes(Text* oldNode, unsigned offset);
673 void didSplitTextNode(Text* oldNode); 672 void didSplitTextNode(Text* oldNode);
674 673
675 void clearDOMWindow() { m_domWindow = 0; } 674 void clearDOMWindow() { m_domWindow = 0; }
676 DOMWindow* domWindow() const { return m_domWindow; } 675 DOMWindow* domWindow() const { return m_domWindow; }
677 676
678 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists. 677 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists.
679 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); 678 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>);
680 EventListener* getWindowAttributeEventListener(const AtomicString& eventType , DOMWrapperWorld* isolatedWorld); 679 EventListener* getWindowAttributeEventListener(const AtomicString& eventType );
681 680
682 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&); 681 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&);
683 PassRefPtr<Event> createEvent(ExceptionState&); 682 PassRefPtr<Event> createEvent(ExceptionState&);
684 683
685 // keep track of what types of event listeners are registered, so we don't 684 // keep track of what types of event listeners are registered, so we don't
686 // dispatch events unnecessarily 685 // dispatch events unnecessarily
687 enum ListenerType { 686 enum ListenerType {
688 DOMSUBTREEMODIFIED_LISTENER = 1, 687 DOMSUBTREEMODIFIED_LISTENER = 1,
689 DOMNODEINSERTED_LISTENER = 1 << 1, 688 DOMNODEINSERTED_LISTENER = 1 << 1,
690 DOMNODEREMOVED_LISTENER = 1 << 2, 689 DOMNODEREMOVED_LISTENER = 1 << 2,
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 inline bool Node::isDocumentNode() const 1396 inline bool Node::isDocumentNode() const
1398 { 1397 {
1399 return this == document(); 1398 return this == document();
1400 } 1399 }
1401 1400
1402 Node* eventTargetNodeForDocument(Document*); 1401 Node* eventTargetNodeForDocument(Document*);
1403 1402
1404 } // namespace WebCore 1403 } // namespace WebCore
1405 1404
1406 #endif // Document_h 1405 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8EventListener.h ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698