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

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

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through surface ID *and* widget surface ID for window.open Created 5 years, 3 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 bool OnMessageReceived(const IPC::Message& msg) override; 280 bool OnMessageReceived(const IPC::Message& msg) override;
281 void GotFocus() override; 281 void GotFocus() override;
282 void LostCapture() override; 282 void LostCapture() override;
283 void LostMouseLock() override; 283 void LostMouseLock() override;
284 void SetIsLoading(bool is_loading) override; 284 void SetIsLoading(bool is_loading) override;
285 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; 285 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override;
286 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; 286 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override;
287 gfx::Rect GetRootWindowResizerRect() const override; 287 gfx::Rect GetRootWindowResizerRect() const override;
288 288
289 // Creates a new RenderView with the given route id. 289 // Creates a new RenderView with the given route id.
290 void CreateNewWindow( 290 void CreateNewWindow(int32 route_id,
291 int route_id, 291 int32 main_frame_route_id,
292 int main_frame_route_id, 292 int32 main_frame_widget_route_id,
293 const ViewHostMsg_CreateWindow_Params& params, 293 int32 surface_id,
294 SessionStorageNamespace* session_storage_namespace); 294 const ViewHostMsg_CreateWindow_Params& params,
295 SessionStorageNamespace* session_storage_namespace);
295 296
296 // Creates a new RenderWidget with the given route id. |popup_type| indicates 297 // Creates a new RenderWidget with the given route id. |popup_type| indicates
297 // if this widget is a popup and what kind of popup it is (select, autofill). 298 // if this widget is a popup and what kind of popup it is (select, autofill).
298 void CreateNewWidget(int32 route_id, 299 void CreateNewWidget(int32 route_id,
299 int32 surface_id, 300 int32 surface_id,
300 blink::WebPopupType popup_type); 301 blink::WebPopupType popup_type);
301 302
302 // Creates a full screen RenderWidget. 303 // Creates a full screen RenderWidget.
303 void CreateNewFullscreenWidget(int32 route_id, int32 surface_id); 304 void CreateNewFullscreenWidget(int32 route_id, int32 surface_id);
304 305
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 482 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
482 }; 483 };
483 484
484 #if defined(COMPILER_MSVC) 485 #if defined(COMPILER_MSVC)
485 #pragma warning(pop) 486 #pragma warning(pop)
486 #endif 487 #endif
487 488
488 } // namespace content 489 } // namespace content
489 490
490 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 491 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698