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 17 matching lines...) Expand all Loading... |
28 // WebContentsViewGuest always has a backing platform dependent view, | 28 // WebContentsViewGuest always has a backing platform dependent view, |
29 // |platform_view|. | 29 // |platform_view|. |
30 WebContentsViewGuest(WebContentsImpl* web_contents, | 30 WebContentsViewGuest(WebContentsImpl* web_contents, |
31 BrowserPluginGuest* guest, | 31 BrowserPluginGuest* guest, |
32 scoped_ptr<WebContentsView> platform_view, | 32 scoped_ptr<WebContentsView> platform_view, |
33 RenderViewHostDelegateView* platform_view_delegate_view); | 33 RenderViewHostDelegateView* platform_view_delegate_view); |
34 virtual ~WebContentsViewGuest(); | 34 virtual ~WebContentsViewGuest(); |
35 | 35 |
36 WebContents* web_contents(); | 36 WebContents* web_contents(); |
37 | 37 |
38 void OnGuestInitialized(WebContentsView* parent_view); | 38 void OnGuestAttached(WebContentsView* parent_view); |
| 39 |
| 40 void OnGuestDetached(WebContentsView* old_parent_view); |
39 | 41 |
40 // Converts the guest specific coordinates in |params| to embedder specific | 42 // Converts the guest specific coordinates in |params| to embedder specific |
41 // ones. | 43 // ones. |
42 ContextMenuParams ConvertContextMenuParams( | 44 ContextMenuParams ConvertContextMenuParams( |
43 const ContextMenuParams& params) const; | 45 const ContextMenuParams& params) const; |
44 | 46 |
45 // WebContentsView implementation -------------------------------------------- | 47 // WebContentsView implementation -------------------------------------------- |
46 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 48 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
47 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 49 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
48 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 50 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 96 |
95 // Delegate view for guest's platform view. | 97 // Delegate view for guest's platform view. |
96 RenderViewHostDelegateView* platform_view_delegate_view_; | 98 RenderViewHostDelegateView* platform_view_delegate_view_; |
97 | 99 |
98 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); | 100 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGuest); |
99 }; | 101 }; |
100 | 102 |
101 } // namespace content | 103 } // namespace content |
102 | 104 |
103 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ | 105 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GUEST_H_ |
OLD | NEW |