| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 enum ViewportErrorCode { | 31 enum ViewportErrorCode { |
| 32 UnrecognizedViewportArgumentKeyError, | 32 UnrecognizedViewportArgumentKeyError, |
| 33 UnrecognizedViewportArgumentValueError, | 33 UnrecognizedViewportArgumentValueError, |
| 34 TruncatedViewportArgumentValueError, | 34 TruncatedViewportArgumentValueError, |
| 35 MaximumScaleTooLargeError, | 35 MaximumScaleTooLargeError, |
| 36 TargetDensityDpiUnsupported | 36 TargetDensityDpiUnsupported |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 class HTMLMetaElement FINAL : public HTMLElement { | 39 class HTMLMetaElement final : public HTMLElement { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 public: | 41 public: |
| 42 DECLARE_NODE_FACTORY(HTMLMetaElement); | 42 DECLARE_NODE_FACTORY(HTMLMetaElement); |
| 43 | 43 |
| 44 const AtomicString& content() const; | 44 const AtomicString& content() const; |
| 45 const AtomicString& httpEquiv() const; | 45 const AtomicString& httpEquiv() const; |
| 46 const AtomicString& name() const; | 46 const AtomicString& name() const; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 explicit HTMLMetaElement(Document&); | 49 explicit HTMLMetaElement(Document&); |
| 50 | 50 |
| 51 typedef void (HTMLMetaElement::*KeyValuePairCallback)(const String& key, con
st String& value, void* data); | 51 typedef void (HTMLMetaElement::*KeyValuePairCallback)(const String& key, con
st String& value, void* data); |
| 52 void processViewportKeyValuePair(const String& key, const String& value, voi
d* data); | 52 void processViewportKeyValuePair(const String& key, const String& value, voi
d* data); |
| 53 void parseContentAttribute(const String& content, KeyValuePairCallback, void
* data); | 53 void parseContentAttribute(const String& content, KeyValuePairCallback, void
* data); |
| 54 | 54 |
| 55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 56 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 56 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 57 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; | 57 virtual void didNotifySubtreeInsertionsToDocument() override; |
| 58 | 58 |
| 59 float parsePositiveNumber(const String& key, const String& value, bool* ok =
0); | 59 float parsePositiveNumber(const String& key, const String& value, bool* ok =
0); |
| 60 | 60 |
| 61 Length parseViewportValueAsLength(const String& key, const String& value); | 61 Length parseViewportValueAsLength(const String& key, const String& value); |
| 62 float parseViewportValueAsZoom(const String& key, const String& value, bool&
computedValueMatchesParsedValue); | 62 float parseViewportValueAsZoom(const String& key, const String& value, bool&
computedValueMatchesParsedValue); |
| 63 bool parseViewportValueAsUserZoom(const String& key, const String& value, bo
ol& computedValueMatchesParsedValue); | 63 bool parseViewportValueAsUserZoom(const String& key, const String& value, bo
ol& computedValueMatchesParsedValue); |
| 64 float parseViewportValueAsDPI(const String& key, const String& value); | 64 float parseViewportValueAsDPI(const String& key, const String& value); |
| 65 | 65 |
| 66 void reportViewportWarning(ViewportErrorCode, const String& replacement1, co
nst String& replacement2); | 66 void reportViewportWarning(ViewportErrorCode, const String& replacement1, co
nst String& replacement2); |
| 67 | 67 |
| 68 void process(); | 68 void process(); |
| 69 void processViewportContentAttribute(const String& content, ViewportDescript
ion::Type origin); | 69 void processViewportContentAttribute(const String& content, ViewportDescript
ion::Type origin); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| 73 | 73 |
| 74 #endif // HTMLMetaElement_h | 74 #endif // HTMLMetaElement_h |
| OLD | NEW |