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

Unified Diff: chrome/renderer/render_view.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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 25643)
+++ chrome/renderer/render_view.h (working copy)
@@ -322,9 +322,13 @@
const WebKit::WebRect& selection);
virtual bool WasOpenedByUserGesture() const;
virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj);
- 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);
- virtual std::wstring GetAutoCorrectWord(const std::wstring& word);
+ virtual std::wstring GetAutoCorrectWord(const std::wstring& word, int tag);
+ virtual void UpdateSpellingUIWithMisspelledWord(const std::wstring& word);
+ virtual void ShowSpellingUI(bool show);
+ virtual int SpellCheckerDocumentTag();
virtual void ScriptedPrint(WebKit::WebFrame* frame);
virtual void UserMetricsRecordAction(const std::wstring& action);
virtual void DnsPrefetch(const std::vector<std::string>& host_names);
@@ -531,6 +535,8 @@
void OnCopy();
void OnPaste();
void OnReplace(const std::wstring& text);
+ void OnAdvanceToNextMisspelling();
+ void OnToggleSpellPanel(bool is_currently_visible);
void OnToggleSpellCheck();
void OnDelete();
void OnSelectAll();
@@ -897,6 +903,12 @@
// page id for the last navigation sent to the browser.
int32 last_top_level_navigation_page_id_;
+ // True if the current RenderView has been assigned a document tag.
+ bool has_spell_checker_document_tag_;
+
+ // Document tag for this RenderView.
+ int document_tag_;
+
// The settings this render view initialized WebKit with.
WebPreferences webkit_preferences_;
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698