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

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

Issue 270283007: Implement the logic to find the correct <link> for Manifest in Document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@link_manifest
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 class HTMLCollection; 110 class HTMLCollection;
111 class HTMLDialogElement; 111 class HTMLDialogElement;
112 class HTMLDocument; 112 class HTMLDocument;
113 class HTMLElement; 113 class HTMLElement;
114 class HTMLFrameOwnerElement; 114 class HTMLFrameOwnerElement;
115 class HTMLHeadElement; 115 class HTMLHeadElement;
116 class HTMLIFrameElement; 116 class HTMLIFrameElement;
117 class HTMLImport; 117 class HTMLImport;
118 class HTMLImportLoader; 118 class HTMLImportLoader;
119 class HTMLImportsController; 119 class HTMLImportsController;
120 class HTMLLinkElement;
120 class HTMLMapElement; 121 class HTMLMapElement;
121 class HTMLNameCollection; 122 class HTMLNameCollection;
122 class HTMLScriptElement; 123 class HTMLScriptElement;
123 class HitTestRequest; 124 class HitTestRequest;
124 class HitTestResult; 125 class HitTestResult;
125 class IntPoint; 126 class IntPoint;
126 class JSNode; 127 class JSNode;
127 class LayoutPoint; 128 class LayoutPoint;
128 class LayoutRect; 129 class LayoutRect;
129 class LiveNodeListBase; 130 class LiveNodeListBase;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 void setDoctype(PassRefPtr<DocumentType>); 308 void setDoctype(PassRefPtr<DocumentType>);
308 DocumentType* doctype() const { return m_docType.get(); } 309 DocumentType* doctype() const { return m_docType.get(); }
309 310
310 DOMImplementation& implementation(); 311 DOMImplementation& implementation();
311 312
312 Element* documentElement() const 313 Element* documentElement() const
313 { 314 {
314 return m_documentElement.get(); 315 return m_documentElement.get();
315 } 316 }
316 317
317 bool hasManifest() const; 318 // Returns whether the Document has an AppCache manifest.
319 bool hasAppCacheManifest() const;
318 320
319 Location* location() const; 321 Location* location() const;
320 322
321 PassRefPtr<Element> createElement(const AtomicString& name, ExceptionState&) ; 323 PassRefPtr<Element> createElement(const AtomicString& name, ExceptionState&) ;
322 PassRefPtr<DocumentFragment> createDocumentFragment(); 324 PassRefPtr<DocumentFragment> createDocumentFragment();
323 PassRefPtr<Text> createTextNode(const String& data); 325 PassRefPtr<Text> createTextNode(const String& data);
324 PassRefPtr<Comment> createComment(const String& data); 326 PassRefPtr<Comment> createComment(const String& data);
325 PassRefPtr<CDATASection> createCDATASection(const String& data, ExceptionSta te&); 327 PassRefPtr<CDATASection> createCDATASection(const String& data, ExceptionSta te&);
326 PassRefPtr<ProcessingInstruction> createProcessingInstruction(const String& target, const String& data, ExceptionState&); 328 PassRefPtr<ProcessingInstruction> createProcessingInstruction(const String& target, const String& data, ExceptionState&);
327 PassRefPtr<Attr> createAttribute(const AtomicString& name, ExceptionState&); 329 PassRefPtr<Attr> createAttribute(const AtomicString& name, ExceptionState&);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 // is invalid. It also sets ExceptionCode when name is invalid. 788 // is invalid. It also sets ExceptionCode when name is invalid.
787 static bool parseQualifiedName(const AtomicString& qualifiedName, AtomicStri ng& prefix, AtomicString& localName, ExceptionState&); 789 static bool parseQualifiedName(const AtomicString& qualifiedName, AtomicStri ng& prefix, AtomicString& localName, ExceptionState&);
788 790
789 // Checks to make sure prefix and namespace do not conflict (per DOM Core 3) 791 // Checks to make sure prefix and namespace do not conflict (per DOM Core 3)
790 static bool hasValidNamespaceForElements(const QualifiedName&); 792 static bool hasValidNamespaceForElements(const QualifiedName&);
791 static bool hasValidNamespaceForAttributes(const QualifiedName&); 793 static bool hasValidNamespaceForAttributes(const QualifiedName&);
792 794
793 HTMLElement* body() const; 795 HTMLElement* body() const;
794 void setBody(PassRefPtr<HTMLElement>, ExceptionState&); 796 void setBody(PassRefPtr<HTMLElement>, ExceptionState&);
795 797
796 HTMLHeadElement* head(); 798 HTMLHeadElement* head() const;
797 799
798 // Decide which element is to define the viewport's overflow policy. If |roo tStyle| is set, use 800 // Decide which element is to define the viewport's overflow policy. If |roo tStyle| is set, use
799 // that as the style for the root element, rather than obtaining it on our o wn. The reason for 801 // that as the style for the root element, rather than obtaining it on our o wn. The reason for
800 // this is that style may not have been associated with the elements yet - i n which case it may 802 // this is that style may not have been associated with the elements yet - i n which case it may
801 // have been calculated on the fly (without associating it with the actual e lement) somewhere. 803 // have been calculated on the fly (without associating it with the actual e lement) somewhere.
802 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const; 804 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const;
803 805
804 DocumentMarkerController& markers() const { return *m_markers; } 806 DocumentMarkerController& markers() const { return *m_markers; }
805 807
806 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument Element; } 808 bool directionSetOnDocumentElement() const { return m_directionSetOnDocument Element; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 849
848 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets }; 850 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe ets, IgnoreLayoutWithPendingSheets };
849 851
850 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout = = DidLayoutWithPendingSheets; } 852 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout = = DidLayoutWithPendingSheets; }
851 853
852 bool hasNodesWithPlaceholderStyle() const { return m_hasNodesWithPlaceholder Style; } 854 bool hasNodesWithPlaceholderStyle() const { return m_hasNodesWithPlaceholder Style; }
853 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr ue; } 855 void setHasNodesWithPlaceholderStyle() { m_hasNodesWithPlaceholderStyle = tr ue; }
854 856
855 Vector<IconURL> iconURLs(int iconTypesMask); 857 Vector<IconURL> iconURLs(int iconTypesMask);
856 858
859 // Returns the HTMLLinkElement currently in use for the Web Manifest.
860 // Returns null if there is no such element.
861 HTMLLinkElement* linkManifest() const;
862
857 void setUseSecureKeyboardEntryWhenActive(bool); 863 void setUseSecureKeyboardEntryWhenActive(bool);
858 bool useSecureKeyboardEntryWhenActive() const; 864 bool useSecureKeyboardEntryWhenActive() const;
859 865
860 void updateFocusAppearanceSoon(bool restorePreviousSelection); 866 void updateFocusAppearanceSoon(bool restorePreviousSelection);
861 void cancelFocusAppearanceUpdate(); 867 void cancelFocusAppearanceUpdate();
862 868
863 // Extension for manipulating canvas drawing contexts for use in CSS 869 // Extension for manipulating canvas drawing contexts for use in CSS
864 void getCSSCanvasContext(const String& type, const String& name, int width, int height, bool&, RefPtrWillBeRawPtr<CanvasRenderingContext2D>&, bool&, RefPtrW illBeRawPtr<WebGLRenderingContext>&); 870 void getCSSCanvasContext(const String& type, const String& name, int width, int height, bool&, RefPtrWillBeRawPtr<CanvasRenderingContext2D>&, bool&, RefPtrW illBeRawPtr<WebGLRenderingContext>&);
865 HTMLCanvasElement& getCSSCanvasElement(const String& name); 871 HTMLCanvasElement& getCSSCanvasElement(const String& name);
866 872
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 inline bool Node::isDocumentNode() const 1453 inline bool Node::isDocumentNode() const
1448 { 1454 {
1449 return this == document(); 1455 return this == document();
1450 } 1456 }
1451 1457
1452 Node* eventTargetNodeForDocument(Document*); 1458 Node* eventTargetNodeForDocument(Document*);
1453 1459
1454 } // namespace WebCore 1460 } // namespace WebCore
1455 1461
1456 #endif // Document_h 1462 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698