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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts Created 5 years, 2 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
OLDNEW
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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // passed to window.open(), and will be empty if none was passed. 206 // passed to window.open(), and will be empty if none was passed.
207 // 207 //
208 // Note: this is not called "CreateWindow" because that will clash with 208 // Note: this is not called "CreateWindow" because that will clash with
209 // the Windows function which is actually a #define. 209 // the Windows function which is actually a #define.
210 // 210 //
211 // TODO(alexmos): This should be moved to RenderFrameHostDelegate, and the 211 // TODO(alexmos): This should be moved to RenderFrameHostDelegate, and the
212 // corresponding IPC message should be sent by the RenderFrame creating the 212 // corresponding IPC message should be sent by the RenderFrame creating the
213 // new window. 213 // new window.
214 virtual void CreateNewWindow( 214 virtual void CreateNewWindow(
215 SiteInstance* source_site_instance, 215 SiteInstance* source_site_instance,
216 int route_id, 216 int32_t route_id,
217 int main_frame_route_id, 217 int32_t main_frame_route_id,
218 int32_t main_frame_widget_route_id,
218 const ViewHostMsg_CreateWindow_Params& params, 219 const ViewHostMsg_CreateWindow_Params& params,
219 SessionStorageNamespace* session_storage_namespace) {} 220 SessionStorageNamespace* session_storage_namespace) {}
220 221
221 // The page is trying to open a new widget (e.g. a select popup). The 222 // The page is trying to open a new widget (e.g. a select popup). The
222 // widget should be created associated with the given |route_id| in the 223 // widget should be created associated with the given |route_id| in the
223 // process |render_process_id|, but it should not be shown yet. That should 224 // process |render_process_id|, but it should not be shown yet. That should
224 // happen in response to ShowCreatedWidget. 225 // happen in response to ShowCreatedWidget.
225 // |popup_type| indicates if the widget is a popup and what kind of popup it 226 // |popup_type| indicates if the widget is a popup and what kind of popup it
226 // is (select, autofill...). 227 // is (select, autofill...).
227 virtual void CreateNewWidget(int32 render_process_id, 228 virtual void CreateNewWidget(int32 render_process_id,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 277 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
277 virtual bool IsVirtualKeyboardRequested(); 278 virtual bool IsVirtualKeyboardRequested();
278 279
279 protected: 280 protected:
280 virtual ~RenderViewHostDelegate() {} 281 virtual ~RenderViewHostDelegate() {}
281 }; 282 };
282 283
283 } // namespace content 284 } // namespace content
284 285
285 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 286 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698