[SCM] WebKit Debian packaging branch, debian/experimental, updated. debian/1.3.8-1-1049-g2e11a8e
jam at chromium.org
jam at chromium.org
Fri Jan 21 15:01:22 UTC 2011
The following commit has been merged in the debian/experimental branch:
commit 58914a599f13c12973fdac491eb170a9183d8b07
Author: jam at chromium.org <jam at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Jan 6 07:43:20 2011 +0000
2010-12-29 John Abd-El-Malek <jam at chromium.org>
Reviewed by Darin Fisher.
[chromium] Add a WebAutoFillClient interface that moves some functions from WebViewClient
https://bugs.webkit.org/show_bug.cgi?id=51710
* WebKit.gyp:
* public/WebAutoFillClient.h: Added.
(WebKit::WebAutoFillClient::didAcceptAutoFillSuggestion):
(WebKit::WebAutoFillClient::didSelectAutoFillSuggestion):
(WebKit::WebAutoFillClient::didClearAutoFillSelection):
(WebKit::WebAutoFillClient::removeAutocompleteSugestion):
(WebKit::WebAutoFillClient::didAcceptAutocompleteSuggestion):
(WebKit::WebAutoFillClient::textFieldDidBeginEditing):
(WebKit::WebAutoFillClient::textFieldDidEndEditing):
(WebKit::WebAutoFillClient::textFieldDidChange):
(WebKit::WebAutoFillClient::textFieldDidReceiveKeyDown):
(WebKit::WebAutoFillClient::~WebAutoFillClient):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog
index 362b51e..69a3070 100644
--- a/WebKit/chromium/ChangeLog
+++ b/WebKit/chromium/ChangeLog
@@ -1,3 +1,23 @@
+2010-12-29 John Abd-El-Malek <jam at chromium.org>
+
+ Reviewed by Darin Fisher.
+
+ [chromium] Add a WebAutoFillClient interface that moves some functions from WebViewClient
+ https://bugs.webkit.org/show_bug.cgi?id=51710
+
+ * WebKit.gyp:
+ * public/WebAutoFillClient.h: Added.
+ (WebKit::WebAutoFillClient::didAcceptAutoFillSuggestion):
+ (WebKit::WebAutoFillClient::didSelectAutoFillSuggestion):
+ (WebKit::WebAutoFillClient::didClearAutoFillSelection):
+ (WebKit::WebAutoFillClient::removeAutocompleteSugestion):
+ (WebKit::WebAutoFillClient::didAcceptAutocompleteSuggestion):
+ (WebKit::WebAutoFillClient::textFieldDidBeginEditing):
+ (WebKit::WebAutoFillClient::textFieldDidEndEditing):
+ (WebKit::WebAutoFillClient::textFieldDidChange):
+ (WebKit::WebAutoFillClient::textFieldDidReceiveKeyDown):
+ (WebKit::WebAutoFillClient::~WebAutoFillClient):
+
2011-01-05 Chris Rogers <crogers at google.com>
Reviewed by Darin Fisher.
diff --git a/WebKit/chromium/WebKit.gyp b/WebKit/chromium/WebKit.gyp
index 17ab254..39d46f6 100644
--- a/WebKit/chromium/WebKit.gyp
+++ b/WebKit/chromium/WebKit.gyp
@@ -112,6 +112,7 @@
'public/WebAttribute.h',
'public/WebAudioBus.h',
'public/WebAudioDevice.h',
+ 'public/WebAutoFillClient.h',
'public/WebBindings.h',
'public/WebBlobData.h',
'public/WebBlobRegistry.h',
diff --git a/WebKit/chromium/public/WebAutoFillClient.h b/WebKit/chromium/public/WebAutoFillClient.h
new file mode 100644
index 0000000..4e73be0
--- /dev/null
+++ b/WebKit/chromium/public/WebAutoFillClient.h
@@ -0,0 +1,90 @@
+/*
+ * Copyright (C) 2010 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebAutoFillClient_h
+#define WebAutoFillClient_h
+
+namespace WebKit {
+
+class WebInputElement;
+class WebKeyboardEvent;
+class WebNode;
+class WebString;
+
+class WebAutoFillClient {
+public:
+ // Informs the browser that the user has accepted an AutoFill suggestion for
+ // a WebNode. |uniqueID| is used as a key into the set of AutoFill profiles,
+ // and should never be negative. If it is 0, then the suggestion is an
+ // Autocomplete suggestion; and |value| stores the suggested text. |index|
+ // is an index of the selected suggestion in the list of suggestions provided
+ // by the client.
+ virtual void didAcceptAutoFillSuggestion(const WebNode&,
+ const WebString& value,
+ const WebString& label,
+ int uniqueID,
+ unsigned index) { }
+
+ // Informs the browser that the user has selected an AutoFill suggestion for
+ // a WebNode. This happens when the user hovers over a suggestion or uses
+ // the arrow keys to navigate to a suggestion.
+ virtual void didSelectAutoFillSuggestion(const WebNode&,
+ const WebString& name,
+ const WebString& label,
+ int uniqueID) { }
+
+ // Informs the browser that the user has cleared the selection from the
+ // AutoFill suggestions popup. This happens when a user uses the arrow
+ // keys to navigate outside the range of possible selections.
+ virtual void didClearAutoFillSelection(const WebNode&) { }
+
+ // Instructs the browser to remove the Autocomplete entry specified from
+ // its DB.
+ virtual void removeAutocompleteSuggestion(const WebString& name,
+ const WebString& value) { }
+
+ // Informs the browser that the user has selected an autocomplete (password
+ // or field) suggestion from the drop-down. The input element text has
+ // already been set to the selected suggestion.
+ virtual void didAcceptAutocompleteSuggestion(const WebInputElement&) { }
+
+ // These methods are called when the users edits a text-field.
+ virtual void textFieldDidBeginEditing(const WebInputElement&) { }
+ virtual void textFieldDidEndEditing(const WebInputElement&) { }
+ virtual void textFieldDidChange(const WebInputElement&) { }
+ virtual void textFieldDidReceiveKeyDown(const WebInputElement&, const WebKeyboardEvent&) { }
+
+protected:
+ ~WebAutoFillClient() { }
+};
+
+} // namespace WebKit
+
+#endif
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list