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

Issue 12049030: Initial commit for Chrome.* APIs in Dart (Closed)

Created:
7 years, 11 months ago by sashab
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Initial commit for Chrome.* APIs in Dart Added the initial wrappings for the Chrome.* APIs that use the JS() function. Only chrome.app.window and chrome.app.runtime are wrapped for now. Also added "dart:chrome" to the compiler's list of libraries allowed to use convertDartClosureToJS(), and other internal library functions. Committed: https://code.google.com/p/dart/source/detail?r=17743

Patch Set 1 #

Total comments: 28

Patch Set 2 : Updated all types to use JS objects only #

Patch Set 3 : Moved compiler changes out & added new chrome_dart2js.dart file. #

Patch Set 4 : Renamed _utils.dart to utils.dart #

Total comments: 25

Patch Set 5 : Fixed some code style issues #

Patch Set 6 : Removed getMember() and setMember(), replacing with direct calls to JS() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1942 lines, -58 lines) Patch
M sdk/lib/chrome/dart2js/chrome_dart2js.dart View 1 2 3 4 5 2 chunks +959 lines, -20 lines 0 comments Download
A tools/dom/src/chrome/app.runtime.dart View 1 2 3 4 5 1 chunk +257 lines, -0 lines 0 comments Download
A tools/dom/src/chrome/app.window.dart View 1 2 3 4 5 1 chunk +359 lines, -0 lines 0 comments Download
A tools/dom/src/chrome/chrome.dart View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
D tools/dom/src/chrome/sample.dart View 1 chunk +0 lines, -37 lines 0 comments Download
A tools/dom/src/chrome/utils.dart View 1 2 3 4 5 1 chunk +295 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dart2js/chrome_dart2js.darttemplate View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
blois
Some quick comments before I head out to give you something to start on! https://codereview.chromium.org/12049030/diff/1/sdk/lib/_internal/compiler/implementation/compiler.dart ...
7 years, 11 months ago (2013-01-23 02:06:12 UTC) #1
sashab
Some changes due to feedback, mainly: - Moved compiler change to its own issue (https://codereview.chromium.org/12051031) ...
7 years, 11 months ago (2013-01-23 04:45:34 UTC) #2
Emily Fortuna
another pass through for dart-ification recommendations. https://codereview.chromium.org/12049030/diff/1/tools/dom/src/chrome/_utils.dart File tools/dom/src/chrome/_utils.dart (right): https://codereview.chromium.org/12049030/diff/1/tools/dom/src/chrome/_utils.dart#newcode254 tools/dom/src/chrome/_utils.dart:254: class $Event { ...
7 years, 11 months ago (2013-01-23 19:28:04 UTC) #3
vsm
Nice start! A few more comments.... https://chromiumcodereview.appspot.com/12049030/diff/6008/tools/dom/src/chrome/app.runtime.dart File tools/dom/src/chrome/app.runtime.dart (right): https://chromiumcodereview.appspot.com/12049030/diff/6008/tools/dom/src/chrome/app.runtime.dart#newcode12 tools/dom/src/chrome/app.runtime.dart:12: // A WebIntents ...
7 years, 11 months ago (2013-01-23 20:44:50 UTC) #4
sashab
Fixed some styling issues. - Is it worth getting rid of getMember() and setMember()? - ...
7 years, 11 months ago (2013-01-23 22:24:53 UTC) #5
sashab
Added another comment. https://codereview.chromium.org/12049030/diff/6008/tools/dom/src/chrome/utils.dart File tools/dom/src/chrome/utils.dart (right): https://codereview.chromium.org/12049030/diff/6008/tools/dom/src/chrome/utils.dart#newcode55 tools/dom/src/chrome/utils.dart:55: } The other reason I want ...
7 years, 11 months ago (2013-01-24 22:21:33 UTC) #6
blois
7 years, 11 months ago (2013-01-26 00:45:00 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698