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

Issue 11958026: Stubbing out the initial library for Chrome application support. (Closed)

Created:
7 years, 11 months ago by blois
Modified:
7 years, 11 months ago
Reviewers:
vsm, ahe, sashab, sashab1, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Stubbing out the initial library for Chrome application support. This adds the core skeleton of Chrome application support with a sample function that allows creating a new window (in dart2js). BUG= Committed: https://code.google.com/p/dart/source/detail?r=17299

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Review feedback #

Total comments: 11

Patch Set 4 : Adding tests. #

Patch Set 5 : Review feedback #

Patch Set 6 : Removing native support for dart:chrome #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -18 lines) Patch
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 chunk +7 lines, -0 lines 0 comments Download
A sdk/lib/chrome/dart2js/chrome_dart2js.dart View 1 2 3 4 1 chunk +46 lines, -0 lines 2 comments Download
A + sdk/lib/chrome/dartium/chrome_dartium.dart View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
A + tests/chrome/chrome.status View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
A tests/chrome/sample_test.dart View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M tools/create_sdk.py View 1 chunk +8 lines, -7 lines 0 comments Download
M tools/dom/scripts/dartdomgenerator.py View 1 chunk +1 line, -1 line 0 comments Download
A tools/dom/src/chrome/sample.dart View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A + tools/dom/templates/html/dart2js/chrome_dart2js.darttemplate View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
A + tools/dom/templates/html/dartium/chrome_dartium.darttemplate View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M tools/test.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
blois
7 years, 11 months ago (2013-01-17 01:55:04 UTC) #1
sashab
Works with the following sample app: import 'dart:chrome' as chrome; void main() { chrome.app.window.create('chrome_app.html'); } ...
7 years, 11 months ago (2013-01-17 02:56:17 UTC) #2
sashab
https://codereview.chromium.org/11958026/diff/7001/sdk/lib/chrome/dart2js/chrome_dart2js.dart File sdk/lib/chrome/dart2js/chrome_dart2js.dart (right): https://codereview.chromium.org/11958026/diff/7001/sdk/lib/chrome/dart2js/chrome_dart2js.dart#newcode21 sdk/lib/chrome/dart2js/chrome_dart2js.dart:21: JS('void', 'chrome.app.window.create(#)'); Should be JS('void', 'chrome.app.window.create(#)', url); This will ...
7 years, 11 months ago (2013-01-17 02:56:47 UTC) #3
vsm
lgtm! https://codereview.chromium.org/11958026/diff/7001/tools/dom/src/chrome/sample.dart File tools/dom/src/chrome/sample.dart (right): https://codereview.chromium.org/11958026/diff/7001/tools/dom/src/chrome/sample.dart#newcode8 tools/dom/src/chrome/sample.dart:8: class ChromeApp { Internal constructor for this class ...
7 years, 11 months ago (2013-01-17 15:31:28 UTC) #4
blois
https://codereview.chromium.org/11958026/diff/7001/sdk/lib/chrome/dart2js/chrome_dart2js.dart File sdk/lib/chrome/dart2js/chrome_dart2js.dart (right): https://codereview.chromium.org/11958026/diff/7001/sdk/lib/chrome/dart2js/chrome_dart2js.dart#newcode21 sdk/lib/chrome/dart2js/chrome_dart2js.dart:21: JS('void', 'chrome.app.window.create(#)'); On 2013/01/17 02:56:47, sasha_b wrote: > Should ...
7 years, 11 months ago (2013-01-17 18:03:20 UTC) #5
blois
+ngeoffray & ahe for compiler changes.
7 years, 11 months ago (2013-01-17 18:04:07 UTC) #6
ahe
Please add a test. https://codereview.chromium.org/11958026/diff/9002/sdk/lib/_internal/compiler/implementation/native_handler.dart File sdk/lib/_internal/compiler/implementation/native_handler.dart (right): https://codereview.chromium.org/11958026/diff/9002/sdk/lib/_internal/compiler/implementation/native_handler.dart#newcode458 sdk/lib/_internal/compiler/implementation/native_handler.dart:458: || libraryName == 'dart:chrome' Why ...
7 years, 11 months ago (2013-01-17 18:41:27 UTC) #7
blois
https://codereview.chromium.org/11958026/diff/9002/sdk/lib/_internal/compiler/implementation/native_handler.dart File sdk/lib/_internal/compiler/implementation/native_handler.dart (right): https://codereview.chromium.org/11958026/diff/9002/sdk/lib/_internal/compiler/implementation/native_handler.dart#newcode458 sdk/lib/_internal/compiler/implementation/native_handler.dart:458: || libraryName == 'dart:chrome' On 2013/01/17 18:41:27, ahe wrote: ...
7 years, 11 months ago (2013-01-17 21:03:30 UTC) #8
ahe
https://codereview.chromium.org/11958026/diff/9002/sdk/lib/_internal/compiler/implementation/native_handler.dart File sdk/lib/_internal/compiler/implementation/native_handler.dart (right): https://codereview.chromium.org/11958026/diff/9002/sdk/lib/_internal/compiler/implementation/native_handler.dart#newcode458 sdk/lib/_internal/compiler/implementation/native_handler.dart:458: || libraryName == 'dart:chrome' On 2013/01/17 21:03:30, blois wrote: ...
7 years, 11 months ago (2013-01-17 22:06:55 UTC) #9
ahe
7 years, 11 months ago (2013-01-18 12:52:15 UTC) #10
Compiler changes, LGTM!

https://codereview.chromium.org/11958026/diff/18001/sdk/lib/chrome/dart2js/ch...
File sdk/lib/chrome/dart2js/chrome_dart2js.dart (right):

https://codereview.chromium.org/11958026/diff/18001/sdk/lib/chrome/dart2js/ch...
sdk/lib/chrome/dart2js/chrome_dart2js.dart:37: }
You could move the above checks to the AppModule class' constructor, and pass in
app as a final field to this class.

https://codereview.chromium.org/11958026/diff/18001/sdk/lib/chrome/dart2js/ch...
sdk/lib/chrome/dart2js/chrome_dart2js.dart:41: }
You might want to check this in the constructor of this class.

Powered by Google App Engine
This is Rietveld 408576698