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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 243583da5f29a76eb1d8ff57294685846680601f..9f1cdb6c1117da18ffff2f2618dfb3eebf3f3b2c 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -117,6 +117,7 @@ class HTMLIFrameElement;
class HTMLImport;
class HTMLImportLoader;
class HTMLImportsController;
+class HTMLLinkElement;
class HTMLMapElement;
class HTMLNameCollection;
class HTMLScriptElement;
@@ -314,7 +315,8 @@ public:
return m_documentElement.get();
}
- bool hasManifest() const;
+ // Returns whether the Document has an AppCache manifest.
+ bool hasAppCacheManifest() const;
Location* location() const;
@@ -793,7 +795,7 @@ public:
HTMLElement* body() const;
void setBody(PassRefPtr<HTMLElement>, ExceptionState&);
- HTMLHeadElement* head();
+ HTMLHeadElement* head() const;
// Decide which element is to define the viewport's overflow policy. If |rootStyle| is set, use
// that as the style for the root element, rather than obtaining it on our own. The reason for
@@ -854,6 +856,10 @@ public:
Vector<IconURL> iconURLs(int iconTypesMask);
+ // Returns the HTMLLinkElement currently in use for the Web Manifest.
+ // Returns null if there is no such element.
+ HTMLLinkElement* linkManifest() const;
+
void setUseSecureKeyboardEntryWhenActive(bool);
bool useSecureKeyboardEntryWhenActive() const;
« 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