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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 | 90 |
91 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; | 91 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; |
92 | 92 |
93 bool DidSendScreenRectsCallback(BrowserPluginGuest* guest); | 93 bool DidSendScreenRectsCallback(BrowserPluginGuest* guest); |
94 | 94 |
95 bool SetZoomLevelCallback(double level, BrowserPluginGuest* guest); | 95 bool SetZoomLevelCallback(double level, BrowserPluginGuest* guest); |
96 | 96 |
97 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event, | 97 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event, |
98 BrowserPluginGuest* guest); | 98 BrowserPluginGuest* guest); |
99 | 99 |
100 void GuestCallback(int instance_id, | |
lazyboy
2014/05/01 23:27:58
OnGuestCallback() or CallGuestCallback()
Also add
Fady Samuel
2014/05/06 16:51:36
Done.
| |
101 const BrowserPluginHostMsg_Attach_Params& params, | |
102 const base::DictionaryValue* extra_params, | |
103 BrowserPluginGuest* guest); | |
104 | |
100 // Message handlers. | 105 // Message handlers. |
101 | 106 |
102 void OnAllocateInstanceID(int request_id); | 107 void OnAllocateInstanceID(int request_id); |
103 void OnAttach(int instance_id, | 108 void OnAttach(int instance_id, |
104 const BrowserPluginHostMsg_Attach_Params& params, | 109 const BrowserPluginHostMsg_Attach_Params& params, |
105 const base::DictionaryValue& extra_params); | 110 const base::DictionaryValue& extra_params); |
106 void OnPluginAtPositionResponse(int instance_id, | 111 void OnPluginAtPositionResponse(int instance_id, |
107 int request_id, | 112 int request_id, |
108 const gfx::Point& position); | 113 const gfx::Point& position); |
109 | 114 |
(...skipping 12 matching lines...) Expand all Loading... | |
122 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; | 127 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; |
123 | 128 |
124 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; | 129 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; |
125 | 130 |
126 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 131 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
127 }; | 132 }; |
128 | 133 |
129 } // namespace content | 134 } // namespace content |
130 | 135 |
131 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 136 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |