OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebMetaElement_h | 5 #ifndef WebMetaElement_h |
6 #define WebMetaElement_h | 6 #define WebMetaElement_h |
7 | 7 |
8 #include "WebElement.h" | 8 #include "WebElement.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class HTMLMetaElement; | 12 class HTMLMetaElement; |
13 | 13 |
14 class WebMetaElement final : public WebElement { | 14 class WebMetaElement final : public WebElement { |
15 public: | 15 public: |
16 WebMetaElement() : WebElement() { } | 16 WebMetaElement() : WebElement() { } |
17 WebMetaElement(const WebMetaElement& element) : WebElement(element) { } | 17 WebMetaElement(const WebMetaElement& element) : WebElement(element) { } |
18 | 18 |
19 WebMetaElement& operator=(const WebMetaElement& element) | 19 WebMetaElement& operator=(const WebMetaElement& element) |
20 { | 20 { |
21 WebElement::assign(element); | 21 WebElement::assign(element); |
22 return *this; | 22 return *this; |
23 } | 23 } |
24 void assign(const WebMetaElement& element) { WebElement::assign(element); } | 24 void assign(const WebMetaElement& element) { WebElement::assign(element); } |
25 | 25 |
26 BLINK_EXPORT WebString computeEncoding() const; | 26 BLINK_EXPORT WebString computeEncoding() const; |
27 | 27 |
28 #if BLINK_IMPLEMENTATION | 28 #if BLINK_IMPLEMENTATION |
29 WebMetaElement(const RawPtr<HTMLMetaElement>&); | 29 WebMetaElement(HTMLMetaElement*); |
30 WebMetaElement& operator=(const RawPtr<HTMLMetaElement>&); | 30 WebMetaElement& operator=(HTMLMetaElement*); |
31 operator RawPtr<HTMLMetaElement>() const; | 31 operator HTMLMetaElement*() const; |
32 #endif | 32 #endif |
33 }; | 33 }; |
34 | 34 |
35 DECLARE_WEB_NODE_TYPE_CASTS(WebMetaElement); | 35 DECLARE_WEB_NODE_TYPE_CASTS(WebMetaElement); |
36 | 36 |
37 } // namespace blink | 37 } // namespace blink |
38 | 38 |
39 #endif | 39 #endif |
OLD | NEW |