OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebInputElement_h | 31 #ifndef WebInputElement_h |
32 #define WebInputElement_h | 32 #define WebInputElement_h |
33 | 33 |
34 #include "WebFormControlElement.h" | 34 #include "WebFormControlElement.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class HTMLInputElement; | 38 class HTMLInputElement; |
39 class WebElementCollection; | |
40 class WebOptionElement; | 39 class WebOptionElement; |
41 | 40 |
42 // Provides readonly access to some properties of a DOM input element node. | 41 // Provides readonly access to some properties of a DOM input element node. |
43 class WebInputElement final : public WebFormControlElement { | 42 class WebInputElement final : public WebFormControlElement { |
44 public: | 43 public: |
45 WebInputElement() : WebFormControlElement() {} | 44 WebInputElement() : WebFormControlElement() {} |
46 WebInputElement(const WebInputElement& element) | 45 WebInputElement(const WebInputElement& element) |
47 : WebFormControlElement(element) {} | 46 : WebFormControlElement(element) {} |
48 | 47 |
49 WebInputElement& operator=(const WebInputElement& element) { | 48 WebInputElement& operator=(const WebInputElement& element) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // This returns 0 if the specified WebElement is not a WebInputElement. | 102 // This returns 0 if the specified WebElement is not a WebInputElement. |
104 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); | 103 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); |
105 // This returns 0 if the specified WebElement is not a WebInputElement. | 104 // This returns 0 if the specified WebElement is not a WebInputElement. |
106 inline const WebInputElement* toWebInputElement(const WebElement* element) { | 105 inline const WebInputElement* toWebInputElement(const WebElement* element) { |
107 return toWebInputElement(const_cast<WebElement*>(element)); | 106 return toWebInputElement(const_cast<WebElement*>(element)); |
108 } | 107 } |
109 | 108 |
110 } // namespace blink | 109 } // namespace blink |
111 | 110 |
112 #endif | 111 #endif |
OLD | NEW |