| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |