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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFormControlElement_h | 31 #ifndef WebFormControlElement_h |
32 #define WebFormControlElement_h | 32 #define WebFormControlElement_h |
33 | 33 |
34 #include "../../../Platform/chromium/public/WebString.h" | 34 #include "../../../Platform/chromium/public/WebString.h" |
35 #include "WebElement.h" | 35 #include "WebElement.h" |
36 #include "WebFormElement.h" | 36 #include "WebFormElement.h" |
37 | 37 |
38 #if WEBKIT_IMPLEMENTATION | 38 #if WEBKIT_IMPLEMENTATION |
39 namespace WebCore { class HTMLFormControlElement; } | 39 namespace WebCore { |
| 40 class HTMLFormControlElement; |
| 41 template<typename T> class Handle; |
| 42 } |
40 #endif | 43 #endif |
41 | 44 |
42 namespace WebKit { | 45 namespace WebKit { |
43 | 46 |
44 // Provides readonly access to some properties of a DOM form control element nod
e. | 47 // Provides readonly access to some properties of a DOM form control element nod
e. |
45 class WebFormControlElement : public WebElement { | 48 class WebFormControlElement : public WebElement { |
46 public: | 49 public: |
47 WebFormControlElement() : WebElement() { } | 50 WebFormControlElement() : WebElement() { } |
48 WebFormControlElement(const WebFormControlElement& e) : WebElement(e) { } | 51 WebFormControlElement(const WebFormControlElement& e) : WebElement(e) { } |
49 | 52 |
(...skipping 12 matching lines...) Expand all Loading... |
62 WEBKIT_EXPORT void dispatchFormControlChangeEvent(); | 65 WEBKIT_EXPORT void dispatchFormControlChangeEvent(); |
63 | 66 |
64 // Returns the name that should be used for the specified |element| when | 67 // Returns the name that should be used for the specified |element| when |
65 // storing autofill data. This is either the field name or its id, an empty | 68 // storing autofill data. This is either the field name or its id, an empty |
66 // string if it has no name and no id. | 69 // string if it has no name and no id. |
67 WEBKIT_EXPORT WebString nameForAutofill() const; | 70 WEBKIT_EXPORT WebString nameForAutofill() const; |
68 | 71 |
69 WEBKIT_EXPORT WebFormElement form() const; | 72 WEBKIT_EXPORT WebFormElement form() const; |
70 | 73 |
71 #if WEBKIT_IMPLEMENTATION | 74 #if WEBKIT_IMPLEMENTATION |
72 WebFormControlElement(const WTF::PassRefPtr<WebCore::HTMLFormControlElement>
&); | 75 WebFormControlElement(WebCore::Handle<WebCore::HTMLFormControlElement>); |
73 WebFormControlElement& operator=(const WTF::PassRefPtr<WebCore::HTMLFormCont
rolElement>&); | 76 WebFormControlElement& operator=(WebCore::Handle<WebCore::HTMLFormControlEle
ment>); |
74 operator WTF::PassRefPtr<WebCore::HTMLFormControlElement>() const; | 77 operator WebCore::Handle<WebCore::HTMLFormControlElement>() const; |
75 #endif | 78 #endif |
76 }; | 79 }; |
77 | 80 |
78 } // namespace WebKit | 81 } // namespace WebKit |
79 | 82 |
80 #endif | 83 #endif |
OLD | NEW |