mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Move dart:chrome to dart:_chrome.
Turn off doc generation for dart:_chrome. R=efortuna@google.com Review URL: https://codereview.chromium.org//23654055 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27861 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
7abcea6d2a
commit
dcd741bd99
|
@ -5,7 +5,7 @@
|
|||
///
|
||||
/// For more information on these APIs, see the
|
||||
/// [chrome.* API documentation](http://developer.chrome.com/apps/api_index.html).
|
||||
library chrome;
|
||||
library _chrome;
|
||||
|
||||
import 'dart:_foreign_helper' show JS;
|
||||
import 'dart:_js_helper';
|
||||
|
@ -17,7 +17,7 @@ import 'dart:html';
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
// DO NOT EDIT
|
||||
// Auto-generated dart:chrome library.
|
||||
// Auto-generated dart:_chrome library.
|
||||
|
||||
|
||||
/* TODO(sashab): Add "show convertDartClosureToJS" once 'show' works. */
|
|
@ -5,12 +5,12 @@
|
|||
///
|
||||
/// For more information on these APIs, see the
|
||||
/// [Chrome APIs Documentation](http://developer.chrome.com/extensions/api_index.html)
|
||||
library chrome;
|
||||
library _chrome;
|
||||
|
||||
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
||||
// for details. All rights reserved. Use of this source code is governed by a
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
// DO NOT EDIT
|
||||
// Auto-generated dart:chrome library.
|
||||
// Auto-generated dart:_chrome library.
|
||||
|
|
@ -27,9 +27,9 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/async_patch.dart"),
|
||||
|
||||
"chrome": const LibraryInfo(
|
||||
"chrome/dart2js/chrome_dart2js.dart",
|
||||
maturity: Maturity.DEPRECATED,
|
||||
"_chrome": const LibraryInfo(
|
||||
"_chrome/dart2js/chrome_dart2js.dart",
|
||||
documented: false,
|
||||
category: "Client"),
|
||||
|
||||
"collection": const LibraryInfo(
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
library sample_test;
|
||||
import '../../pkg/unittest/lib/unittest.dart';
|
||||
import '../../pkg/unittest/lib/html_config.dart';
|
||||
import 'dart:chrome' as chrome;
|
||||
import 'dart:_chrome' as _chrome;
|
||||
|
||||
main() {
|
||||
useHtmlConfiguration();
|
||||
test('access', () {
|
||||
var window = chrome.app.window;
|
||||
expect(window is chrome.WindowModule, true);
|
||||
var window = _chrome.app.window;
|
||||
expect(window is _chrome.WindowModule, true);
|
||||
});
|
||||
|
||||
test('fails from browser', () {
|
||||
// APIs should not work in standard browser apps.
|
||||
expect(() {
|
||||
chrome.app.window.create('foo.html');
|
||||
_chrome.app.window.create('foo.html');
|
||||
}, throws);
|
||||
});
|
||||
}
|
|
@ -194,13 +194,13 @@ def Main(argv):
|
|||
|
||||
os.makedirs(join(LIB, 'html'))
|
||||
|
||||
for library in [join('_internal', 'compiler'),
|
||||
for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'),
|
||||
join('_internal', 'compiler'),
|
||||
join('_internal', 'dartdoc'),
|
||||
join('_internal', 'pub', 'resource'),
|
||||
join('_internal', 'lib'),
|
||||
'async', 'collection', '_collection_dev', 'convert',
|
||||
'core', 'crypto', 'io', 'isolate',
|
||||
join('chrome', 'dart2js'), join('chrome', 'dartium'),
|
||||
join('html', 'dart2js'), join('html', 'dartium'),
|
||||
join('html', 'html_common'),
|
||||
join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
|
||||
|
|
|
@ -17,10 +17,10 @@ COMPILER = "../../../third_party/chrome/tools/json_schema_compiler/compiler.py"
|
|||
API_DIR = "../../../third_party/chrome/idl/"
|
||||
|
||||
# The path to the custom overrides directory, containing override files.
|
||||
OVERRIDES_DIR = "../src/chrome/custom_dart/"
|
||||
OVERRIDES_DIR = "../src/_chrome/custom_dart/"
|
||||
|
||||
# The path to where the generated .dart files should be saved.
|
||||
OUTPUT_DIR = "../src/chrome/"
|
||||
OUTPUT_DIR = "../src/_chrome/"
|
||||
|
||||
# The path to where the output template file is. This file will be populated
|
||||
# with TEMPLATE_CONTENT, followed by the list of generated .dart files.
|
||||
|
@ -34,7 +34,7 @@ TEMPLATE_CONTENT = """
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
// DO NOT EDIT
|
||||
// Auto-generated dart:chrome library.
|
||||
// Auto-generated dart:_chrome library.
|
||||
|
||||
/// Native wrappers for the Chrome packaged app APIs.
|
||||
///
|
||||
|
@ -43,7 +43,7 @@ TEMPLATE_CONTENT = """
|
|||
///
|
||||
/// For more information on these APIs, see the
|
||||
/// [chrome.* API documentation](http://developer.chrome.com/apps/api_index.html).
|
||||
library chrome;
|
||||
library _chrome;
|
||||
|
||||
import 'dart:_foreign_helper' show JS;
|
||||
/* TODO(sashab): Add "show convertDartClosureToJS" once 'show' works. */
|
||||
|
@ -51,15 +51,15 @@ import 'dart:_js_helper';
|
|||
import 'dart:html_common';
|
||||
import 'dart:html';
|
||||
|
||||
part "$AUXILIARY_DIR/chrome/utils.dart";
|
||||
part "$AUXILIARY_DIR/chrome/chrome.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/utils.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/_chrome.dart";
|
||||
|
||||
// Generated files below this line.
|
||||
"""
|
||||
|
||||
# The format for adding files to TEMPLATE_CONTENT. Will be substituted with the
|
||||
# filename (not including the extension) of the IDL/JSON file.
|
||||
TEMPLATE_FILE_FORMAT = 'part "$AUXILIARY_DIR/chrome/%s.dart";'
|
||||
TEMPLATE_FILE_FORMAT = 'part "$AUXILIARY_DIR/_chrome/%s.dart";'
|
||||
|
||||
# A list of schema files to generate.
|
||||
# TODO(sashab): Later, use the ones from API_DIR/api.gyp and
|
||||
|
|
|
@ -21,10 +21,10 @@ import 'dart:_js_helper';
|
|||
import 'dart:html_common';
|
||||
import 'dart:html';
|
||||
|
||||
part "$AUXILIARY_DIR/chrome/utils.dart";
|
||||
part "$AUXILIARY_DIR/chrome/chrome.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/utils.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/_chrome.dart";
|
||||
|
||||
// Generated files below this line.
|
||||
part "$AUXILIARY_DIR/chrome/app_window.dart";
|
||||
part "$AUXILIARY_DIR/chrome/app_runtime.dart";
|
||||
part "$AUXILIARY_DIR/chrome/file_system.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/app_window.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/app_runtime.dart";
|
||||
part "$AUXILIARY_DIR/_chrome/file_system.dart";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
// DO NOT EDIT
|
||||
// Auto-generated dart:chrome library.
|
||||
// Auto-generated dart:_chrome library.
|
||||
|
||||
/// Native wrappers for the Chrome Packaged App APIs.
|
||||
///
|
||||
|
@ -12,4 +12,4 @@
|
|||
///
|
||||
/// For more information on these APIs, see the
|
||||
/// [Chrome APIs Documentation](http://developer.chrome.com/extensions/api_index.html)
|
||||
library chrome;
|
||||
library _chrome;
|
||||
|
|
Loading…
Reference in a new issue