OLD | NEW |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // Get the most probable language of the text content in the tab. This sends | 214 // Get the most probable language of the text content in the tab. This sends |
215 // a message to the render view to get the content of the page as text. The | 215 // a message to the render view to get the content of the page as text. The |
216 // caller gets the language via the NotificationService by registering to the | 216 // caller gets the language via the NotificationService by registering to the |
217 // NotificationType TAB_LANGUAGE_DETERMINED. | 217 // NotificationType TAB_LANGUAGE_DETERMINED. |
218 void GetPageLanguage(); | 218 void GetPageLanguage(); |
219 | 219 |
220 // Change the zoom level of a page. | 220 // Change the zoom level of a page. |
221 void Zoom(PageZoom::Function function); | 221 void Zoom(PageZoom::Function function); |
222 | 222 |
223 // Change the encoding of the page. | 223 // Change the encoding of the page. |
224 void SetPageEncoding(const std::wstring& encoding); | 224 void SetPageEncoding(const std::string& encoding); |
225 | 225 |
226 // Change the alternate error page URL. An empty GURL disables the use of | 226 // Change the alternate error page URL. An empty GURL disables the use of |
227 // alternate error pages. | 227 // alternate error pages. |
228 void SetAlternateErrorPageURL(const GURL& url); | 228 void SetAlternateErrorPageURL(const GURL& url); |
229 | 229 |
230 // Fill out a form within the page with the specified data. | 230 // Fill out a form within the page with the specified data. |
231 void FillForm(const FormData& form_data); | 231 void FillForm(const FormData& form_data); |
232 | 232 |
233 // Fill out a password form and trigger DOM autocomplete in the case | 233 // Fill out a password form and trigger DOM autocomplete in the case |
234 // of multiple matching logins. | 234 // of multiple matching logins. |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 bool user_gesture, | 451 bool user_gesture, |
452 const GURL& creator_url); | 452 const GURL& creator_url); |
453 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); | 453 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); |
454 void OnMsgRunModal(IPC::Message* reply_msg); | 454 void OnMsgRunModal(IPC::Message* reply_msg); |
455 void OnMsgRenderViewReady(); | 455 void OnMsgRenderViewReady(); |
456 void OnMsgRenderViewGone(); | 456 void OnMsgRenderViewGone(); |
457 void OnMsgNavigate(const IPC::Message& msg); | 457 void OnMsgNavigate(const IPC::Message& msg); |
458 void OnMsgUpdateState(int32 page_id, | 458 void OnMsgUpdateState(int32 page_id, |
459 const std::string& state); | 459 const std::string& state); |
460 void OnMsgUpdateTitle(int32 page_id, const std::wstring& title); | 460 void OnMsgUpdateTitle(int32 page_id, const std::wstring& title); |
461 void OnMsgUpdateEncoding(const std::wstring& encoding); | 461 void OnMsgUpdateEncoding(const std::string& encoding); |
462 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); | 462 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); |
463 void OnMsgThumbnail(const GURL& url, | 463 void OnMsgThumbnail(const GURL& url, |
464 const ThumbnailScore& score, | 464 const ThumbnailScore& score, |
465 const SkBitmap& bitmap); | 465 const SkBitmap& bitmap); |
466 void OnMsgClose(); | 466 void OnMsgClose(); |
467 void OnMsgRequestMove(const gfx::Rect& pos); | 467 void OnMsgRequestMove(const gfx::Rect& pos); |
468 void OnMsgDidRedirectProvisionalLoad(int32 page_id, | 468 void OnMsgDidRedirectProvisionalLoad(int32 page_id, |
469 const GURL& source_url, | 469 const GURL& source_url, |
470 const GURL& target_url); | 470 const GURL& target_url); |
471 void OnMsgDidStartLoading(); | 471 void OnMsgDidStartLoading(); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 // While in this mode, mouse click is converted into InspectElement | 652 // While in this mode, mouse click is converted into InspectElement |
653 // command. | 653 // command. |
654 bool in_inspect_element_mode_; | 654 bool in_inspect_element_mode_; |
655 | 655 |
656 NotificationRegistrar registrar_; | 656 NotificationRegistrar registrar_; |
657 | 657 |
658 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 658 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
659 }; | 659 }; |
660 | 660 |
661 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 661 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |