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

Unified Diff: tools/dom/src/_chrome/chrome.dart

Issue 24438009: Adjust _chrome library name to point to correct file (_chrome.dart instead of chrome.dart). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/src/_chrome/_chrome.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/_chrome/chrome.dart
diff --git a/tools/dom/src/_chrome/chrome.dart b/tools/dom/src/_chrome/chrome.dart
deleted file mode 100644
index 2c02ae9f70712597adb115172bdbf127461ef894..0000000000000000000000000000000000000000
--- a/tools/dom/src/_chrome/chrome.dart
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2012, 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.
-
-part of chrome;
-
-// chrome.app
-class API_ChromeApp {
- /*
- * JS Variable
- */
- final Object _jsObject;
-
- /*
- * Members
- */
- API_app_window window;
- API_app_runtime runtime;
-
- /*
- * Constructor
- */
- API_ChromeApp(this._jsObject) {
- var window_object = JS('', '#.window', this._jsObject);
- if (window_object == null)
- throw new UnsupportedError('Not supported by current browser.');
- window = new API_app_window(window_object);
-
- var runtime_object = JS('', '#.runtime', this._jsObject);
- if (runtime_object == null)
- throw new UnsupportedError('Not supported by current browser.');
- runtime = new API_app_runtime(runtime_object);
- }
-}
-
-// chrome
-class API_Chrome {
- /*
- * JS Variable
- */
- Object _jsObject;
-
- /*
- * Members
- */
- API_ChromeApp app;
- API_file_system fileSystem;
-
- /*
- * Constructor
- */
- API_Chrome() {
- this._jsObject = JS("Object", "chrome");
- if (this._jsObject == null)
- throw new UnsupportedError('Not supported by current browser.');
-
- var app_object = JS('', '#.app', this._jsObject);
- if (app_object == null)
- throw new UnsupportedError('Not supported by current browser.');
- app = new API_ChromeApp(app_object);
-
- var file_system_object = JS('', '#.fileSystem', this._jsObject);
- if (file_system_object == null)
- throw new UnsupportedError('Not supported by current browser.');
- fileSystem = new API_file_system(file_system_object);
- }
-}
-
-// The final chrome objects
-final API_Chrome chrome = new API_Chrome();
« no previous file with comments | « tools/dom/src/_chrome/_chrome.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698