OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDER_VIEW_HOST_H__ | 5 #ifndef CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 6 #define CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/scoped_handle.h" | 11 #include "base/scoped_handle.h" |
12 #include "chrome/browser/render_view_host_delegate.h" | 12 #include "chrome/browser/render_view_host_delegate.h" |
13 #include "chrome/browser/render_widget_host.h" | 13 #include "chrome/browser/render_widget_host.h" |
| 14 #include "chrome/common/page_zoom.h" |
14 #ifdef CHROME_PERSONALIZATION | 15 #ifdef CHROME_PERSONALIZATION |
15 #include "chrome/personalization/personalization.h" | 16 #include "chrome/personalization/personalization.h" |
16 #endif | 17 #endif |
17 #include "webkit/glue/password_form_dom_manager.h" | 18 #include "webkit/glue/password_form_dom_manager.h" |
18 | 19 |
19 enum ConsoleMessageLevel; | 20 enum ConsoleMessageLevel; |
20 class NavigationEntry; | 21 class NavigationEntry; |
21 class RenderViewHostDelegate; | 22 class RenderViewHostDelegate; |
22 class SiteInstance; | 23 class SiteInstance; |
23 class SkBitmap; | 24 class SkBitmap; |
24 struct ViewHostMsg_ContextMenu_Params; | 25 struct ViewHostMsg_ContextMenu_Params; |
25 struct ViewHostMsg_DidPrintPage_Params; | 26 struct ViewHostMsg_DidPrintPage_Params; |
26 class ViewMsg_Navigate; | 27 class ViewMsg_Navigate; |
27 struct ViewMsg_Navigate_Params; | 28 struct ViewMsg_Navigate_Params; |
28 struct ViewMsg_Print_Params; | 29 struct ViewMsg_Print_Params; |
29 struct ViewMsg_PrintPages_Params; | 30 struct ViewMsg_PrintPages_Params; |
30 struct WebDropData; | 31 struct WebDropData; |
31 struct WebPreferences; | 32 struct WebPreferences; |
32 enum WindowOpenDisposition; | 33 enum WindowOpenDisposition; |
33 | 34 |
34 namespace gfx { | 35 namespace gfx { |
35 class Point; | 36 class Point; |
36 } | 37 } |
37 | 38 |
38 namespace net { | 39 namespace net { |
39 enum LoadState; | 40 enum LoadState; |
40 } | 41 } |
41 | 42 |
42 namespace text_zoom { | |
43 enum TextSize; | |
44 } | |
45 | |
46 namespace webkit_glue { | 43 namespace webkit_glue { |
47 struct WebApplicationInfo; | 44 struct WebApplicationInfo; |
48 } | 45 } |
49 | 46 |
50 // | 47 // |
51 // RenderViewHost | 48 // RenderViewHost |
52 // | 49 // |
53 // A RenderViewHost is responsible for creating and talking to a RenderView | 50 // A RenderViewHost is responsible for creating and talking to a RenderView |
54 // object in a child process. It exposes a high level API to users, for things | 51 // object in a child process. It exposes a high level API to users, for things |
55 // like loading pages, adjusting the display and other browser functionality, | 52 // like loading pages, adjusting the display and other browser functionality, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 void StartFinding(int request_id, | 178 void StartFinding(int request_id, |
182 const std::wstring& search_string, | 179 const std::wstring& search_string, |
183 bool forward, | 180 bool forward, |
184 bool match_case, | 181 bool match_case, |
185 bool find_next); | 182 bool find_next); |
186 | 183 |
187 // Cancel a pending find operation. If |clear_selection| is true, it will also | 184 // Cancel a pending find operation. If |clear_selection| is true, it will also |
188 // clear the selection on the focused frame. | 185 // clear the selection on the focused frame. |
189 void StopFinding(bool clear_selection); | 186 void StopFinding(bool clear_selection); |
190 | 187 |
191 // Change the text size of the page. | 188 // Change the zoom level of a page. |
192 void AlterTextSize(text_zoom::TextSize size); | 189 void Zoom(PageZoom::Function function); |
193 | 190 |
194 // Change the encoding of the page. | 191 // Change the encoding of the page. |
195 void SetPageEncoding(const std::wstring& encoding_name); | 192 void SetPageEncoding(const std::wstring& encoding_name); |
196 | 193 |
197 // Change the alternate error page URL. An empty GURL disables the use of | 194 // Change the alternate error page URL. An empty GURL disables the use of |
198 // alternate error pages. | 195 // alternate error pages. |
199 void SetAlternateErrorPageURL(const GURL& url); | 196 void SetAlternateErrorPageURL(const GURL& url); |
200 | 197 |
201 // Fill out a form within the page with the specified data. | 198 // Fill out a form within the page with the specified data. |
202 void FillForm(const FormData& form_data); | 199 void FillForm(const FormData& form_data); |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 | 572 |
576 virtual RenderViewHost* CreateRenderViewHost( | 573 virtual RenderViewHost* CreateRenderViewHost( |
577 SiteInstance* instance, | 574 SiteInstance* instance, |
578 RenderViewHostDelegate* delegate, | 575 RenderViewHostDelegate* delegate, |
579 int routing_id, | 576 int routing_id, |
580 HANDLE modal_dialog_event) = 0; | 577 HANDLE modal_dialog_event) = 0; |
581 }; | 578 }; |
582 | 579 |
583 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ | 580 #endif // CHROME_BROWSER_RENDER_VIEW_HOST_H__ |
584 | 581 |
OLD | NEW |