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

Unified Diff: tools/dom/src/chrome/custom_dart/app_window.create.dart

Issue 12209045: Initial commit of generated dart:chrome app_window and app_runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ensuring latest copy is uploaded Created 7 years, 10 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
Index: tools/dom/src/chrome/custom_dart/app_window.create.dart
diff --git a/tools/dom/src/chrome/custom_dart/app_window.create.dart b/tools/dom/src/chrome/custom_dart/app_window.create.dart
new file mode 100644
index 0000000000000000000000000000000000000000..41a4670209638c440cd5f339c1f80d69fecd61df
--- /dev/null
+++ b/tools/dom/src/chrome/custom_dart/app_window.create.dart
@@ -0,0 +1,16 @@
+// 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.
+
+// TODO(sashab): This override is no longer needed once prefixes are removed.
+void create(String url,
+ [AppWindowCreateWindowOptions options,
+ void callback(AppWindowAppWindow created_window)]) {
+ void __proxy_callback(created_window) {
+ if (?callback)
+ callback(new AppWindowAppWindow._proxy(created_window));
+ }
+ JS('void', '#.create(#, #, #)', this._jsObject, url, convertArgument(options),
+ convertDartClosureToJS(__proxy_callback, 1));
+}
+

Powered by Google App Engine
This is Rietveld 408576698