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

Issue 2584513006: Split out non-auto-generatable externs from auto generated ones. (Closed)

Created:
4 years ago by David Tseng
Modified:
3 years, 11 months ago
Reviewers:
Devlin, Dan Beam
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, oshima+watch_chromium.org, aboxhall+watch_chromium.org, jlklein+watch-closure_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-closure_chromium.org, dmazzoni+watch_chromium.org, dmazzoni, aboxhall
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split out non-auto-generatable externs from auto generated ones. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : Split out non-auto-generatable externs from auto generated ones. #

Patch Set 3 : Split out non-auto-generatable externs from auto generated ones. #

Patch Set 4 : Use bound enum values. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -1010 lines) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_object_constructor_installer.js View 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/base_automation_handler.js View 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js View 21 chunks +26 lines, -26 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/find_handler.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions.js View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/tabs_automation_handler.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/tools/check_chromevox.py View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/automation.idl View 6 chunks +10 lines, -226 lines 0 comments Download
M third_party/closure_compiler/externs/OWNERS View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/closure_compiler/externs/automation.js View 3 chunks +84 lines, -623 lines 0 comments Download
A + third_party/closure_compiler/externs/automation_custom.js View 1 2 6 chunks +15 lines, -126 lines 0 comments Download

Messages

Total messages: 10 (7 generated)
David Tseng
This was kind of a pain...various issues with the extension system. Noted here in case ...
4 years ago (2016-12-15 22:43:02 UTC) #4
Dan Beam
On 2016/12/15 22:43:02, David Tseng wrote: > This was kind of a pain...various issues with ...
4 years ago (2016-12-16 01:48:59 UTC) #9
chromium-reviews
4 years ago (2016-12-16 21:47:33 UTC) #10
dbeam@chromium.org writes:

> On 2016/12/15 22:43:02, David Tseng wrote:
>> This was kind of a pain...various issues with the extension system. Noted  
>> here
>> in case anyone needs to do this in the future:
>> - externs for enums are a lie; the extension system doesn't actually  
>> install
> the
>> enum key/values anywhere
>
> I didn't really get past this point in the list because I don't understand  
> what
> you mean here.
>
> In settings, we use various enums in an IDL:
>
https://cs.chromium.org/chromium/src/chrome/common/extensions/api/settings_pr...
>
> That get turned into enums in our externs JS:
>
https://cs.chromium.org/chromium/src/third_party/closure_compiler/externs/set...
>
> And are used at runtime:
>
https://cs.chromium.org/chromium/src/ui/webui/resources/cr_elements/policy/cr...
>
> So I'm confused at to what this point is saying.  Am I thinking of some  
> other,
> similar but different concept?
>
Confused me as well so I dug and found:
2ba3c88d6
which rdevlin wrote and added this missing feature. chrome.automation
predates that by at least a year so we actually added the custom binding
ourselves. I'll find some burn time to write a script to convert all of
those instances to conform to capped snake casing I guess. But, not for
this cl.

 
>> - prototypes are just ignored except for constructors
>> - object constructors ignore constructor arguments
>> - all bets are off if you do anything in the js custom bindings
>> - the source of truth is not the idl/json, but the bindings stated under
>> chrome/renderer/resources/extensions/
>> - optional args that proceed callbacks are flagged as warnings
>
>> Finally, would be nice to not check in auto generated code.
>
> https://codereview.chromium.org/2584513006/


-- 

http://www.example.com

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698