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 17 matching lines...) Expand all Loading... |
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 | 35 |
36 namespace content { | 36 namespace content { |
37 | 37 |
38 class PageState; | |
39 struct FrameReplicationState; | 38 struct FrameReplicationState; |
40 | 39 |
41 // This implements the RenderViewHost interface that is exposed to | 40 // This implements the RenderViewHost interface that is exposed to |
42 // embedders of content, and adds things only visible to content. | 41 // embedders of content, and adds things only visible to content. |
43 // | 42 // |
44 // The exact API of this object needs to be more thoroughly designed. Right | 43 // The exact API of this object needs to be more thoroughly designed. Right |
45 // now it mimics what WebContentsImpl exposed, which is a fairly large API and | 44 // now it mimics what WebContentsImpl exposed, which is a fairly large API and |
46 // may contain things that are not relevant to a common subset of views. See | 45 // may contain things that are not relevant to a common subset of views. See |
47 // also the comment in render_view_host_delegate.h about the size and scope of | 46 // also the comment in render_view_host_delegate.h about the size and scope of |
48 // the delegate API. | 47 // the delegate API. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 const NativeWebKeyboardEvent& key_event) override; | 227 const NativeWebKeyboardEvent& key_event) override; |
229 | 228 |
230 // IPC message handlers. | 229 // IPC message handlers. |
231 void OnShowView(int route_id, | 230 void OnShowView(int route_id, |
232 WindowOpenDisposition disposition, | 231 WindowOpenDisposition disposition, |
233 const gfx::Rect& initial_rect, | 232 const gfx::Rect& initial_rect, |
234 bool user_gesture); | 233 bool user_gesture); |
235 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); | 234 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); |
236 void OnShowFullscreenWidget(int route_id); | 235 void OnShowFullscreenWidget(int route_id); |
237 void OnRenderProcessGone(int status, int error_code); | 236 void OnRenderProcessGone(int status, int error_code); |
238 void OnUpdateState(const PageState& state); | |
239 void OnUpdateTargetURL(const GURL& url); | 237 void OnUpdateTargetURL(const GURL& url); |
240 void OnClose(); | 238 void OnClose(); |
241 void OnRequestMove(const gfx::Rect& pos); | 239 void OnRequestMove(const gfx::Rect& pos); |
242 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); | 240 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); |
243 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); | 241 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); |
244 void OnPasteFromSelectionClipboard(); | 242 void OnPasteFromSelectionClipboard(); |
245 void OnRouteCloseEvent(); | 243 void OnRouteCloseEvent(); |
246 void OnTakeFocus(bool reverse); | 244 void OnTakeFocus(bool reverse); |
247 void OnClosePageACK(); | 245 void OnClosePageACK(); |
248 void OnDidZoomURL(double zoom_level, const GURL& url); | 246 void OnDidZoomURL(double zoom_level, const GURL& url); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool render_view_ready_on_process_launch_; | 325 bool render_view_ready_on_process_launch_; |
328 | 326 |
329 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 327 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
330 | 328 |
331 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 329 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
332 }; | 330 }; |
333 | 331 |
334 } // namespace content | 332 } // namespace content |
335 | 333 |
336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 334 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |