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

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

Issue 27183013: Use [ImplementedAs=domWindow] for Document.defaultView() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Document.idl » ('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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 void nodeWillBeRemoved(Node*); 684 void nodeWillBeRemoved(Node*);
685 bool canReplaceChild(Node* newChild, Node* oldChild); 685 bool canReplaceChild(Node* newChild, Node* oldChild);
686 686
687 void didInsertText(Node*, unsigned offset, unsigned length); 687 void didInsertText(Node*, unsigned offset, unsigned length);
688 void didRemoveText(Node*, unsigned offset, unsigned length); 688 void didRemoveText(Node*, unsigned offset, unsigned length);
689 void didMergeTextNodes(Text* oldNode, unsigned offset); 689 void didMergeTextNodes(Text* oldNode, unsigned offset);
690 void didSplitTextNode(Text* oldNode); 690 void didSplitTextNode(Text* oldNode);
691 691
692 void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; } 692 void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; }
693 DOMWindow* domWindow() const { return m_domWindow; } 693 DOMWindow* domWindow() const { return m_domWindow; }
694 // In DOM Level 2, the Document's DOMWindow is called the defaultView.
695 DOMWindow* defaultView() const { return domWindow(); }
696 694
697 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists. 695 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists.
698 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); 696 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0);
699 EventListener* getWindowAttributeEventListener(const AtomicString& eventType , DOMWrapperWorld* isolatedWorld); 697 EventListener* getWindowAttributeEventListener(const AtomicString& eventType , DOMWrapperWorld* isolatedWorld);
700 void dispatchWindowEvent(PassRefPtr<Event>, PassRefPtr<EventTarget> = 0); 698 void dispatchWindowEvent(PassRefPtr<Event>, PassRefPtr<EventTarget> = 0);
701 699
702 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&); 700 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&);
703 701
704 // keep track of what types of event listeners are registered, so we don't 702 // keep track of what types of event listeners are registered, so we don't
705 // dispatch events unnecessarily 703 // dispatch events unnecessarily
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 inline bool Node::isDocumentNode() const 1408 inline bool Node::isDocumentNode() const
1411 { 1409 {
1412 return this == documentInternal(); 1410 return this == documentInternal();
1413 } 1411 }
1414 1412
1415 Node* eventTargetNodeForDocument(Document*); 1413 Node* eventTargetNodeForDocument(Document*);
1416 1414
1417 } // namespace WebCore 1415 } // namespace WebCore
1418 1416
1419 #endif // Document_h 1417 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698