summaryrefslogtreecommitdiffstats
path: root/content/public/browser/browser_plugin_guest_delegate.h
diff options
context:
space:
mode:
authorfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-14 06:44:41 +0000
committerfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-14 06:44:41 +0000
commitc54341134bf266b76b99b2e81e5a1469fc4a76d8 (patch)
tree8e8ae43cd3dc1ba8e0bee7e15b6f428a097236e4 /content/public/browser/browser_plugin_guest_delegate.h
parente8ba11614fcc5835c64ad5d279391022dfe65fbd (diff)
downloadchromium_src-c54341134bf266b76b99b2e81e5a1469fc4a76d8.zip
chromium_src-c54341134bf266b76b99b2e81e5a1469fc4a76d8.tar.gz
chromium_src-c54341134bf266b76b99b2e81e5a1469fc4a76d8.tar.bz2
<webview>: Move Color Chooser and File Chooser to Chrome
BUG=364141, 330264 Review URL: https://codereview.chromium.org/280833003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/browser_plugin_guest_delegate.h')
-rw-r--r--content/public/browser/browser_plugin_guest_delegate.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index 6df0ef1..fd07b9db 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -12,16 +12,20 @@
#include "content/common/content_export.h"
#include "content/public/common/browser_plugin_permission_type.h"
#include "content/public/common/media_stream_request.h"
+#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/size.h"
#include "url/gurl.h"
namespace content {
+class ColorChooser;
class JavaScriptDialogManager;
+class WebContents;
+struct ColorSuggestion;
struct ContextMenuParams;
+struct FileChooserParams;
struct NativeWebKeyboardEvent;
-class WebContents;
// Objects implement this interface to get notified about changes in the guest
// WebContents and to provide necessary functionality.
@@ -141,6 +145,19 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
// NULL in which case dialogs aren't shown.
virtual JavaScriptDialogManager* GetJavaScriptDialogManager();
+ // Called when color chooser should open. Returns the opened color chooser.
+ // Returns NULL if we failed to open the color chooser (e.g. when there is a
+ // ColorChooserDialog already open on Windows). Ownership of the returned
+ // pointer is transferred to the caller.
+ virtual ColorChooser* OpenColorChooser(
+ WebContents* web_contents,
+ SkColor color,
+ const std::vector<ColorSuggestion>& suggestions);
+
+ // Called when a file selection is to be done.
+ virtual void RunFileChooser(WebContents* web_contents,
+ const FileChooserParams& params) {}
+
// Returns true if the context menu operation was handled by the delegate.
virtual bool HandleContextMenu(const ContextMenuParams& params);
};