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_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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... | |
25 #include "content/browser/site_instance_impl.h" | 25 #include "content/browser/site_instance_impl.h" |
26 #include "content/public/browser/notification_observer.h" | 26 #include "content/public/browser/notification_observer.h" |
27 #include "content/public/browser/render_process_host_observer.h" | 27 #include "content/public/browser/render_process_host_observer.h" |
28 #include "content/public/browser/render_view_host.h" | 28 #include "content/public/browser/render_view_host.h" |
29 #include "content/public/common/window_container_type.h" | 29 #include "content/public/common/window_container_type.h" |
30 #include "net/base/load_states.h" | 30 #include "net/base/load_states.h" |
31 #include "third_party/WebKit/public/web/WebAXEnums.h" | 31 #include "third_party/WebKit/public/web/WebAXEnums.h" |
32 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 32 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
33 #include "third_party/WebKit/public/web/WebPopupType.h" | 33 #include "third_party/WebKit/public/web/WebPopupType.h" |
34 #include "third_party/skia/include/core/SkColor.h" | 34 #include "third_party/skia/include/core/SkColor.h" |
35 #include "ui/base/window_open_disposition.h" | 35 #include "ui/base/window_open_disposition.h" |
alexmos
2016/12/13 18:41:40
remove?
ncarter (slow)
2016/12/15 00:33:16
Done.
| |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 class PageState; | 39 class PageState; |
40 class SessionStorageNamespace; | |
41 struct FrameReplicationState; | 40 struct FrameReplicationState; |
42 | 41 |
43 namespace mojom { | |
44 class CreateNewWindowParams; | |
45 } | |
46 | |
47 // This implements the RenderViewHost interface that is exposed to | 42 // This implements the RenderViewHost interface that is exposed to |
48 // embedders of content, and adds things only visible to content. | 43 // embedders of content, and adds things only visible to content. |
49 // | 44 // |
50 // The exact API of this object needs to be more thoroughly designed. Right | 45 // The exact API of this object needs to be more thoroughly designed. Right |
51 // now it mimics what WebContentsImpl exposed, which is a fairly large API and | 46 // now it mimics what WebContentsImpl exposed, which is a fairly large API and |
52 // may contain things that are not relevant to a common subset of views. See | 47 // may contain things that are not relevant to a common subset of views. See |
53 // also the comment in render_view_host_delegate.h about the size and scope of | 48 // also the comment in render_view_host_delegate.h about the size and scope of |
54 // the delegate API. | 49 // the delegate API. |
55 // | 50 // |
56 // Right now, the concept of page navigation (both top level and frame) exists | 51 // Right now, the concept of page navigation (both top level and frame) exists |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 void ClosePageIgnoringUnloadEvents(); | 174 void ClosePageIgnoringUnloadEvents(); |
180 | 175 |
181 // Tells the renderer view to focus the first (last if reverse is true) node. | 176 // Tells the renderer view to focus the first (last if reverse is true) node. |
182 void SetInitialFocus(bool reverse); | 177 void SetInitialFocus(bool reverse); |
183 | 178 |
184 bool SuddenTerminationAllowed() const; | 179 bool SuddenTerminationAllowed() const; |
185 void set_sudden_termination_allowed(bool enabled) { | 180 void set_sudden_termination_allowed(bool enabled) { |
186 sudden_termination_allowed_ = enabled; | 181 sudden_termination_allowed_ = enabled; |
187 } | 182 } |
188 | 183 |
189 // Creates a new RenderView with the given route id. | |
190 void CreateNewWindow(int32_t route_id, | |
191 int32_t main_frame_route_id, | |
192 int32_t main_frame_widget_route_id, | |
193 const mojom::CreateNewWindowParams& params, | |
194 SessionStorageNamespace* session_storage_namespace); | |
195 | |
196 // Creates a new RenderWidget with the given route id. |popup_type| indicates | 184 // Creates a new RenderWidget with the given route id. |popup_type| indicates |
197 // if this widget is a popup and what kind of popup it is (select, autofill). | 185 // if this widget is a popup and what kind of popup it is (select, autofill). |
198 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); | 186 void CreateNewWidget(int32_t route_id, blink::WebPopupType popup_type); |
199 | 187 |
200 // Creates a full screen RenderWidget. | 188 // Creates a full screen RenderWidget. |
201 void CreateNewFullscreenWidget(int32_t route_id); | 189 void CreateNewFullscreenWidget(int32_t route_id); |
202 | 190 |
203 // Send RenderViewReady to observers once the process is launched, but not | 191 // Send RenderViewReady to observers once the process is launched, but not |
204 // re-entrantly. | 192 // re-entrantly. |
205 void PostRenderViewReady(); | 193 void PostRenderViewReady(); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
347 bool render_view_ready_on_process_launch_; | 335 bool render_view_ready_on_process_launch_; |
348 | 336 |
349 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 337 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
350 | 338 |
351 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 339 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
352 }; | 340 }; |
353 | 341 |
354 } // namespace content | 342 } // namespace content |
355 | 343 |
356 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 344 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |