diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 22:47:37 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-05 22:47:37 +0000 |
commit | b70a2e432ac516aa3b86ae129a251a5cb4f40daf (patch) | |
tree | 98f454ac90e936b4e54cfa32eb7159f8a18ea07c /chrome | |
parent | 58d2d2dda2269eb7a40a4898592911d5f792ab02 (diff) | |
download | chromium_src-b70a2e432ac516aa3b86ae129a251a5cb4f40daf.zip chromium_src-b70a2e432ac516aa3b86ae129a251a5cb4f40daf.tar.gz chromium_src-b70a2e432ac516aa3b86ae129a251a5cb4f40daf.tar.bz2 |
Chromium-side implemention of pepper's FileChooser.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3052040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.cc | 7 | ||||
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.h | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.cc b/chrome/renderer/pepper_plugin_delegate_impl.cc index 4e9f917..df9d49c 100644 --- a/chrome/renderer/pepper_plugin_delegate_impl.cc +++ b/chrome/renderer/pepper_plugin_delegate_impl.cc @@ -10,6 +10,8 @@ #include "chrome/common/render_messages.h" #include "chrome/renderer/audio_message_filter.h" #include "chrome/renderer/render_view.h" +#include "third_party/WebKit/WebKit/chromium/public/WebFileChooserCompletion.h" +#include "third_party/WebKit/WebKit/chromium/public/WebFileChooserParams.h" #include "webkit/glue/plugins/pepper_plugin_instance.h" #if defined(OS_MACOSX) @@ -274,3 +276,8 @@ pepper::PluginDelegate::PlatformAudio* PepperPluginDelegateImpl::CreateAudio( } } +bool PepperPluginDelegateImpl::RunFileChooser( + const WebKit::WebFileChooserParams& params, + WebKit::WebFileChooserCompletion* chooser_completion) { + return render_view_->runFileChooser(params, chooser_completion); +} diff --git a/chrome/renderer/pepper_plugin_delegate_impl.h b/chrome/renderer/pepper_plugin_delegate_impl.h index fa9fa91..2aa3186 100644 --- a/chrome/renderer/pepper_plugin_delegate_impl.h +++ b/chrome/renderer/pepper_plugin_delegate_impl.h @@ -19,6 +19,11 @@ namespace pepper { class PluginInstance; } +namespace WebKit { +class WebFileChooserCompletion; +struct WebFileChooserParams; +} + class PepperPluginDelegateImpl : public pepper::PluginDelegate, public base::SupportsWeakPtr<PepperPluginDelegateImpl> { @@ -43,6 +48,9 @@ class PepperPluginDelegateImpl int total, bool final_result); virtual void DidChangeSelectedFindResult(int identifier, int index); + virtual bool RunFileChooser( + const WebKit::WebFileChooserParams& params, + WebKit::WebFileChooserCompletion* chooser_completion); private: // Pointer to the RenderView that owns us. |