| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 namespace gfx { | 56 namespace gfx { |
| 57 class Range; | 57 class Range; |
| 58 } // namespace gfx | 58 } // namespace gfx |
| 59 | 59 |
| 60 namespace content { | 60 namespace content { |
| 61 | 61 |
| 62 class BrowserPluginGuestManager; | 62 class BrowserPluginGuestManager; |
| 63 class RenderViewHostImpl; | 63 class RenderViewHostImpl; |
| 64 class RenderWidgetHost; | 64 class RenderWidgetHost; |
| 65 class RenderWidgetHostView; | 65 class RenderWidgetHostView; |
| 66 class RenderWidgetHostViewBase; |
| 66 class SiteInstance; | 67 class SiteInstance; |
| 67 struct DropData; | 68 struct DropData; |
| 68 | 69 |
| 69 // A browser plugin guest provides functionality for WebContents to operate in | 70 // A browser plugin guest provides functionality for WebContents to operate in |
| 70 // the guest role and implements guest-specific overrides for ViewHostMsg_* | 71 // the guest role and implements guest-specific overrides for ViewHostMsg_* |
| 71 // messages. | 72 // messages. |
| 72 // | 73 // |
| 73 // When a guest is initially created, it is in an unattached state. That is, | 74 // When a guest is initially created, it is in an unattached state. That is, |
| 74 // it is not visible anywhere and has no embedder WebContents assigned. | 75 // it is not visible anywhere and has no embedder WebContents assigned. |
| 75 // A BrowserPluginGuest is said to be "attached" if it has an embedder. | 76 // A BrowserPluginGuest is said to be "attached" if it has an embedder. |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 #endif | 335 #endif |
| 335 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); | 336 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); |
| 336 void OnTakeFocus(bool reverse); | 337 void OnTakeFocus(bool reverse); |
| 337 void OnUpdateFrameName(int frame_id, | 338 void OnUpdateFrameName(int frame_id, |
| 338 bool is_top_level, | 339 bool is_top_level, |
| 339 const std::string& name); | 340 const std::string& name); |
| 340 | 341 |
| 341 // Forwards all messages from the |pending_messages_| queue to the embedder. | 342 // Forwards all messages from the |pending_messages_| queue to the embedder. |
| 342 void SendQueuedMessages(); | 343 void SendQueuedMessages(); |
| 343 | 344 |
| 345 void SendTextInputTypeChangedToView(RenderWidgetHostViewBase* guest_rwhv); |
| 346 |
| 344 // The last tooltip that was set with SetTooltipText(). | 347 // The last tooltip that was set with SetTooltipText(). |
| 345 base::string16 current_tooltip_text_; | 348 base::string16 current_tooltip_text_; |
| 346 | 349 |
| 347 scoped_ptr<EmbedderVisibilityObserver> embedder_visibility_observer_; | 350 scoped_ptr<EmbedderVisibilityObserver> embedder_visibility_observer_; |
| 348 WebContentsImpl* owner_web_contents_; | 351 WebContentsImpl* owner_web_contents_; |
| 349 | 352 |
| 350 // Indicates whether this guest has been attached to a container. | 353 // Indicates whether this guest has been attached to a container. |
| 351 bool attached_; | 354 bool attached_; |
| 352 | 355 |
| 353 // An identifier that uniquely identifies a browser plugin within an embedder. | 356 // An identifier that uniquely identifies a browser plugin within an embedder. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 417 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 415 // permission. | 418 // permission. |
| 416 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 419 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 417 | 420 |
| 418 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 421 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 419 }; | 422 }; |
| 420 | 423 |
| 421 } // namespace content | 424 } // namespace content |
| 422 | 425 |
| 423 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 426 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |