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

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

Issue 2617733004: binding: Changes the association among global-proxy/global/window-instance. (Closed)
Patch Set: Fixed Document.defaultView Created 3 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
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 HTMLCollection* applets(); 406 HTMLCollection* applets();
407 HTMLCollection* links(); 407 HTMLCollection* links();
408 HTMLCollection* forms(); 408 HTMLCollection* forms();
409 HTMLCollection* anchors(); 409 HTMLCollection* anchors();
410 HTMLCollection* scripts(); 410 HTMLCollection* scripts();
411 HTMLAllCollection* all(); 411 HTMLAllCollection* all();
412 412
413 HTMLCollection* windowNamedItems(const AtomicString& name); 413 HTMLCollection* windowNamedItems(const AtomicString& name);
414 DocumentNameCollection* documentNamedItems(const AtomicString& name); 414 DocumentNameCollection* documentNamedItems(const AtomicString& name);
415 415
416 // "defaultView" attribute defined in HTML spec.
417 LocalDOMWindow* defaultView() const;
418
416 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass; } 419 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass; }
417 bool isXHTMLDocument() const { 420 bool isXHTMLDocument() const {
418 return m_documentClasses & XHTMLDocumentClass; 421 return m_documentClasses & XHTMLDocumentClass;
419 } 422 }
420 bool isXMLDocument() const { return m_documentClasses & XMLDocumentClass; } 423 bool isXMLDocument() const { return m_documentClasses & XMLDocumentClass; }
421 bool isImageDocument() const { 424 bool isImageDocument() const {
422 return m_documentClasses & ImageDocumentClass; 425 return m_documentClasses & ImageDocumentClass;
423 } 426 }
424 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; } 427 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; }
425 bool isPluginDocument() const { 428 bool isPluginDocument() const {
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1722 1725
1723 } // namespace blink 1726 } // namespace blink
1724 1727
1725 #ifndef NDEBUG 1728 #ifndef NDEBUG
1726 // Outside the WebCore namespace for ease of invocation from gdb. 1729 // Outside the WebCore namespace for ease of invocation from gdb.
1727 CORE_EXPORT void showLiveDocumentInstances(); 1730 CORE_EXPORT void showLiveDocumentInstances();
1728 #endif 1731 #endif
1729 1732
1730 #endif // Document_h 1733 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698