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/app_window.dart

Issue 12316032: Added more Chrome.* libraries to dart:chrome (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added isMaximised override file 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
« no previous file with comments | « tools/dom/src/chrome/app_runtime.dart ('k') | tools/dom/src/chrome/bluetooth.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..70652473aea8a89d1190f2c131aeb20151ba8d02 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() => JS('bool', '#.isMaximized()', this._jsObject);
/// Restore the window.
void restore() => JS('void', '#.restore()', this._jsObject);
« no previous file with comments | « tools/dom/src/chrome/app_runtime.dart ('k') | tools/dom/src/chrome/bluetooth.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698