Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: public/web/WebInputElement.h

Issue 225853005: Add support for setting password value gated on user's gesture in a page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698