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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void StartFinding(int request_id, 199 void StartFinding(int request_id,
200 const string16& search_string, 200 const string16& search_string,
201 bool forward, 201 bool forward,
202 bool match_case, 202 bool match_case,
203 bool find_next); 203 bool find_next);
204 204
205 // Cancel a pending find operation. If |clear_selection| is true, it will also 205 // Cancel a pending find operation. If |clear_selection| is true, it will also
206 // clear the selection on the focused frame. 206 // clear the selection on the focused frame.
207 void StopFinding(bool clear_selection); 207 void StopFinding(bool clear_selection);
208 208
209 // Get the most probable language of the text content in the tab. This sends
210 // a message to the render view to get the content of the page as text. The
211 // caller gets the language via the NotificationService by registering to the
212 // NotificationType TAB_LANGUAGE_DETERMINED.
213 void GetPageLanguage();
214
209 // Change the zoom level of a page. 215 // Change the zoom level of a page.
210 void Zoom(PageZoom::Function function); 216 void Zoom(PageZoom::Function function);
211 217
212 // Change the encoding of the page. 218 // Change the encoding of the page.
213 void SetPageEncoding(const std::wstring& encoding); 219 void SetPageEncoding(const std::wstring& encoding);
214 220
215 // Change the alternate error page URL. An empty GURL disables the use of 221 // Change the alternate error page URL. An empty GURL disables the use of
216 // alternate error pages. 222 // alternate error pages.
217 void SetAlternateErrorPageURL(const GURL& url); 223 void SetAlternateErrorPageURL(const GURL& url);
218 224
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 const GURL& url); 459 const GURL& url);
454 void OnMsgDidFailProvisionalLoadWithError(bool main_frame, 460 void OnMsgDidFailProvisionalLoadWithError(bool main_frame,
455 int error_code, 461 int error_code,
456 const GURL& url, 462 const GURL& url,
457 bool showing_repost_interstitial); 463 bool showing_repost_interstitial);
458 void OnMsgFindReply(int request_id, 464 void OnMsgFindReply(int request_id,
459 int number_of_matches, 465 int number_of_matches,
460 const gfx::Rect& selection_rect, 466 const gfx::Rect& selection_rect,
461 int active_match_ordinal, 467 int active_match_ordinal,
462 bool final_update); 468 bool final_update);
469 void OnDeterminePageTextReply(const std::wstring& tab_text);
463 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url); 470 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url);
464 void OnMsgDidDownloadFavIcon(int id, 471 void OnMsgDidDownloadFavIcon(int id,
465 const GURL& image_url, 472 const GURL& image_url,
466 bool errored, 473 bool errored,
467 const SkBitmap& image_data); 474 const SkBitmap& image_data);
468 void OnMsgContextMenu(const ContextMenuParams& params); 475 void OnMsgContextMenu(const ContextMenuParams& params);
469 void OnMsgOpenURL(const GURL& url, const GURL& referrer, 476 void OnMsgOpenURL(const GURL& url, const GURL& referrer,
470 WindowOpenDisposition disposition); 477 WindowOpenDisposition disposition);
471 void OnMsgDidContentsPreferredWidthChange(int pref_width); 478 void OnMsgDidContentsPreferredWidthChange(int pref_width);
472 void OnMsgDomOperationResponse(const std::string& json_string, 479 void OnMsgDomOperationResponse(const std::string& json_string,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 617
611 // True if the render view can be shut down suddenly. 618 // True if the render view can be shut down suddenly.
612 bool sudden_termination_allowed_; 619 bool sudden_termination_allowed_;
613 620
614 NotificationRegistrar registrar_; 621 NotificationRegistrar registrar_;
615 622
616 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 623 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
617 }; 624 };
618 625
619 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 626 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698