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

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

Issue 523149: Revert 35735 - Relanding the language detection code.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 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 35751)
+++ chrome/browser/renderer_host/render_view_host.h (working copy)
@@ -212,6 +212,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);
@@ -417,22 +423,22 @@
// Creates a new RenderWidget with the given route id.
void CreateNewWidget(int route_id, bool activatable);
- // Sends the response to an extension api call.
+ // Send the response to an extension api call.
void SendExtensionResponse(int request_id, bool success,
const std::string& response,
const std::string& error);
- // Sends a response to an extension api call that it was blocked for lack of
+ // Send a response to an extension api call that it was blocked for lack of
// permission.
void BlockExtensionRequest(int request_id);
- // Notifies the renderer that its view type has changed.
+ // Notify the renderer that its view type has changed.
void ViewTypeChanged(ViewType::Type type);
- // Tells the renderer which browser window it is being attached to.
+ // Tell renderer which browser window it is being attached to.
void UpdateBrowserWindowId(int window_id);
- // Tells the render view that a custom context action has been selected.
+ // Tell render view that custom context action has been selected.
void PerformCustomContextMenuAction(unsigned action);
protected:
@@ -489,6 +495,7 @@
const gfx::Rect& selection_rect,
int active_match_ordinal,
bool final_update);
+ void OnDeterminePageTextReply(const std::wstring& tab_text);
void OnExecuteCodeFinished(int request_id, bool success);
void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url);
void OnMsgDidDownloadFavIcon(int id,
@@ -586,9 +593,6 @@
void OnExtensionPostMessage(int port_id, const std::string& message);
void OnAccessibilityFocusChange(int acc_obj_id);
void OnCSSInserted();
- void OnPageContents(const GURL& url,
- int32 page_id,
- const std::wstring& contents);
private:
friend class TestRenderViewHost;
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698