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 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's | 5 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's |
6 // embedder that are not directed at any particular existing guest process. | 6 // embedder that are not directed at any particular existing guest process. |
7 // In the beginning, when a BrowserPlugin instance in the embedder renderer | 7 // In the beginning, when a BrowserPlugin instance in the embedder renderer |
8 // process requests an initial navigation, the WebContents for that renderer | 8 // process requests an initial navigation, the WebContents for that renderer |
9 // renderer creates a BrowserPluginEmbedder for itself. The | 9 // renderer creates a BrowserPluginEmbedder for itself. The |
10 // BrowserPluginEmbedder, in turn, forwards the requests to a | 10 // BrowserPluginEmbedder, in turn, forwards the requests to a |
(...skipping 14 matching lines...) Expand all Loading... | |
25 struct BrowserPluginHostMsg_Attach_Params; | 25 struct BrowserPluginHostMsg_Attach_Params; |
26 struct BrowserPluginHostMsg_ResizeGuest_Params; | 26 struct BrowserPluginHostMsg_ResizeGuest_Params; |
27 | 27 |
28 namespace gfx { | 28 namespace gfx { |
29 class Point; | 29 class Point; |
30 } | 30 } |
31 | 31 |
32 namespace content { | 32 namespace content { |
33 | 33 |
34 class BrowserPluginGuest; | 34 class BrowserPluginGuest; |
35 class BrowserPluginGuestManager; | 35 class BrowserPluginGuestManager; |
lazyboy
2014/05/05 21:47:46
Dup
Fady Samuel
2014/05/07 19:01:51
Done.
| |
36 class BrowserPluginGuestManagerDelegate; | 36 class BrowserPluginGuestManager; |
37 class BrowserPluginHostFactory; | 37 class BrowserPluginHostFactory; |
38 class RenderWidgetHostImpl; | 38 class RenderWidgetHostImpl; |
39 class WebContentsImpl; | 39 class WebContentsImpl; |
40 struct NativeWebKeyboardEvent; | 40 struct NativeWebKeyboardEvent; |
41 | 41 |
42 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver { | 42 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver { |
43 public: | 43 public: |
44 virtual ~BrowserPluginEmbedder(); | 44 virtual ~BrowserPluginEmbedder(); |
45 | 45 |
46 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents); | 46 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 | 82 |
83 // Sends EndSystemDrag message to the guest that initiated the last drag/drop | 83 // Sends EndSystemDrag message to the guest that initiated the last drag/drop |
84 // operation, if there's any. | 84 // operation, if there's any. |
85 void SystemDragEnded(); | 85 void SystemDragEnded(); |
86 | 86 |
87 private: | 87 private: |
88 friend class TestBrowserPluginEmbedder; | 88 friend class TestBrowserPluginEmbedder; |
89 | 89 |
90 explicit BrowserPluginEmbedder(WebContentsImpl* web_contents); | 90 explicit BrowserPluginEmbedder(WebContentsImpl* web_contents); |
91 | 91 |
92 BrowserPluginGuestManagerDelegate* GetBrowserPluginGuestManager() const; | 92 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; |
93 | 93 |
94 bool DidSendScreenRectsCallback(WebContents* guest_web_contents); | 94 bool DidSendScreenRectsCallback(WebContents* guest_web_contents); |
95 | 95 |
96 bool SetZoomLevelCallback(double level, WebContents* guest_web_contents); | 96 bool SetZoomLevelCallback(double level, WebContents* guest_web_contents); |
97 | 97 |
98 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event, | 98 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event, |
99 WebContents* guest); | 99 WebContents* guest); |
100 | 100 |
101 void GuestCallback(int instance_id, | 101 void GuestCallback(int instance_id, |
102 const BrowserPluginHostMsg_Attach_Params& params, | 102 const BrowserPluginHostMsg_Attach_Params& params, |
(...skipping 25 matching lines...) Expand all Loading... | |
128 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; | 128 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; |
129 | 129 |
130 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; | 130 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 132 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace content | 135 } // namespace content |
136 | 136 |
137 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 137 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |