summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 22:49:47 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 22:49:47 +0000
commit51bd36619bfaa05e98b3a6f58d48aaca6a66e307 (patch)
tree93b978a5ac16359aee752c8d41413e24410fc51d /webkit/glue/editor_client_impl.cc
parent655aa8d8075c12a8846bedfb080ab71f4231aaa0 (diff)
downloadchromium_src-51bd36619bfaa05e98b3a6f58d48aaca6a66e307.zip
chromium_src-51bd36619bfaa05e98b3a6f58d48aaca6a66e307.tar.gz
chromium_src-51bd36619bfaa05e98b3a6f58d48aaca6a66e307.tar.bz2
Rename AutoFillForm to FormFieldValues to better reflect the purpose of the data structure.
BUG=none TEST=none Review URL: http://codereview.chromium.org/306014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r--webkit/glue/editor_client_impl.cc21
1 files changed, 10 insertions, 11 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index fe80246..1790ef9 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -16,7 +16,6 @@
#include "KeyboardCodes.h"
#include "HTMLInputElement.h"
#include "HTMLNames.h"
-#include "Frame.h"
#include "KeyboardEvent.h"
#include "PlatformKeyboardEvent.h"
#include "PlatformString.h"
@@ -31,15 +30,15 @@
#include "webkit/api/public/WebViewClient.h"
// Can include api/src since eventually editor_client_impl will be there too.
#include "webkit/api/src/DOMUtilitiesPrivate.h"
-#include "webkit/glue/autofill_form.h"
#include "webkit/glue/editor_client_impl.h"
+#include "webkit/glue/form_field_values.h"
#include "webkit/glue/glue_util.h"
#include "webkit/glue/webview_impl.h"
using WebKit::WebEditingAction;
using WebKit::WebString;
using WebKit::WebTextAffinity;
-using webkit_glue::AutofillForm;
+using webkit_glue::FormFieldValues;
// Arbitrary depth limit for the undo stack, to keep it from using
// unbounded memory. This is the maximum number of distinct undoable
@@ -637,7 +636,8 @@ void EditorClientImpl::handleKeyboardEvent(WebCore::KeyboardEvent* evt) {
evt->setDefaultHandled();
}
-void EditorClientImpl::handleInputMethodKeydown(WebCore::KeyboardEvent* keyEvent) {
+void EditorClientImpl::handleInputMethodKeydown(
+ WebCore::KeyboardEvent* keyEvent) {
// We handle IME within chrome.
}
@@ -706,7 +706,7 @@ bool EditorClientImpl::Autofill(WebCore::HTMLInputElement* input_element,
return false;
}
- string16 name = AutofillForm::GetNameForInputElement(input_element);
+ string16 name = FormFieldValues::GetNameForInputElement(input_element);
if (name.empty()) // If the field has no name, then we won't have values.
return false;
@@ -766,7 +766,7 @@ void EditorClientImpl::DoAutofill(WebCore::Timer<EditorClientImpl>* timer) {
}
// Then trigger form autofill.
- string16 name = AutofillForm::GetNameForInputElement(input_element);
+ string16 name = FormFieldValues::GetNameForInputElement(input_element);
ASSERT(static_cast<int>(name.length()) > 0);
if (webview_->client()) {
@@ -865,9 +865,8 @@ WebCore::String EditorClientImpl::getAutoCorrectSuggestionForMisspelledWord(
}
void EditorClientImpl::checkGrammarOfString(const UChar*, int length,
- WTF::Vector<WebCore::GrammarDetail>&,
- int* badGrammarLocation,
- int* badGrammarLength) {
+ WTF::Vector<WebCore::GrammarDetail>&, int* badGrammarLocation,
+ int* badGrammarLength) {
NOTIMPLEMENTED();
if (badGrammarLocation)
*badGrammarLocation = 0;
@@ -876,7 +875,7 @@ void EditorClientImpl::checkGrammarOfString(const UChar*, int length,
}
void EditorClientImpl::updateSpellingUIWithGrammarString(const WebCore::String&,
- const WebCore::GrammarDetail& detail) {
+ const WebCore::GrammarDetail& detail) {
NOTIMPLEMENTED();
}
@@ -900,7 +899,7 @@ bool EditorClientImpl::spellingUIIsShowing() {
}
void EditorClientImpl::getGuessesForWord(const WebCore::String&,
- WTF::Vector<WebCore::String>& guesses) {
+ WTF::Vector<WebCore::String>& guesses) {
NOTIMPLEMENTED();
}