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

Issue 9728001: Make the file chooser use PP_ArrayOutput (Closed)

Created:
8 years, 9 months ago by brettw
Modified:
8 years, 9 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

New file chooser interface that uses the new PP_ArrayOutput feature. This also changes PP_ArrayOutput to be pass-by-value. This keeps backwards compat for the old interface. It fixes some bugs in the callback system that I found when working on the patch and adds some new machinery for doing array output in the proxy. It also re-enables the file chooser feature which was recently broken. BUG=118857 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129022

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Patch Set 5 : Review comments #

Patch Set 6 : Whitespace #

Patch Set 7 : Try run fixes #

Patch Set 8 : deps #

Total comments: 1

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+862 lines, -188 lines) Patch
M ppapi/api/dev/ppb_file_chooser_dev.idl View 1 2 3 chunks +29 lines, -1 line 0 comments Download
M ppapi/api/pp_array_output.idl View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/api/trusted/ppb_file_chooser_trusted.idl View 2 chunks +29 lines, -1 line 0 comments Download
M ppapi/c/dev/ppb_file_chooser_dev.h View 4 chunks +22 lines, -17 lines 0 comments Download
M ppapi/c/trusted/ppb_file_chooser_trusted.h View 4 chunks +14 lines, -4 lines 0 comments Download
M ppapi/cpp/array_output.h View 3 chunks +5 lines, -1 line 0 comments Download
M ppapi/cpp/completion_callback.h View 2 chunks +5 lines, -1 line 0 comments Download
M ppapi/cpp/dev/file_chooser_dev.h View 2 chunks +41 lines, -13 lines 0 comments Download
M ppapi/cpp/dev/file_chooser_dev.cc View 1 2 3 4 5 6 7 8 3 chunks +66 lines, -16 lines 0 comments Download
M ppapi/cpp/output_traits.h View 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/cpp/trusted/file_chooser_trusted.h View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/cpp/trusted/file_chooser_trusted.cc View 1 2 3 4 2 chunks +29 lines, -10 lines 0 comments Download
M ppapi/examples/file_chooser/file_chooser.cc View 1 chunk +6 lines, -9 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/DEPS View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/proxy/enter_proxy.h View 1 2 chunks +12 lines, -34 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_file_chooser_proxy.h View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_file_chooser_proxy.cc View 9 chunks +86 lines, -34 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 chunk +4 lines, -2 lines 0 comments Download
A ppapi/proxy/proxy_array_output.h View 1 2 3 4 5 6 7 1 chunk +138 lines, -0 lines 0 comments Download
A ppapi/proxy/proxy_array_output.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A ppapi/shared_impl/array_writer.h View 1 2 3 4 5 6 7 1 chunk +98 lines, -0 lines 0 comments Download
A ppapi/shared_impl/array_writer.cc View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_file_chooser_api.h View 1 chunk +15 lines, -4 lines 0 comments Download
M ppapi/thunk/ppb_file_chooser_thunk.cc View 1 2 3 4 5 1 chunk +63 lines, -14 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_chooser_impl.h View 3 chunks +21 lines, -6 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_chooser_impl.cc View 5 chunks +44 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
brettw
8 years, 9 months ago (2012-03-20 00:31:36 UTC) #1
brettw
This fixes the file chooser and is am M19 blocker.
8 years, 9 months ago (2012-03-26 16:12:30 UTC) #2
viettrungluu
http://codereview.chromium.org/9728001/diff/32/ppapi/cpp/dev/file_chooser_dev.cc File ppapi/cpp/dev/file_chooser_dev.cc (right): http://codereview.chromium.org/9728001/diff/32/ppapi/cpp/dev/file_chooser_dev.cc#newcode52 ppapi/cpp/dev/file_chooser_dev.cc:52: } else if (has_interface<PPB_FileChooser_Dev_0_5>()) { Nit: no |else| needed. ...
8 years, 9 months ago (2012-03-26 16:55:18 UTC) #3
brettw
New snap up PTAL http://codereview.chromium.org/9728001/diff/32/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): http://codereview.chromium.org/9728001/diff/32/ppapi/proxy/ppapi_messages.h#newcode681 ppapi/proxy/ppapi_messages.h:681: PP_Bool /* save_as */, On ...
8 years, 9 months ago (2012-03-26 17:08:05 UTC) #4
viettrungluu
Oops, missed something the first time around. LGTM with that fixed. http://codereview.chromium.org/9728001/diff/11008/ppapi/cpp/dev/file_chooser_dev.cc File ppapi/cpp/dev/file_chooser_dev.cc (right): ...
8 years, 9 months ago (2012-03-26 19:51:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9728001/9006
8 years, 9 months ago (2012-03-26 19:58:46 UTC) #6
commit-bot: I haz the power
8 years, 9 months ago (2012-03-26 19:59:10 UTC) #7
Presubmit check for 9728001-9006 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change requires manual test instructions to QA team, add
TEST=[instructions].

** Presubmit Warnings **
Missing PPAPI header, no change or skipped generation?

***************
  ppapi/c/pp_array_output.idl
***************

Presubmit checks took 4.3s to calculate.

Powered by Google App Engine
This is Rietveld 408576698