Chromium Code Reviews| Index: tools/dom/src/chrome/app_window.dart |
| diff --git a/tools/dom/src/chrome/app_window.dart b/tools/dom/src/chrome/app_window.dart |
| index fdcac46925e747ad7e1a93ca4e414b5eb07116b6..8ea4f0a0791f202c636bb60519c39fc39c31c67b 100644 |
| --- a/tools/dom/src/chrome/app_window.dart |
| +++ b/tools/dom/src/chrome/app_window.dart |
| @@ -10,6 +10,55 @@ part of chrome; |
| * Types |
| */ |
| +class AppWindowBounds extends ChromeObject { |
| + /* |
| + * Public constructor |
| + */ |
| + AppWindowBounds({int left, int top, int width, int height}) { |
| + if (?left) |
| + this.left = left; |
| + if (?top) |
| + this.top = top; |
| + if (?width) |
| + this.width = width; |
| + if (?height) |
| + this.height = height; |
| + } |
| + |
| + /* |
| + * Private constructor |
| + */ |
| + AppWindowBounds._proxy(_jsObject) : super._proxy(_jsObject); |
| + |
| + /* |
| + * Public accessors |
| + */ |
| + int get left => JS('int', '#.left', this._jsObject); |
| + |
| + void set left(int left) { |
| + JS('void', '#.left = #', this._jsObject, left); |
| + } |
| + |
| + int get top => JS('int', '#.top', this._jsObject); |
| + |
| + void set top(int top) { |
| + JS('void', '#.top = #', this._jsObject, top); |
| + } |
| + |
| + int get width => JS('int', '#.width', this._jsObject); |
| + |
| + void set width(int width) { |
| + JS('void', '#.width = #', this._jsObject, width); |
| + } |
| + |
| + int get height => JS('int', '#.height', this._jsObject); |
| + |
| + void set height(int height) { |
| + JS('void', '#.height = #', this._jsObject, height); |
| + } |
| + |
| +} |
| + |
| class AppWindowCreateWindowOptions extends ChromeObject { |
| /* |
| * Public constructor |
| @@ -213,55 +262,6 @@ class AppWindowCreateWindowOptions extends ChromeObject { |
| } |
| -class AppWindowBounds extends ChromeObject { |
| - /* |
| - * Public constructor |
| - */ |
| - AppWindowBounds({int left, int top, int width, int height}) { |
| - if (?left) |
| - this.left = left; |
| - if (?top) |
| - this.top = top; |
| - if (?width) |
| - this.width = width; |
| - if (?height) |
| - this.height = height; |
| - } |
| - |
| - /* |
| - * Private constructor |
| - */ |
| - AppWindowBounds._proxy(_jsObject) : super._proxy(_jsObject); |
| - |
| - /* |
| - * Public accessors |
| - */ |
| - int get left => JS('int', '#.left', this._jsObject); |
| - |
| - void set left(int left) { |
| - JS('void', '#.left = #', this._jsObject, left); |
| - } |
| - |
| - int get top => JS('int', '#.top', this._jsObject); |
| - |
| - void set top(int top) { |
| - JS('void', '#.top = #', this._jsObject, top); |
| - } |
| - |
| - int get width => JS('int', '#.width', this._jsObject); |
| - |
| - void set width(int width) { |
| - JS('void', '#.width = #', this._jsObject, width); |
| - } |
| - |
| - int get height => JS('int', '#.height', this._jsObject); |
| - |
| - void set height(int height) { |
| - JS('void', '#.height = #', this._jsObject, height); |
| - } |
| - |
| -} |
| - |
| class AppWindowAppWindow extends ChromeObject { |
| /* |
| * Private constructor |
| @@ -291,13 +291,13 @@ class AppWindowAppWindow extends ChromeObject { |
| void minimize() => JS('void', '#.minimize()', this._jsObject); |
| /// Is the window minimized? |
| - void isMinimized() => JS('void', '#.isMinimized()', this._jsObject); |
| + bool isMinimized() => JS('bool', '#.isMinimized()', this._jsObject); |
| /// Maximize the window. |
| void maximize() => JS('void', '#.maximize()', this._jsObject); |
| /// Is the window maximized? |
| - void isMaximized() => JS('void', '#.isMaximized()', this._jsObject); |
| + bool isMaximized() => new bool._proxy(JS('', '#.isMaximized()', this._jsObject)); |
|
sashab
2013/02/21 03:22:18
So, this is an interesting case. Apparently "bool"
|
| /// Restore the window. |
| void restore() => JS('void', '#.restore()', this._jsObject); |