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

Unified Diff: webkit/glue/editor_client_impl.cc

Issue 246079: More WebView / WebViewDelegate cleanup. (Closed) Base URL: svn://svn.chromium.org/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/public/WebViewClient.h ('k') | webkit/glue/empty_webframeclient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/editor_client_impl.cc
===================================================================
--- webkit/glue/editor_client_impl.cc (revision 27906)
+++ webkit/glue/editor_client_impl.cc (working copy)
@@ -893,11 +893,9 @@
}
bool EditorClientImpl::spellingUIIsShowing() {
- // SpellingPanel visibility is stored in the webview_ every time a toggle
- // message is sent from the browser. If we were to send a message to the
- // browser and ask for the visibility, then we run into problems accessing
- // cocoa methods on the UI thread.
- return webview_->GetSpellingPanelVisibility();
+ if (webview_->client())
+ return webview_->client()->isShowingSpellingUI();
+ return false;
}
void EditorClientImpl::getGuessesForWord(const WebCore::String&,
« no previous file with comments | « webkit/api/public/WebViewClient.h ('k') | webkit/glue/empty_webframeclient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698