Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 945333002: Implement <webview> droplink event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_bpe
Patch Set: Addressed Istiaque's comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 valid |url| was dropped over the guest.
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
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_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | extensions/browser/guest_view/web_view/web_view_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698