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

Side by Side Diff: Source/core/html/HTMLMetaElement.h

Issue 1104103002: Add <meta viewport> support to the preloader (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved CachedDocumentParameters constructor to private Created 5 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 | « Source/core/css/MediaValuesCached.cpp ('k') | Source/core/html/HTMLMetaElement-in.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 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 24 matching lines...) Expand all
35 TruncatedViewportArgumentValueError, 35 TruncatedViewportArgumentValueError,
36 MaximumScaleTooLargeError, 36 MaximumScaleTooLargeError,
37 TargetDensityDpiUnsupported 37 TargetDensityDpiUnsupported
38 }; 38 };
39 39
40 class CORE_EXPORT HTMLMetaElement final : public HTMLElement { 40 class CORE_EXPORT HTMLMetaElement final : public HTMLElement {
41 DEFINE_WRAPPERTYPEINFO(); 41 DEFINE_WRAPPERTYPEINFO();
42 public: 42 public:
43 DECLARE_NODE_FACTORY(HTMLMetaElement); 43 DECLARE_NODE_FACTORY(HTMLMetaElement);
44 44
45 void getViewportDescriptionFromContentAttribute(const String& content, Viewp ortDescription::Type origin, ViewportDescription&, Document*, bool viewportMetaZ eroValuesQuirk); 45 static void getViewportDescriptionFromContentAttribute(const String& content , ViewportDescription&, Document*, bool viewportMetaZeroValuesQuirk);
46 46
47 const AtomicString& content() const; 47 const AtomicString& content() const;
48 const AtomicString& httpEquiv() const; 48 const AtomicString& httpEquiv() const;
49 const AtomicString& name() const; 49 const AtomicString& name() const;
50 50
51 private: 51 private:
52 explicit HTMLMetaElement(Document&); 52 explicit HTMLMetaElement(Document&);
53 53
54 static void processViewportKeyValuePair(Document*, const String& key, const String& value, bool viewportMetaZeroValuesQuirk, void* data); 54 static void processViewportKeyValuePair(Document*, const String& key, const String& value, bool viewportMetaZeroValuesQuirk, void* data);
55 static void parseContentAttribute(const String& content, void* data, Documen t*, bool viewportMetaZeroValuesQuirk); 55 static void parseContentAttribute(const String& content, void* data, Documen t*, bool viewportMetaZeroValuesQuirk);
(...skipping 11 matching lines...) Expand all
67 67
68 static void reportViewportWarning(Document*, ViewportErrorCode, const String & replacement1, const String& replacement2); 68 static void reportViewportWarning(Document*, ViewportErrorCode, const String & replacement1, const String& replacement2);
69 69
70 void process(); 70 void process();
71 void processViewportContentAttribute(const String& content, ViewportDescript ion::Type origin); 71 void processViewportContentAttribute(const String& content, ViewportDescript ion::Type origin);
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // HTMLMetaElement_h 76 #endif // HTMLMetaElement_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaValuesCached.cpp ('k') | Source/core/html/HTMLMetaElement-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698