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_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // WebContentsViewPort implementation ---------------------------------------- | 58 // WebContentsViewPort implementation ---------------------------------------- |
59 virtual void CreateView(const gfx::Size& initial_size, | 59 virtual void CreateView(const gfx::Size& initial_size, |
60 gfx::NativeView context) OVERRIDE; | 60 gfx::NativeView context) OVERRIDE; |
61 virtual RenderWidgetHostView* CreateViewForWidget( | 61 virtual RenderWidgetHostView* CreateViewForWidget( |
62 RenderWidgetHost* render_widget_host) OVERRIDE; | 62 RenderWidgetHost* render_widget_host) OVERRIDE; |
63 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 63 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
64 RenderWidgetHost* render_widget_host) OVERRIDE; | 64 RenderWidgetHost* render_widget_host) OVERRIDE; |
65 virtual void SetPageTitle(const string16& title) OVERRIDE; | 65 virtual void SetPageTitle(const string16& title) OVERRIDE; |
66 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 66 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
67 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 67 virtual void RenderViewSwappedIn(RenderViewHost* new_host, |
| 68 RenderViewHost* old_host) OVERRIDE; |
68 #if defined(OS_MACOSX) | 69 #if defined(OS_MACOSX) |
69 virtual bool IsEventTracking() const OVERRIDE; | 70 virtual bool IsEventTracking() const OVERRIDE; |
70 virtual void CloseTabAfterEventTracking() OVERRIDE; | 71 virtual void CloseTabAfterEventTracking() OVERRIDE; |
71 #endif | 72 #endif |
72 | 73 |
73 // Backend implementation of RenderViewHostDelegateView. | 74 // Backend implementation of RenderViewHostDelegateView. |
74 virtual void ShowContextMenu( | 75 virtual void ShowContextMenu( |
75 const ContextMenuParams& params, | 76 const ContextMenuParams& params, |
76 ContextMenuSourceType type) OVERRIDE; | 77 ContextMenuSourceType type) OVERRIDE; |
77 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 78 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
(...skipping 20 matching lines...) Expand all Loading... |
98 // The platform dependent view backing this WebContentsView. | 99 // The platform dependent view backing this WebContentsView. |
99 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|. | 100 // Calls to this WebContentsViewGuest are forwarded to |platform_view_|. |
100 WebContentsViewPort* platform_view_; | 101 WebContentsViewPort* platform_view_; |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); | 103 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); |
103 }; | 104 }; |
104 | 105 |
105 } // namespace content | 106 } // namespace content |
106 | 107 |
107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 108 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
OLD | NEW |