OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/browser/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 params.parent_window = GetNativeViewId(); | 164 params.parent_window = GetNativeViewId(); |
165 params.compositing_surface = GetCompositingSurface(); | 165 params.compositing_surface = GetCompositingSurface(); |
166 params.renderer_preferences = | 166 params.renderer_preferences = |
167 delegate_->GetRendererPrefs(process()->profile()); | 167 delegate_->GetRendererPrefs(process()->profile()); |
168 params.web_preferences = delegate_->GetWebkitPrefs(); | 168 params.web_preferences = delegate_->GetWebkitPrefs(); |
169 params.view_id = routing_id(); | 169 params.view_id = routing_id(); |
170 params.session_storage_namespace_id = session_storage_namespace_->id(); | 170 params.session_storage_namespace_id = session_storage_namespace_->id(); |
171 params.frame_name = frame_name; | 171 params.frame_name = frame_name; |
172 Send(new ViewMsg_New(params)); | 172 Send(new ViewMsg_New(params)); |
173 | 173 |
174 // Set the alternate error page, which is profile specific, in the renderer. | |
175 GURL url = delegate_->GetAlternateErrorPageURL(); | |
176 Send(new ViewMsg_SetAltErrorPageURL(routing_id(), url)); | |
177 | |
178 // If it's enabled, tell the renderer to set up the Javascript bindings for | 174 // If it's enabled, tell the renderer to set up the Javascript bindings for |
179 // sending messages back to the browser. | 175 // sending messages back to the browser. |
180 Send(new ViewMsg_AllowBindings(routing_id(), enabled_bindings_)); | 176 Send(new ViewMsg_AllowBindings(routing_id(), enabled_bindings_)); |
181 // Let our delegate know that we created a RenderView. | 177 // Let our delegate know that we created a RenderView. |
182 delegate_->RenderViewCreated(this); | 178 delegate_->RenderViewCreated(this); |
183 | 179 |
184 FOR_EACH_OBSERVER( | 180 FOR_EACH_OBSERVER( |
185 RenderViewHostObserver, observers_, RenderViewHostInitialized()); | 181 RenderViewHostObserver, observers_, RenderViewHostInitialized()); |
186 | 182 |
187 return true; | 183 return true; |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 if (view) { | 1281 if (view) { |
1286 view->ShowPopupMenu(params.bounds, | 1282 view->ShowPopupMenu(params.bounds, |
1287 params.item_height, | 1283 params.item_height, |
1288 params.item_font_size, | 1284 params.item_font_size, |
1289 params.selected_item, | 1285 params.selected_item, |
1290 params.popup_items, | 1286 params.popup_items, |
1291 params.right_aligned); | 1287 params.right_aligned); |
1292 } | 1288 } |
1293 } | 1289 } |
1294 #endif | 1290 #endif |
OLD | NEW |