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

Unified Diff: webkit/api/src/EditorClientImpl.cpp

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/src/EditorClientImpl.h ('k') | webkit/api/src/FrameLoaderClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/EditorClientImpl.cpp
===================================================================
--- webkit/api/src/EditorClientImpl.cpp (revision 30557)
+++ webkit/api/src/EditorClientImpl.cpp (working copy)
@@ -41,15 +41,16 @@
#include "PlatformString.h"
#include "RenderObject.h"
+#include "DOMUtilitiesPrivate.h"
+#include "PasswordAutocompleteListener.h"
#include "WebEditingAction.h"
+#include "WebFrameImpl.h"
#include "WebKit.h"
#include "WebNode.h"
#include "WebRange.h"
#include "WebTextAffinity.h"
#include "WebViewClient.h"
-#include "DOMUtilitiesPrivate.h"
-#include "PasswordAutocompleteListener.h"
-#include "webkit/glue/webview_impl.h"
+#include "WebViewImpl.h"
using namespace WebCore;
@@ -114,7 +115,7 @@
{
// Spellcheck should be enabled for all editable areas (such as textareas,
// contentEditable regions, and designMode docs), except text inputs.
- const Frame* frame = m_webView->GetFocusedWebCoreFrame();
+ const Frame* frame = m_webView->focusedWebCoreFrame();
if (!frame)
return false;
const Editor* editor = frame->editor();
@@ -265,7 +266,7 @@
void EditorClientImpl::respondToChangedSelection()
{
if (m_webView->client()) {
- Frame* frame = m_webView->GetFocusedWebCoreFrame();
+ Frame* frame = m_webView->focusedWebCoreFrame();
if (frame)
m_webView->client()->didChangeSelection(!frame->selection()->isRange());
}
@@ -653,7 +654,7 @@
m_autofillTimer.stop();
// Hide any showing popup.
- m_webView->HideAutoCompletePopup();
+ m_webView->hideAutoCompletePopup();
if (!m_webView->client())
return; // The page is getting closed, don't fill the password.
@@ -663,8 +664,8 @@
if (!inputElement)
return;
- WebFrameImpl* webframe = WebFrameImpl::FromFrame(inputElement->document()->frame());
- PasswordAutocompleteListener* listener = webframe->GetPasswordListener(inputElement);
+ WebFrameImpl* webframe = WebFrameImpl::fromFrame(inputElement->document()->frame());
+ PasswordAutocompleteListener* listener = webframe->getPasswordListener(inputElement);
if (!listener)
return;
@@ -744,15 +745,15 @@
&& inputElement->selectionEnd() == static_cast<int>(value.length());
if ((!args->autofillOnEmptyValue && value.isEmpty()) || !isCaretAtEnd) {
- m_webView->HideAutoCompletePopup();
+ m_webView->hideAutoCompletePopup();
return;
}
// First let's see if there is a password listener for that element.
// We won't trigger form autofill in that case, as having both behavior on
// a node would be confusing.
- WebFrameImpl* webframe = WebFrameImpl::FromFrame(inputElement->document()->frame());
- PasswordAutocompleteListener* listener = webframe->GetPasswordListener(inputElement);
+ WebFrameImpl* webframe = WebFrameImpl::fromFrame(inputElement->document()->frame());
+ PasswordAutocompleteListener* listener = webframe->getPasswordListener(inputElement);
if (listener) {
if (args->autofillFormOnly)
return;
@@ -780,8 +781,8 @@
void EditorClientImpl::onAutofillSuggestionAccepted(HTMLInputElement* textField)
{
- WebFrameImpl* webframe = WebFrameImpl::FromFrame(textField->document()->frame());
- PasswordAutocompleteListener* listener = webframe->GetPasswordListener(textField);
+ WebFrameImpl* webframe = WebFrameImpl::fromFrame(textField->document()->frame());
+ PasswordAutocompleteListener* listener = webframe->getPasswordListener(textField);
// Password listeners need to autocomplete other fields that depend on the
// input element with autofill suggestions.
if (listener)
« no previous file with comments | « webkit/api/src/EditorClientImpl.h ('k') | webkit/api/src/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698