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 BrowserPluginGuest is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
8 // | 8 // |
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "ui/gfx/geometry/rect.h" | 45 #include "ui/gfx/geometry/rect.h" |
46 | 46 |
47 struct BrowserPluginHostMsg_Attach_Params; | 47 struct BrowserPluginHostMsg_Attach_Params; |
48 | 48 |
49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
50 struct FrameHostMsg_ShowPopup_Params; | 50 struct FrameHostMsg_ShowPopup_Params; |
51 #endif | 51 #endif |
52 | 52 |
53 namespace cc { | 53 namespace cc { |
54 class SurfaceId; | 54 class SurfaceId; |
| 55 class SurfaceInfo; |
55 struct SurfaceSequence; | 56 struct SurfaceSequence; |
56 } // namespace cc | 57 } // namespace cc |
57 | 58 |
58 namespace gfx { | 59 namespace gfx { |
59 class Range; | 60 class Range; |
60 } // namespace gfx | 61 } // namespace gfx |
61 | 62 |
62 namespace content { | 63 namespace content { |
63 | 64 |
64 class BrowserPluginGuestManager; | 65 class BrowserPluginGuestManager; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void EmbedderSystemDragEnded(); | 233 void EmbedderSystemDragEnded(); |
233 void EndSystemDragIfApplicable(); | 234 void EndSystemDragIfApplicable(); |
234 | 235 |
235 void RespondToPermissionRequest(int request_id, | 236 void RespondToPermissionRequest(int request_id, |
236 bool should_allow, | 237 bool should_allow, |
237 const std::string& user_input); | 238 const std::string& user_input); |
238 | 239 |
239 void PointerLockPermissionResponse(bool allow); | 240 void PointerLockPermissionResponse(bool allow); |
240 | 241 |
241 // The next function is virtual for test purposes. | 242 // The next function is virtual for test purposes. |
242 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, | 243 virtual void SetChildFrameSurface(const cc::SurfaceInfo& surface_info, |
243 const gfx::Size& frame_size, | |
244 float scale_factor, | |
245 const cc::SurfaceSequence& sequence); | 244 const cc::SurfaceSequence& sequence); |
246 | 245 |
247 // Find the given |search_text| in the page. Returns true if the find request | 246 // Find the given |search_text| in the page. Returns true if the find request |
248 // is handled by this browser plugin guest. | 247 // is handled by this browser plugin guest. |
249 bool HandleFindForEmbedder(int request_id, | 248 bool HandleFindForEmbedder(int request_id, |
250 const base::string16& search_text, | 249 const base::string16& search_text, |
251 const blink::WebFindOptions& options); | 250 const blink::WebFindOptions& options); |
252 bool HandleStopFindingForEmbedder(StopFindAction action); | 251 bool HandleStopFindingForEmbedder(StopFindAction action); |
253 | 252 |
254 void ResendEventToEmbedder(const blink::WebInputEvent& event); | 253 void ResendEventToEmbedder(const blink::WebInputEvent& event); |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 464 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
466 // permission. | 465 // permission. |
467 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 466 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
468 | 467 |
469 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 468 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
470 }; | 469 }; |
471 | 470 |
472 } // namespace content | 471 } // namespace content |
473 | 472 |
474 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 473 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |