summaryrefslogtreecommitdiffstats
path: root/ppapi/examples
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 23:59:39 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 23:59:39 +0000
commit4deeb43f8b7c1b21d3545228db86de2c73c9fd43 (patch)
tree9b44b6a5908d3948eb74d41f1dc69433c5a963d7 /ppapi/examples
parentc2a6aa323905a384677df735ccaa68ac700b1587 (diff)
downloadchromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.zip
chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.tar.gz
chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.tar.bz2
Implement proxying for FileRef and FileChooser.
This also changes the FileRef interface to remove the Query function, since there is no close function, there's no way to cancel the current request, which makes memory management of the info structure very difficult. Review URL: http://codereview.chromium.org/6519057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/examples')
-rw-r--r--ppapi/examples/file_chooser/file_chooser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/examples/file_chooser/file_chooser.cc b/ppapi/examples/file_chooser/file_chooser.cc
index 22af29f..fd8261d 100644
--- a/ppapi/examples/file_chooser/file_chooser.cc
+++ b/ppapi/examples/file_chooser/file_chooser.cc
@@ -18,7 +18,7 @@ class MyInstance : public pp::Instance {
callback_factory_.Initialize(this);
}
- virtual bool HandleEvent(const PP_InputEvent& event) {
+ virtual bool HandleInputEvent(const PP_InputEvent& event) {
switch (event.type) {
case PP_INPUTEVENT_TYPE_MOUSEDOWN: {
const PP_InputEvent_Mouse& mouse_event = event.u.mouse;
@@ -58,7 +58,7 @@ class MyInstance : public pp::Instance {
pp::FileRef_Dev file_ref = file_chooser->GetNextChosenFile();
while (!file_ref.is_null()) {
- Log(file_ref.GetPath());
+ Log(file_ref.GetName());
file_ref = file_chooser->GetNextChosenFile();
}