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

Side by Side Diff: tools/dom/src/chrome/app_window.dart

Issue 14400004: First try at removing ? from HTML. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reverted stupid things. Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Generated from namespace: app.window 5 // Generated from namespace: app.window
6 6
7 part of chrome; 7 part of chrome;
8 8
9 /** 9 /**
10 * Types 10 * Types
11 */ 11 */
12 12
13 class AppWindowCreateWindowOptions extends ChromeObject { 13 class AppWindowCreateWindowOptions extends ChromeObject {
14 /* 14 /*
15 * Public constructor 15 * Public constructor
16 */ 16 */
17 AppWindowCreateWindowOptions({String id, int defaultWidth, int defaultHeight, int defaultLeft, int defaultTop, int width, int height, int left, int top, int m inWidth, int minHeight, int maxWidth, int maxHeight, String type, String frame, AppWindowBounds bounds, bool transparentBackground, bool hidden, bool singleton} ) { 17 AppWindowCreateWindowOptions({String id, int defaultWidth, int defaultHeight, int defaultLeft, int defaultTop, int width, int height, int left, int top, int m inWidth, int minHeight, int maxWidth, int maxHeight, String type, String frame, AppWindowBounds bounds, bool transparentBackground, bool hidden, bool singleton} ) {
18 if (?id) 18 if (id != null)
19 this.id = id; 19 this.id = id;
20 if (?defaultWidth) 20 if (defaultWidth != null)
21 this.defaultWidth = defaultWidth; 21 this.defaultWidth = defaultWidth;
22 if (?defaultHeight) 22 if (defaultHeight != null)
23 this.defaultHeight = defaultHeight; 23 this.defaultHeight = defaultHeight;
24 if (?defaultLeft) 24 if (defaultLeft != null)
25 this.defaultLeft = defaultLeft; 25 this.defaultLeft = defaultLeft;
26 if (?defaultTop) 26 if (defaultTop != null)
27 this.defaultTop = defaultTop; 27 this.defaultTop = defaultTop;
28 if (?width) 28 if (width != null)
29 this.width = width; 29 this.width = width;
30 if (?height) 30 if (height != null)
31 this.height = height; 31 this.height = height;
32 if (?left) 32 if (left != null)
33 this.left = left; 33 this.left = left;
34 if (?top) 34 if (top != null)
35 this.top = top; 35 this.top = top;
36 if (?minWidth) 36 if (minWidth != null)
37 this.minWidth = minWidth; 37 this.minWidth = minWidth;
38 if (?minHeight) 38 if (minHeight != null)
39 this.minHeight = minHeight; 39 this.minHeight = minHeight;
40 if (?maxWidth) 40 if (maxWidth != null)
41 this.maxWidth = maxWidth; 41 this.maxWidth = maxWidth;
42 if (?maxHeight) 42 if (maxHeight != null)
43 this.maxHeight = maxHeight; 43 this.maxHeight = maxHeight;
44 if (?type) 44 if (type != null)
45 this.type = type; 45 this.type = type;
46 if (?frame) 46 if (frame != null)
47 this.frame = frame; 47 this.frame = frame;
48 if (?bounds) 48 if (bounds != null)
49 this.bounds = bounds; 49 this.bounds = bounds;
50 if (?transparentBackground) 50 if (transparentBackground != null)
51 this.transparentBackground = transparentBackground; 51 this.transparentBackground = transparentBackground;
52 if (?hidden) 52 if (hidden != null)
53 this.hidden = hidden; 53 this.hidden = hidden;
54 if (?singleton) 54 if (singleton != null)
55 this.singleton = singleton; 55 this.singleton = singleton;
56 } 56 }
57 57
58 /* 58 /*
59 * Private constructor 59 * Private constructor
60 */ 60 */
61 AppWindowCreateWindowOptions._proxy(_jsObject) : super._proxy(_jsObject); 61 AppWindowCreateWindowOptions._proxy(_jsObject) : super._proxy(_jsObject);
62 62
63 /* 63 /*
64 * Public accessors 64 * Public accessors
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 JS('void', '#.singleton = #', this._jsObject, singleton); 211 JS('void', '#.singleton = #', this._jsObject, singleton);
212 } 212 }
213 213
214 } 214 }
215 215
216 class AppWindowBounds extends ChromeObject { 216 class AppWindowBounds extends ChromeObject {
217 /* 217 /*
218 * Public constructor 218 * Public constructor
219 */ 219 */
220 AppWindowBounds({int left, int top, int width, int height}) { 220 AppWindowBounds({int left, int top, int width, int height}) {
221 if (?left) 221 if (left != null)
222 this.left = left; 222 this.left = left;
223 if (?top) 223 if (top != null)
224 this.top = top; 224 this.top = top;
225 if (?width) 225 if (width != null)
226 this.width = width; 226 this.width = width;
227 if (?height) 227 if (height != null)
228 this.height = height; 228 this.height = height;
229 } 229 }
230 230
231 /* 231 /*
232 * Private constructor 232 * Private constructor
233 */ 233 */
234 AppWindowBounds._proxy(_jsObject) : super._proxy(_jsObject); 234 AppWindowBounds._proxy(_jsObject) : super._proxy(_jsObject);
235 235
236 /* 236 /*
237 * Public accessors 237 * Public accessors
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 /// that takes effect. 445 /// that takes effect.
446 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 446 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
447 // for details. All rights reserved. Use of this source code is governed by a 447 // for details. All rights reserved. Use of this source code is governed by a
448 // BSD-style license that can be found in the LICENSE file. 448 // BSD-style license that can be found in the LICENSE file.
449 449
450 // TODO(sashab): This override is no longer needed once prefixes are removed. 450 // TODO(sashab): This override is no longer needed once prefixes are removed.
451 void create(String url, 451 void create(String url,
452 [AppWindowCreateWindowOptions options, 452 [AppWindowCreateWindowOptions options,
453 void callback(AppWindowAppWindow created_window)]) { 453 void callback(AppWindowAppWindow created_window)]) {
454 void __proxy_callback(created_window) { 454 void __proxy_callback(created_window) {
455 if (?callback) 455 if (callback != null)
456 callback(new AppWindowAppWindow._proxy(created_window)); 456 callback(new AppWindowAppWindow._proxy(created_window));
457 } 457 }
458 JS('void', '#.create(#, #, #)', this._jsObject, url, convertArgument(options ), 458 JS('void', '#.create(#, #, #)', this._jsObject, url, convertArgument(options ),
459 convertDartClosureToJS(__proxy_callback, 1)); 459 convertDartClosureToJS(__proxy_callback, 1));
460 } 460 }
461 461
462 /// Returns an $ref:AppWindow object for the current script context (ie 462 /// Returns an $ref:AppWindow object for the current script context (ie
463 /// JavaScript 'window' object). This can also be called on a handle to a 463 /// JavaScript 'window' object). This can also be called on a handle to a
464 /// script context for another page, for example: 464 /// script context for another page, for example:
465 /// otherWindow.chrome.app.window.current(). 465 /// otherWindow.chrome.app.window.current().
466 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 466 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
467 // for details. All rights reserved. Use of this source code is governed by a 467 // for details. All rights reserved. Use of this source code is governed by a
468 // BSD-style license that can be found in the LICENSE file. 468 // BSD-style license that can be found in the LICENSE file.
469 469
470 // TODO(sashab, kalman): Fix IDL parser to read function return values 470 // TODO(sashab, kalman): Fix IDL parser to read function return values
471 // correctly. Currently, it just reads void for all functions. 471 // correctly. Currently, it just reads void for all functions.
472 AppWindowAppWindow current() => 472 AppWindowAppWindow current() =>
473 new AppWindowAppWindow._proxy(JS('void', '#.current()', this._jsObject)); 473 new AppWindowAppWindow._proxy(JS('void', '#.current()', this._jsObject));
474 474
475 void initializeAppWindow(Object state) => JS('void', '#.initializeAppWindow(#) ', this._jsObject, convertArgument(state)); 475 void initializeAppWindow(Object state) => JS('void', '#.initializeAppWindow(#) ', this._jsObject, convertArgument(state));
476 476
477 API_app_window(this._jsObject) { 477 API_app_window(this._jsObject) {
478 onBoundsChanged = new Event_app_window_onBoundsChanged(JS('', '#.onBoundsCha nged', this._jsObject)); 478 onBoundsChanged = new Event_app_window_onBoundsChanged(JS('', '#.onBoundsCha nged', this._jsObject));
479 onClosed = new Event_app_window_onClosed(JS('', '#.onClosed', this._jsObject )); 479 onClosed = new Event_app_window_onClosed(JS('', '#.onClosed', this._jsObject ));
480 onMaximized = new Event_app_window_onMaximized(JS('', '#.onMaximized', this. _jsObject)); 480 onMaximized = new Event_app_window_onMaximized(JS('', '#.onMaximized', this. _jsObject));
481 onMinimized = new Event_app_window_onMinimized(JS('', '#.onMinimized', this. _jsObject)); 481 onMinimized = new Event_app_window_onMinimized(JS('', '#.onMinimized', this. _jsObject));
482 onRestored = new Event_app_window_onRestored(JS('', '#.onRestored', this._js Object)); 482 onRestored = new Event_app_window_onRestored(JS('', '#.onRestored', this._js Object));
483 } 483 }
484 } 484 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698