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

Unified Diff: webkit/glue/webview_delegate.h

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/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/glue/webview.h ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_delegate.h
===================================================================
--- webkit/glue/webview_delegate.h (revision 25643)
+++ webkit/glue/webview_delegate.h (working copy)
@@ -737,17 +737,28 @@
// indices (inclusive) will be filled with the offsets of the boundary of the
// word within the given buffer. The out pointers must be specified. If the
// word is correctly spelled (returns true), they will be set to (0,0).
- virtual void SpellCheck(const std::wstring& word, int* misspell_location,
+ virtual void SpellCheck(const std::wstring& word, int tag,
+ int* misspell_location,
int* misspell_length) {
*misspell_location = *misspell_length = 0;
}
// Computes an auto correct word for a misspelled word. If no word is found,
// empty string is computed.
- virtual std::wstring GetAutoCorrectWord(const std::wstring& misspelled_word) {
+ virtual std::wstring GetAutoCorrectWord(const std::wstring& misspelled_word,
+ int tag) {
return std::wstring();
}
+ // Returns the document tag for the current WebView.
+ virtual int SpellCheckerDocumentTag() { return 0; }
+
+ // Switches the spelling panel to be displayed or not based on |show|.
+ virtual void ShowSpellingUI(bool show) { }
+
+ // Update the spelling panel with the |word|.
+ virtual void UpdateSpellingUIWithMisspelledWord(const std::wstring& word) { }
+
// Asks the user to print the page or a specific frame. Called in response to
// a window.print() call.
virtual void ScriptedPrint(WebKit::WebFrame* frame) { }
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698