diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 16:41:27 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-10 16:41:27 +0000 |
commit | 5c4266928220b850dc96474953f0b3a29739e0d3 (patch) | |
tree | 0981198815b7d83ab1ccdb0fc358db8637618c05 /chrome/common/render_messages_internal.h | |
parent | 479d5bc48969f6de924471de27638409db848229 (diff) | |
download | chromium_src-5c4266928220b850dc96474953f0b3a29739e0d3.zip chromium_src-5c4266928220b850dc96474953f0b3a29739e0d3.tar.gz chromium_src-5c4266928220b850dc96474953f0b3a29739e0d3.tar.bz2 |
Add getLanguage function to tab extension.
BUG=none
TEST=enable extensions using the toolstip.html code (added with this CL) and load pages in different languages. The corresponding language should appear in the bottom left after the page is loadedm or when the button is clicked, or when you navigate back to that tab after visiting some other tab.
Review URL: http://codereview.chromium.org/150062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r-- | chrome/common/render_messages_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 5205bf6..ee3d154 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -191,6 +191,14 @@ IPC_BEGIN_MESSAGES(View) string16 /* search_text */, WebKit::WebFindOptions) + // Send from the browser to the rendered to get the text content of the page. + IPC_MESSAGE_ROUTED0(ViewMsg_DeterminePageText) + + // Send from the renderer to the browser to return the text content of the + // page. + IPC_MESSAGE_ROUTED1(ViewMsg_DeterminePageText_Reply, + std::wstring /* the language */) + // Sent when the headers are available for a resource request. IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, int /* request_id */, |