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

Unified Diff: chrome/common/render_messages_internal.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/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
===================================================================
--- chrome/common/render_messages_internal.h (revision 25643)
+++ chrome/common/render_messages_internal.h (working copy)
@@ -184,7 +184,12 @@
IPC_MESSAGE_ROUTED0(ViewMsg_ToggleSpellCheck)
IPC_MESSAGE_ROUTED0(ViewMsg_Delete)
IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll)
+ IPC_MESSAGE_ROUTED1(ViewMsg_ToggleSpellPanel, bool)
+ // This message tells the renderer to advance to the next misspelling. It is
+ // sent when the user clicks the "Find Next" button on the spelling panel.
+ IPC_MESSAGE_ROUTED0(ViewMsg_AdvanceToNextMisspelling)
+
// Copies the image at location x, y to the clipboard (if there indeed is an
// image at that location).
IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
@@ -933,13 +938,34 @@
std::string /* actual mime type for url */)
// Requests spellcheck for a word.
- IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_SpellCheck,
+ IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck,
std::wstring /* word to check */,
+ int /* document tag*/,
int /* misspell location */,
int /* misspell length */)
- IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetAutoCorrectWord,
+ // Asks the browser for a unique document tag.
+ IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag,
+ int /* the tag */)
+
+
+ // This message tells the spellchecker that a document, identified by an int
+ // tag, has been closed and all of the ignored words for that document can be
+ // forgotten.
+ IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentWithTagClosed,
+ int /* the tag */)
+
+ // Tells the browser to display or not display the SpellingPanel
+ IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel,
+ bool /* if true, then show it, otherwise hide it*/)
+
+ // Tells the browser to update the spelling panel with the given word.
+ IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord,
+ std::wstring /* the word to update the panel with */)
+
+ IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetAutoCorrectWord,
std::wstring /* word to check */,
+ int /* tag for the document containg the word */,
std::wstring /* autocorrected word */)
// Initiate a download based on user actions like 'ALT+click'.
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698