OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 #if BLINK_IMPLEMENTATION | 36 #if BLINK_IMPLEMENTATION |
37 namespace WTF { template <typename T> class PassRefPtr; } | 37 namespace WTF { template <typename T> class PassRefPtr; } |
38 #endif | 38 #endif |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class HTMLLabelElement; | 42 class HTMLLabelElement; |
43 | 43 |
44 // Provides readonly access to some properties of a DOM label element node. | 44 // Provides readonly access to some properties of a DOM label element node. |
45 class WebLabelElement : public WebElement { | 45 class WebLabelElement final : public WebElement { |
46 public: | 46 public: |
47 WebLabelElement() : WebElement() { } | 47 WebLabelElement() : WebElement() { } |
48 WebLabelElement(const WebLabelElement& element) : WebElement(element) { } | 48 WebLabelElement(const WebLabelElement& element) : WebElement(element) { } |
49 | 49 |
50 WebLabelElement& operator=(const WebLabelElement& element) | 50 WebLabelElement& operator=(const WebLabelElement& element) |
51 { | 51 { |
52 WebElement::assign(element); | 52 WebElement::assign(element); |
53 return *this; | 53 return *this; |
54 } | 54 } |
55 | 55 |
56 void assign(const WebLabelElement& element) { WebElement::assign(element); } | 56 void assign(const WebLabelElement& element) { WebElement::assign(element); } |
57 | 57 |
58 BLINK_EXPORT WebElement correspondingControl(); | 58 BLINK_EXPORT WebElement correspondingControl(); |
59 | 59 |
60 #if BLINK_IMPLEMENTATION | 60 #if BLINK_IMPLEMENTATION |
61 WebLabelElement(const PassRefPtrWillBeRawPtr<HTMLLabelElement>&); | 61 WebLabelElement(const PassRefPtrWillBeRawPtr<HTMLLabelElement>&); |
62 WebLabelElement& operator=(const PassRefPtrWillBeRawPtr<HTMLLabelElement>&); | 62 WebLabelElement& operator=(const PassRefPtrWillBeRawPtr<HTMLLabelElement>&); |
63 operator PassRefPtrWillBeRawPtr<HTMLLabelElement>() const; | 63 operator PassRefPtrWillBeRawPtr<HTMLLabelElement>() const; |
64 #endif | 64 #endif |
65 }; | 65 }; |
66 | 66 |
| 67 DECLARE_WEB_NODE_TYPE_CASTS(WebLabelElement); |
| 68 |
67 } // namespace blink | 69 } // namespace blink |
68 | 70 |
69 #endif | 71 #endif |
OLD | NEW |