diff options
-rw-r--r-- | content/browser/browser_plugin/browser_plugin_guest.cc | 10 | ||||
-rw-r--r-- | content/browser/browser_plugin/browser_plugin_guest.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc index 3217485..61e93bd 100644 --- a/content/browser/browser_plugin/browser_plugin_guest.cc +++ b/content/browser/browser_plugin/browser_plugin_guest.cc @@ -794,6 +794,16 @@ JavaScriptDialogManager* BrowserPluginGuest::GetJavaScriptDialogManager() { return this; } +ColorChooser* BrowserPluginGuest::OpenColorChooser( + WebContents* web_contents, + SkColor color, + const std::vector<ColorSuggestion>& suggestions) { + if (!embedder_web_contents_ || !embedder_web_contents_->GetDelegate()) + return NULL; + return embedder_web_contents_->GetDelegate()->OpenColorChooser( + web_contents, color, suggestions); +} + bool BrowserPluginGuest::HandleContextMenu(const ContextMenuParams& params) { // TODO(fsamuel): We show the regular page context menu handler for now until // we implement the Apps Context Menu API for Browser Plugin (see diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h index e55845ff..2637329 100644 --- a/content/browser/browser_plugin/browser_plugin_guest.h +++ b/content/browser/browser_plugin/browser_plugin_guest.h @@ -204,6 +204,10 @@ class CONTENT_EXPORT BrowserPluginGuest double progress) OVERRIDE; virtual void CloseContents(WebContents* source) OVERRIDE; virtual JavaScriptDialogManager* GetJavaScriptDialogManager() OVERRIDE; + virtual ColorChooser* OpenColorChooser( + WebContents* web_contents, + SkColor color, + const std::vector<ColorSuggestion>& suggestions) OVERRIDE; virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; virtual void HandleKeyboardEvent( WebContents* source, |