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

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

Issue 1359163005: Remove surface_id from RenderWidget/RenderWidgetHost and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@channel_creation_preempt
Patch Set: fix more tests 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // 108 //
109 // The |session_storage_namespace| parameter allows multiple render views and 109 // The |session_storage_namespace| parameter allows multiple render views and
110 // WebContentses to share the same session storage (part of the WebStorage 110 // WebContentses to share the same session storage (part of the WebStorage
111 // spec) space. This is useful when restoring contentses, but most callers 111 // spec) space. This is useful when restoring contentses, but most callers
112 // should pass in NULL which will cause a new SessionStorageNamespace to be 112 // should pass in NULL which will cause a new SessionStorageNamespace to be
113 // created. 113 // created.
114 RenderViewHostImpl(SiteInstance* instance, 114 RenderViewHostImpl(SiteInstance* instance,
115 RenderViewHostDelegate* delegate, 115 RenderViewHostDelegate* delegate,
116 RenderWidgetHostDelegate* widget_delegate, 116 RenderWidgetHostDelegate* widget_delegate,
117 int32 routing_id, 117 int32 routing_id,
118 int32 surface_id,
119 int32 main_frame_routing_id, 118 int32 main_frame_routing_id,
120 bool swapped_out, 119 bool swapped_out,
121 bool hidden, 120 bool hidden,
122 bool has_initialized_audio_host); 121 bool has_initialized_audio_host);
123 ~RenderViewHostImpl() override; 122 ~RenderViewHostImpl() override;
124 123
125 // RenderViewHost implementation. 124 // RenderViewHost implementation.
126 RenderFrameHost* GetMainFrame() override; 125 RenderFrameHost* GetMainFrame() override;
127 void AllowBindings(int binding_flags) override; 126 void AllowBindings(int binding_flags) override;
128 void ClearFocusedElement() override; 127 void ClearFocusedElement() override;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // Creates a new RenderView with the given route id. 298 // Creates a new RenderView with the given route id.
300 void CreateNewWindow( 299 void CreateNewWindow(
301 int route_id, 300 int route_id,
302 int main_frame_route_id, 301 int main_frame_route_id,
303 const ViewHostMsg_CreateWindow_Params& params, 302 const ViewHostMsg_CreateWindow_Params& params,
304 SessionStorageNamespace* session_storage_namespace); 303 SessionStorageNamespace* session_storage_namespace);
305 304
306 // Creates a new RenderWidget with the given route id. |popup_type| indicates 305 // Creates a new RenderWidget with the given route id. |popup_type| indicates
307 // if this widget is a popup and what kind of popup it is (select, autofill). 306 // if this widget is a popup and what kind of popup it is (select, autofill).
308 void CreateNewWidget(int32 route_id, 307 void CreateNewWidget(int32 route_id,
309 int32 surface_id,
310 blink::WebPopupType popup_type); 308 blink::WebPopupType popup_type);
311 309
312 // Creates a full screen RenderWidget. 310 // Creates a full screen RenderWidget.
313 void CreateNewFullscreenWidget(int32 route_id, int32 surface_id); 311 void CreateNewFullscreenWidget(int32 route_id);
314 312
315 void set_main_frame_routing_id(int routing_id) { 313 void set_main_frame_routing_id(int routing_id) {
316 main_frame_routing_id_ = routing_id; 314 main_frame_routing_id_ = routing_id;
317 } 315 }
318 316
319 void OnTextSurroundingSelectionResponse(const base::string16& content, 317 void OnTextSurroundingSelectionResponse(const base::string16& content,
320 size_t start_offset, 318 size_t start_offset,
321 size_t end_offset); 319 size_t end_offset);
322 320
323 // Increases the refcounting on this RVH. This is done by the FrameTree on 321 // Increases the refcounting on this RVH. This is done by the FrameTree on
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 492 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
495 }; 493 };
496 494
497 #if defined(COMPILER_MSVC) 495 #if defined(COMPILER_MSVC)
498 #pragma warning(pop) 496 #pragma warning(pop)
499 #endif 497 #endif
500 498
501 } // namespace content 499 } // namespace content
502 500
503 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 501 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_factory.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698