| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Exposes the default value of the maxLength attribute. | 95 // Exposes the default value of the maxLength attribute. |
| 96 BLINK_EXPORT static int defaultMaxLength(); | 96 BLINK_EXPORT static int defaultMaxLength(); |
| 97 | 97 |
| 98 BLINK_EXPORT WebElement decorationElementFor(void*); | 98 BLINK_EXPORT WebElement decorationElementFor(void*); |
| 99 BLINK_EXPORT WebElement passwordGeneratorButtonElement() const; | 99 BLINK_EXPORT WebElement passwordGeneratorButtonElement() const; |
| 100 | 100 |
| 101 // If true, forces the text of the element to be visible. | 101 // If true, forces the text of the element to be visible. |
| 102 BLINK_EXPORT void setShouldRevealPassword(bool value); | 102 BLINK_EXPORT void setShouldRevealPassword(bool value); |
| 103 | 103 |
| 104 // Saves the value to be set as soon as the page registered a user gestu
re since the last load. |
| 105 BLINK_EXPORT void setValueAfterUserGesture(const WebString&); |
| 106 |
| 104 #if BLINK_IMPLEMENTATION | 107 #if BLINK_IMPLEMENTATION |
| 105 WebInputElement(const WTF::PassRefPtr<WebCore::HTMLInputElement>&); | 108 WebInputElement(const WTF::PassRefPtr<WebCore::HTMLInputElement>&); |
| 106 WebInputElement& operator=(const WTF::PassRefPtr<WebCore::HTMLInputEleme
nt>&); | 109 WebInputElement& operator=(const WTF::PassRefPtr<WebCore::HTMLInputEleme
nt>&); |
| 107 operator WTF::PassRefPtr<WebCore::HTMLInputElement>() const; | 110 operator WTF::PassRefPtr<WebCore::HTMLInputElement>() const; |
| 108 #endif | 111 #endif |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); | 114 BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); |
| 112 | 115 |
| 113 inline const WebInputElement* toWebInputElement(const WebElement* element) | 116 inline const WebInputElement* toWebInputElement(const WebElement* element) |
| 114 { | 117 { |
| 115 return toWebInputElement(const_cast<WebElement*>(element)); | 118 return toWebInputElement(const_cast<WebElement*>(element)); |
| 116 } | 119 } |
| 117 | 120 |
| 118 } // namespace blink | 121 } // namespace blink |
| 119 | 122 |
| 120 #endif | 123 #endif |
| OLD | NEW |