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

Issue 2815103004: Android: convert kEnumName to ENUM_NAME in java_cpp_enum.py. (Closed)

Created:
3 years, 8 months ago by estevenson
Modified:
3 years, 8 months ago
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dominickn+watch_chromium.org, feature-media-reviews_chromium.org, jam, jbudorick+watch_chromium.org, mikecase+watch_chromium.org, mlamouri+watch-media_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: convert kEnumName to ENUM_NAME in java_cpp_enum.py. Since the Blink rename, enum entry names now use the kCamelCase naming convention instead of SHOUTY_CASE. This doesn't match well with Java naming conventions and Java constants created by java_cpp_enum.py look out of place with the rest of the Java codebase. This CL modifies java_cpp_enum.py so that C++ enum naming conventions don't leak into the Java side, specifically translating kCamelCase and CamelCase enum entries to SHOUTY_CASE. BUG=710335 Review-Url: https://codereview.chromium.org/2815103004 Cr-Commit-Position: refs/heads/master@{#464661} Committed: https://chromium.googlesource.com/chromium/src/+/23b8f65ce75fc2ff04a28cb5a940861c134e0797

Patch Set 1 #

Patch Set 2 : Update comments #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : Address agrieve@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -93 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/WebViewContentsClientAdapter.java View 2 chunks +8 lines, -8 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java View 1 chunk +1 line, -1 line 0 comments Download
M build/android/gyp/java_cpp_enum.py View 1 2 3 3 chunks +41 lines, -2 lines 0 comments Download
M build/android/gyp/java_cpp_enum_tests.py View 1 5 chunks +136 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInfo.java View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java View 6 chunks +8 lines, -8 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappModeTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkInfoTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappDataStorageTest.java View 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 8 chunks +15 lines, -15 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeUtils.java View 3 chunks +21 lines, -21 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/CodecProfileLevelList.java View 7 chunks +12 lines, -12 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecUtil.java View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
estevenson
ptal Andrew!
3 years, 8 months ago (2017-04-13 12:12:40 UTC) #9
agrieve
lgtm. Glad there's tests :) https://codereview.chromium.org/2815103004/diff/40001/build/android/gyp/java_cpp_enum.py File build/android/gyp/java_cpp_enum.py (right): https://codereview.chromium.org/2815103004/diff/40001/build/android/gyp/java_cpp_enum.py#newcode119 build/android/gyp/java_cpp_enum.py:119: if isinstance(v, basestring): nit: ...
3 years, 8 months ago (2017-04-13 13:52:35 UTC) #12
estevenson
torne@chromium.org: Please review changes in //android_webview dalecurtis@chromium.org: Please review changes in //media dtrainor@chromium.org: Please review ...
3 years, 8 months ago (2017-04-13 14:11:14 UTC) #14
Torne
android_webview LGTM
3 years, 8 months ago (2017-04-13 16:05:56 UTC) #15
DaleCurtis
media/ lgtm
3 years, 8 months ago (2017-04-13 20:48:49 UTC) #16
David Trainor- moved to gerrit
chrome/ lgtm and content/ lgtm
3 years, 8 months ago (2017-04-14 00:05:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2815103004/60001
3 years, 8 months ago (2017-04-14 00:53:29 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 02:41:11 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/23b8f65ce75fc2ff04a28cb5a940...

Powered by Google App Engine
This is Rietveld 408576698