summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 02:23:25 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 02:23:25 +0000
commitca9608b447a4b42d74d1d8343cb98c0f7ff123f4 (patch)
tree9a935384cfcbdefd757ca47f0c2c65d6a2328374 /webkit/glue/webview_impl.cc
parent1df3e154f06c18631f7819d8924da972d643835a (diff)
downloadchromium_src-ca9608b447a4b42d74d1d8343cb98c0f7ff123f4.zip
chromium_src-ca9608b447a4b42d74d1d8343cb98c0f7ff123f4.tar.gz
chromium_src-ca9608b447a4b42d74d1d8343cb98c0f7ff123f4.tar.bz2
WebKit merge 40474:40500 [chromium-side].
Review URL: http://codereview.chromium.org/21029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 1dda5c1..b2a6a6d 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -252,6 +252,13 @@ class AutocompletePopupMenuClient
WebViewImpl* webview_;
};
+static const WebCore::PopupContainerSettings kAutocompletePopupSettings = {
+ false, // focusOnShow
+ false, // setTextOnIndexChange
+ false, // acceptOnAbandon
+ true, // loopSelectionNavigation
+};
+
// WebView ----------------------------------------------------------------
/*static*/
@@ -1504,10 +1511,7 @@ void WebViewImpl::AutofillSuggestionsForNode(
// have focus so the user can keep typing when the popup is showing.
autocomplete_popup_ =
WebCore::PopupContainer::create(autocomplete_popup_client_.get(),
- false);
- autocomplete_popup_->setTextOnIndexChange(false);
- autocomplete_popup_->setAcceptOnAbandon(false);
- autocomplete_popup_->setLoopSelectionNavigation(true);
+ kAutocompletePopupSettings);
autocomplete_popup_->show(focused_node->getRect(),
page_->mainFrame()->view(), 0);
} else {