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

Issue 484603004: New C++ -> Java enum build rule + parser/generator. (Closed)

Created:
6 years, 4 months ago by mkosiba (inactive)
Modified:
6 years, 3 months ago
Reviewers:
Sami, jam, Ted C, Yaron, brettw, sky
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, cmp
Project:
chromium
Visibility:
Public.

Description

New C++ -> Java enum build rule + parser/generator. This adds a new build rule for generating Java constants for C++ enums. BUG=405532 TBR=brettw@chromium.org Committed: https://crrev.com/9610607d5adf4afd2ad821c94434cd749041268a Cr-Commit-Position: refs/heads/master@{#294153}

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Patch Set 3 : fixed aosp bot and added gn rule #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+573 lines, -115 lines) Patch
M android_webview/java_library_common.mk View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A build/android/gyp/java_cpp_enum.py View 1 2 3 1 chunk +237 lines, -0 lines 0 comments Download
A build/android/gyp/java_cpp_enum_tests.py View 1 1 chunk +163 lines, -0 lines 0 comments Download
A build/android/java_cpp_enum.gypi View 1 1 chunk +59 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
M build/gyp_chromium View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 2 chunks +7 lines, -17 lines 0 comments Download
D ui/android/java/BitmapFormat.template View 1 chunk +0 lines, -14 lines 0 comments Download
D ui/android/java/WindowOpenDisposition.template View 1 1 chunk +0 lines, -11 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java View 1 2 chunks +9 lines, -9 lines 0 comments Download
M ui/android/ui_android.gyp View 1 1 chunk +6 lines, -14 lines 0 comments Download
M ui/base/window_open_disposition.h View 1 1 chunk +16 lines, -5 lines 0 comments Download
D ui/base/window_open_disposition_list.h View 1 1 chunk +0 lines, -21 lines 0 comments Download
D ui/gfx/android/bitmap_config_list.h View 1 chunk +0 lines, -15 lines 0 comments Download
M ui/gfx/android/java_bitmap.h View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
mkosiba (inactive)
6 years, 4 months ago (2014-08-19 14:13:37 UTC) #1
jam
this looks great, thank you. lgtm please add a tracking bug for this work. we ...
6 years, 4 months ago (2014-08-19 19:44:34 UTC) #2
Yaron
While I like this change because the c++ code is cleaner, and overall there's less ...
6 years, 4 months ago (2014-08-20 05:52:02 UTC) #3
mkosiba (inactive)
On 2014/08/19 19:44:34, jam wrote: > this looks great, thank you. > > lgtm > ...
6 years, 4 months ago (2014-08-20 14:07:53 UTC) #4
jam
On 2014/08/20 05:52:02, Yaron wrote: > While I like this change because the c++ code ...
6 years, 4 months ago (2014-08-20 18:28:53 UTC) #5
Yaron
On Wed, Aug 20, 2014 at 11:28 AM, <jam@chromium.org> wrote: > On 2014/08/20 05:52:02, Yaron ...
6 years, 4 months ago (2014-08-21 02:26:11 UTC) #6
mkosiba (inactive)
right. So I changed this to be 'comment-driven' since that makes it the most obvious ...
6 years, 3 months ago (2014-09-02 16:00:57 UTC) #7
Yaron
lgtm
6 years, 3 months ago (2014-09-03 01:41:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/484603004/20001
6 years, 3 months ago (2014-09-03 08:45:16 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 10:45:34 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/11807)
6 years, 3 months ago (2014-09-03 10:50:12 UTC) #13
mkosiba (inactive)
I had to make a couple of minor changes to support gn. This is my ...
6 years, 3 months ago (2014-09-03 16:27:23 UTC) #15
Sami
Cool, ui/gfx lgtm with nits. https://codereview.chromium.org/484603004/diff/40001/ui/gfx/android/java_bitmap.cc File ui/gfx/android/java_bitmap.cc (right): https://codereview.chromium.org/484603004/diff/40001/ui/gfx/android/java_bitmap.cc#newcode1 ui/gfx/android/java_bitmap.cc:1: // Copyright (c) 2013 ...
6 years, 3 months ago (2014-09-03 19:04:59 UTC) #16
Ted C
On 2014/09/03 19:04:59, Sami wrote: > Cool, ui/gfx lgtm with nits. > > https://codereview.chromium.org/484603004/diff/40001/ui/gfx/android/java_bitmap.cc > ...
6 years, 3 months ago (2014-09-03 19:37:36 UTC) #17
brettw
https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni#newcode302 build/config/android/rules.gni:302: outputs += [gen_dir + "/" + output] The thing ...
6 years, 3 months ago (2014-09-03 21:23:39 UTC) #18
mkosiba (inactive)
https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni#newcode302 build/config/android/rules.gni:302: outputs += [gen_dir + "/" + output] On 2014/09/03 ...
6 years, 3 months ago (2014-09-04 11:31:22 UTC) #19
mkosiba (inactive)
ping?
6 years, 3 months ago (2014-09-08 08:51:53 UTC) #20
brettw
https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni#newcode302 build/config/android/rules.gni:302: outputs += [gen_dir + "/" + output] Oh, sorry. ...
6 years, 3 months ago (2014-09-08 19:56:15 UTC) #21
mkosiba (inactive)
https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/484603004/diff/40001/build/config/android/rules.gni#newcode302 build/config/android/rules.gni:302: outputs += [gen_dir + "/" + output] On 2014/09/08 ...
6 years, 3 months ago (2014-09-09 09:00:12 UTC) #22
mkosiba (inactive)
sky@chromium.org: Please rubber-stamp ui/base
6 years, 3 months ago (2014-09-09 09:00:56 UTC) #24
sky
LGTM
6 years, 3 months ago (2014-09-09 15:48:17 UTC) #25
mkosiba (inactive)
brett - I'm going to land this assuming you have no other feedback on the ...
6 years, 3 months ago (2014-09-10 09:35:03 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/484603004/80001
6 years, 3 months ago (2014-09-10 09:37:58 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/9940)
6 years, 3 months ago (2014-09-10 09:43:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/484603004/80001
6 years, 3 months ago (2014-09-10 09:54:04 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001) as e4601e00b4574b60405f419448d78d47eff92e7b
6 years, 3 months ago (2014-09-10 10:19:27 UTC) #33
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/9610607d5adf4afd2ad821c94434cd749041268a Cr-Commit-Position: refs/heads/master@{#294153}
6 years, 3 months ago (2014-09-10 10:56:24 UTC) #34
brettw
6 years, 3 months ago (2014-09-11 17:37:02 UTC) #35
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698