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

Side by Side Diff: webkit/glue/webview_impl.cc

Issue 211005: Fix a bug where the autocomplete popup does not hide after selection (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « no previous file | 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 // Copyright (c) 2007-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2007-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "CSSStyleSelector.h" 10 #include "CSSStyleSelector.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 WebCore::RenderStyle* style = GetTextFieldStyle(); 228 WebCore::RenderStyle* style = GetTextFieldStyle();
229 return style ? webview_->theme()->popupInternalPaddingRight(style) : 0; 229 return style ? webview_->theme()->popupInternalPaddingRight(style) : 0;
230 } 230 }
231 virtual int listSize() const { 231 virtual int listSize() const {
232 return suggestions_.size(); 232 return suggestions_.size();
233 } 233 }
234 virtual int selectedIndex() const { 234 virtual int selectedIndex() const {
235 return selected_index_; 235 return selected_index_;
236 } 236 }
237 virtual void popupDidHide() { 237 virtual void popupDidHide() {
238 hidePopup();
238 } 239 }
239 virtual void hidePopup() { 240 virtual void hidePopup() {
240 webview_->HideAutoCompletePopup(); 241 webview_->HideAutoCompletePopup();
241 } 242 }
242 virtual bool itemIsSeparator(unsigned listIndex) const { 243 virtual bool itemIsSeparator(unsigned listIndex) const {
243 return false; 244 return false;
244 } 245 }
245 virtual bool itemIsLabel(unsigned listIndex) const { 246 virtual bool itemIsLabel(unsigned listIndex) const {
246 return false; 247 return false;
247 } 248 }
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 hitTestResultAtPoint(doc_point, false); 1928 hitTestResultAtPoint(doc_point, false);
1928 } 1929 }
1929 1930
1930 void WebViewImpl::SetSpellingPanelVisibility(bool is_visible) { 1931 void WebViewImpl::SetSpellingPanelVisibility(bool is_visible) {
1931 spelling_panel_is_visible_ = is_visible; 1932 spelling_panel_is_visible_ = is_visible;
1932 } 1933 }
1933 1934
1934 bool WebViewImpl::GetSpellingPanelVisibility() { 1935 bool WebViewImpl::GetSpellingPanelVisibility() {
1935 return spelling_panel_is_visible_; 1936 return spelling_panel_is_visible_;
1936 } 1937 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698