OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/view_message_enums.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 |
| 14 struct ViewMsg_Resize_Params; |
13 | 15 |
14 namespace blink { | 16 namespace blink { |
15 struct WebScreenInfo; | 17 struct WebScreenInfo; |
16 } | 18 } |
17 | 19 |
18 namespace content { | 20 namespace content { |
19 | 21 |
20 struct RendererPreferences; | 22 struct RendererPreferences; |
21 struct WebPreferences; | 23 struct WebPreferences; |
22 | 24 |
23 // Container for all parameters passed to RenderViewImpl's constructor. | 25 // Container for all parameters passed to RenderViewImpl's constructor. |
24 struct CONTENT_EXPORT RenderViewImplParams { | 26 struct CONTENT_EXPORT RenderViewImplParams { |
25 RenderViewImplParams(int32 opener_id, | 27 RenderViewImplParams(int32 opener_id, |
26 bool window_was_created_with_opener, | 28 bool window_was_created_with_opener, |
27 const RendererPreferences& renderer_prefs, | 29 const RendererPreferences& renderer_prefs, |
28 const WebPreferences& webkit_prefs, | 30 const WebPreferences& webkit_prefs, |
29 int32 routing_id, | 31 int32 routing_id, |
30 int32 main_frame_routing_id, | 32 int32 main_frame_routing_id, |
31 int32 surface_id, | 33 int32 surface_id, |
32 int64 session_storage_namespace_id, | 34 int64 session_storage_namespace_id, |
33 const base::string16& frame_name, | 35 const base::string16& frame_name, |
34 bool is_renderer_created, | 36 bool is_renderer_created, |
35 bool swapped_out, | 37 bool swapped_out, |
36 int32 proxy_routing_id, | 38 int32 proxy_routing_id, |
37 bool hidden, | 39 bool hidden, |
38 bool never_visible, | 40 bool never_visible, |
39 int32 next_page_id, | 41 int32 next_page_id, |
40 const blink::WebScreenInfo& screen_info); | 42 const ViewMsg_Resize_Params& initial_size, |
| 43 bool enable_auto_resize, |
| 44 const gfx::Size& min_size, |
| 45 const gfx::Size& max_size); |
41 ~RenderViewImplParams(); | 46 ~RenderViewImplParams(); |
42 | 47 |
43 int32 opener_id; | 48 int32 opener_id; |
44 bool window_was_created_with_opener; | 49 bool window_was_created_with_opener; |
45 const RendererPreferences& renderer_prefs; | 50 const RendererPreferences& renderer_prefs; |
46 const WebPreferences& webkit_prefs; | 51 const WebPreferences& webkit_prefs; |
47 int32 routing_id; | 52 int32 routing_id; |
48 int32 main_frame_routing_id; | 53 int32 main_frame_routing_id; |
49 int32 surface_id; | 54 int32 surface_id; |
50 int64 session_storage_namespace_id; | 55 int64 session_storage_namespace_id; |
51 const base::string16& frame_name; | 56 const base::string16& frame_name; |
52 bool is_renderer_created; | 57 bool is_renderer_created; |
53 bool swapped_out; | 58 bool swapped_out; |
54 int32 proxy_routing_id; | 59 int32 proxy_routing_id; |
55 bool hidden; | 60 bool hidden; |
56 bool never_visible; | 61 bool never_visible; |
57 int32 next_page_id; | 62 int32 next_page_id; |
58 const blink::WebScreenInfo& screen_info; | 63 const ViewMsg_Resize_Params& initial_size; |
| 64 bool enable_auto_resize; |
| 65 gfx::Size min_size; |
| 66 gfx::Size max_size; |
59 }; | 67 }; |
60 | 68 |
61 } // namespace content | 69 } // namespace content |
62 | 70 |
63 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ | 71 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_PARAMS_H_ |
OLD | NEW |