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

Issue 11417010: Add support for generating thunk source from IDL. (Closed)

Created:
8 years, 1 month ago by teravest
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add support for generating thunk source from IDL. This introduces a few new IDL attributes: generate_thunk - Enables thunk generation for an IDL file. create_func - Overrides the guessed create function name. on_failure - Overrides the default return value on failure. report_errors - Allows error reporting to be disabled. By using these attributes, we can generate _thunk.cc files for many IDL files. I'll send CLs for moving the thunks separately, as I found it tiring to review them all in a big lump. I have PPB_Widget_Dev here as an example. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168450

Patch Set 1 #

Patch Set 2 : Removed an unnecessary change #

Total comments: 26

Patch Set 3 : Handled Noel's feedback for patch set 2. #

Patch Set 4 : Fixed dmichael's comments. #

Total comments: 2

Patch Set 5 : minor style update #

Patch Set 6 : presubmit: Allow IDL generate_thunk updates #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M ppapi/api/dev/ppb_console_dev.idl View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_console_thunk.cc View 1 2 3 4 5 6 2 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
teravest
I'm able to generate about 30 _thunk.cc files from IDL with this change, but I ...
8 years, 1 month ago (2012-11-15 18:31:26 UTC) #1
noelallen1
Appart from mising LF, the generator changes LGTM. I'll assume dmichael or someone else on ...
8 years, 1 month ago (2012-11-15 22:03:18 UTC) #2
teravest
I'm not sure what to do for presubmit.py; I do get this error when making ...
8 years, 1 month ago (2012-11-16 17:33:35 UTC) #3
dmichael (off chromium)
https://codereview.chromium.org/11417010/diff/2001/ppapi/generators/idl_c_proto.py File ppapi/generators/idl_c_proto.py (right): https://codereview.chromium.org/11417010/diff/2001/ppapi/generators/idl_c_proto.py#newcode586 ppapi/generators/idl_c_proto.py:586: while args[0][0] == ')': Can you maybe put an ...
8 years, 1 month ago (2012-11-16 18:24:44 UTC) #4
teravest
https://codereview.chromium.org/11417010/diff/2001/ppapi/generators/idl_c_proto.py File ppapi/generators/idl_c_proto.py (right): https://codereview.chromium.org/11417010/diff/2001/ppapi/generators/idl_c_proto.py#newcode586 ppapi/generators/idl_c_proto.py:586: while args[0][0] == ')': On 2012/11/16 18:24:44, dmichael wrote: ...
8 years, 1 month ago (2012-11-16 18:52:36 UTC) #5
noelallen1
Still LGTM. https://codereview.chromium.org/11417010/diff/2001/ppapi/generators/idl_thunk.py File ppapi/generators/idl_thunk.py (right): https://codereview.chromium.org/11417010/diff/2001/ppapi/generators/idl_thunk.py#newcode168 ppapi/generators/idl_thunk.py:168: args - List of arguments for the ...
8 years, 1 month ago (2012-11-16 20:27:28 UTC) #6
dmichael (off chromium)
lgtm https://codereview.chromium.org/11417010/diff/8001/ppapi/generators/idl_thunk.py File ppapi/generators/idl_thunk.py (right): https://codereview.chromium.org/11417010/diff/8001/ppapi/generators/idl_thunk.py#newcode280 ppapi/generators/idl_thunk.py:280: out.Write('%s\n' % cgen.Copyright(cright_node, True)) suggestion: "cpp_style=True", just so ...
8 years, 1 month ago (2012-11-16 20:37:02 UTC) #7
teravest
https://codereview.chromium.org/11417010/diff/8001/ppapi/generators/idl_thunk.py File ppapi/generators/idl_thunk.py (right): https://codereview.chromium.org/11417010/diff/8001/ppapi/generators/idl_thunk.py#newcode280 ppapi/generators/idl_thunk.py:280: out.Write('%s\n' % cgen.Copyright(cright_node, True)) On 2012/11/16 20:37:02, dmichael wrote: ...
8 years, 1 month ago (2012-11-16 20:39:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11417010/4003
8 years, 1 month ago (2012-11-16 20:42:15 UTC) #9
commit-bot: I haz the power
Presubmit check for 11417010-4003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-16 20:42:21 UTC) #10
teravest
8 years, 1 month ago (2012-11-16 21:22:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11417010/8003
8 years, 1 month ago (2012-11-16 21:35:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11417010/8003
8 years, 1 month ago (2012-11-17 14:15:14 UTC) #13
commit-bot: I haz the power
8 years, 1 month ago (2012-11-17 16:01:34 UTC) #14
Change committed as 168450

Powered by Google App Engine
This is Rietveld 408576698