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

Unified Diff: chrome/browser/renderer_host/render_view_host.h

Issue 150062: [chromium-reviews] Add getLanguage function to tabs extension (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
Index: chrome/browser/renderer_host/render_view_host.h
===================================================================
--- chrome/browser/renderer_host/render_view_host.h (revision 20334)
+++ chrome/browser/renderer_host/render_view_host.h (working copy)
@@ -206,6 +206,12 @@
// clear the selection on the focused frame.
void StopFinding(bool clear_selection);
+ // Get the most probable language of the text content in the tab. This sends
+ // a message to the render view to get the content of the page as text. The
+ // caller gets the language via the NotificationService by registering to the
+ // NotificationType TAB_LANGUAGE_DETERMINED.
+ void GetPageLanguage();
+
// Change the zoom level of a page.
void Zoom(PageZoom::Function function);
@@ -460,6 +466,7 @@
const gfx::Rect& selection_rect,
int active_match_ordinal,
bool final_update);
+ void OnDeterminePageTextReply(const std::wstring& tab_text);
void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url);
void OnMsgDidDownloadFavIcon(int id,
const GURL& image_url,

Powered by Google App Engine
This is Rietveld 408576698