Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 virtual bool CanRunInDetachedState() const; | 44 virtual bool CanRunInDetachedState() const; |
| 45 | 45 |
| 46 // Notification that the embedder has completed attachment. The | 46 // Notification that the embedder has completed attachment. The |
| 47 // |guest_proxy_routing_id| is the routing ID for the RenderView in the | 47 // |guest_proxy_routing_id| is the routing ID for the RenderView in the |
| 48 // embedder that will serve as a contentWindow proxy for the guest. | 48 // embedder that will serve as a contentWindow proxy for the guest. |
| 49 virtual void DidAttach(int guest_proxy_routing_id) {} | 49 virtual void DidAttach(int guest_proxy_routing_id) {} |
| 50 | 50 |
| 51 // Notification that the guest has detached from its container. | 51 // Notification that the guest has detached from its container. |
| 52 virtual void DidDetach() {} | 52 virtual void DidDetach() {} |
| 53 | 53 |
| 54 // Notification that a link was dropped over the guest. | |
|
lazyboy
2015/02/23 17:11:10
Stress in the comment that |url| has to be valid (
Fady Samuel
2015/02/23 19:57:07
Done.
| |
| 55 virtual void DidDropLink(const GURL& url) {} | |
| 56 | |
| 54 // Notification that the BrowserPlugin has resized. | 57 // Notification that the BrowserPlugin has resized. |
| 55 virtual void ElementSizeChanged(const gfx::Size& size) {} | 58 virtual void ElementSizeChanged(const gfx::Size& size) {} |
| 56 | 59 |
| 57 // Returns the WebContents that currently owns this guest. | 60 // Returns the WebContents that currently owns this guest. |
| 58 virtual WebContents* GetOwnerWebContents() const; | 61 virtual WebContents* GetOwnerWebContents() const; |
| 59 | 62 |
| 60 // Notifies that the content size of the guest has changed. | 63 // Notifies that the content size of the guest has changed. |
| 61 // Note: In autosize mode, it is possible that the guest size may not match | 64 // Note: In autosize mode, it is possible that the guest size may not match |
| 62 // the element size. | 65 // the element size. |
| 63 virtual void GuestSizeChanged(const gfx::Size& new_size) {} | 66 virtual void GuestSizeChanged(const gfx::Size& new_size) {} |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 82 const blink::WebFindOptions& options); | 85 const blink::WebFindOptions& options); |
| 83 virtual bool StopFinding(StopFindAction action); | 86 virtual bool StopFinding(StopFindAction action); |
| 84 | 87 |
| 85 // Provides the delegate with an interface with which to size the guest. | 88 // Provides the delegate with an interface with which to size the guest. |
| 86 virtual void SetGuestSizer(GuestSizer* guest_sizer) {} | 89 virtual void SetGuestSizer(GuestSizer* guest_sizer) {} |
| 87 }; | 90 }; |
| 88 | 91 |
| 89 } // namespace content | 92 } // namespace content |
| 90 | 93 |
| 91 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 94 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| OLD | NEW |