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

Issue 2615773002: [Extensions Bindings] Add enum support (Closed)

Created:
3 years, 11 months ago by Devlin
Modified:
3 years, 11 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Add enum support We expose API enums on objects with in the API; this is mostly useful because our enum style is pretty wildly inconsistent (hacker_style, camelCase, and SCREAMING_STYLE are all used). This allows authors to use the enum directly by using chrome.foo.BarEnum.SOMETHING. Add support for this in native bindings. BUG=653596 Review-Url: https://codereview.chromium.org/2615773002 Cr-Commit-Position: refs/heads/master@{#442082} Committed: https://chromium.googlesource.com/chromium/src/+/e91bd78f8794bcd4bac686120da2932fc5f5e8b1

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -6 lines) Patch
M chrome/test/data/extensions/api_test/native_bindings/background.js View 1 1 chunk +5 lines, -3 lines 0 comments Download
M extensions/renderer/api_binding.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/renderer/api_binding.cc View 1 2 3 4 6 chunks +61 lines, -1 line 0 comments Download
M extensions/renderer/api_binding_unittest.cc View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download
M extensions/renderer/argument_spec.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/native_extension_bindings_system_unittest.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
Devlin
3 years, 11 months ago (2017-01-05 19:18:50 UTC) #10
jbroman
lgtm https://codereview.chromium.org/2615773002/diff/40001/extensions/renderer/api_binding.cc File extensions/renderer/api_binding.cc (right): https://codereview.chromium.org/2615773002/diff/40001/extensions/renderer/api_binding.cc#newcode215 extensions/renderer/api_binding.cc:215: for (const auto& entry : enums_) { This ...
3 years, 11 months ago (2017-01-05 22:31:24 UTC) #11
lazyboy
lgtm https://codereview.chromium.org/2615773002/diff/40001/extensions/renderer/api_binding.cc File extensions/renderer/api_binding.cc (right): https://codereview.chromium.org/2615773002/diff/40001/extensions/renderer/api_binding.cc#newcode32 extensions/renderer/api_binding.cc:32: if (base::IsAsciiDigit(original[0])) DCHECK(!original.empty()) CHECK might be too expensive ...
3 years, 11 months ago (2017-01-05 23:09:13 UTC) #12
Devlin
https://codereview.chromium.org/2615773002/diff/40001/extensions/renderer/api_binding.cc File extensions/renderer/api_binding.cc (right): https://codereview.chromium.org/2615773002/diff/40001/extensions/renderer/api_binding.cc#newcode32 extensions/renderer/api_binding.cc:32: if (base::IsAsciiDigit(original[0])) On 2017/01/05 23:09:13, lazyboy wrote: > DCHECK(!original.empty()) ...
3 years, 11 months ago (2017-01-06 22:33:52 UTC) #19
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/2615773002/80001
3 years, 11 months ago (2017-01-06 22:34:08 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 22:48:20 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/e91bd78f8794bcd4bac686120da2...

Powered by Google App Engine
This is Rietveld 408576698