| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This is used by the app window API internally to pass through messages to | 5 // This is used by the app window API internally to pass through messages to |
| 6 // the shell window. | 6 // the shell window. |
| 7 [internal, nodoc] namespace app.currentWindowInternal { | 7 [internal, nodoc] namespace app.currentWindowInternal { |
| 8 |
| 9 // TODO(asargent) - We need to add support for referencing types in |
| 10 // other namespaces (crbug.com/158654). For now just duplicate this |
| 11 // dictionary from app.window. |
| 12 dictionary Bounds { |
| 13 long? left; |
| 14 long? top; |
| 15 long? width; |
| 16 long? height; |
| 17 }; |
| 18 |
| 19 |
| 8 interface Functions { | 20 interface Functions { |
| 9 static void focus(); | 21 static void focus(); |
| 10 static void minimize(); | 22 static void minimize(); |
| 11 static void maximize(); | 23 static void maximize(); |
| 12 static void restore(); | 24 static void restore(); |
| 13 static void drawAttention(); | 25 static void drawAttention(); |
| 14 static void clearAttention(); | 26 static void clearAttention(); |
| 15 static void show(); | 27 static void show(); |
| 16 static void hide(); | 28 static void hide(); |
| 29 static void setBounds(Bounds bounds); |
| 17 }; | 30 }; |
| 18 }; | 31 }; |
| OLD | NEW |