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 // Use the <code>chrome.app.window</code> API to create windows. Windows | 5 // Use the <code>chrome.app.window</code> API to create windows. Windows |
6 // have an optional frame with title bar and size controls. They are not | 6 // have an optional frame with title bar and size controls. They are not |
7 // associated with any Chrome browser windows. See the <a | 7 // associated with any Chrome browser windows. See the <a |
8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/
window-state"> | 8 // href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/
window-state"> |
9 // Window State Sample</a> for a demonstration of these options. | 9 // Window State Sample</a> for a demonstration of these options. |
10 namespace app.window { | 10 namespace app.window { |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // Maximize the window. | 324 // Maximize the window. |
325 static void maximize(); | 325 static void maximize(); |
326 | 326 |
327 // Is the window maximized? | 327 // Is the window maximized? |
328 static boolean isMaximized(); | 328 static boolean isMaximized(); |
329 | 329 |
330 // Restore the window, exiting a maximized, minimized, or fullscreen state. | 330 // Restore the window, exiting a maximized, minimized, or fullscreen state. |
331 static void restore(); | 331 static void restore(); |
332 | 332 |
333 // Move the window to the position (|left|, |top|). | 333 // Move the window to the position (|left|, |top|). |
334 static void moveTo(long left, long top); | 334 [deprecated="Use outerBounds."] static void moveTo(long left, long top); |
335 | 335 |
336 // Resize the window to |width|x|height| pixels in size. | 336 // Resize the window to |width|x|height| pixels in size. |
337 static void resizeTo(long width, long height); | 337 [deprecated="Use outerBounds."] static void resizeTo(long width, long height
); |
338 | 338 |
339 // Draw attention to the window. | 339 // Draw attention to the window. |
340 static void drawAttention(); | 340 static void drawAttention(); |
341 | 341 |
342 // Clear attention to the window. | 342 // Clear attention to the window. |
343 static void clearAttention(); | 343 static void clearAttention(); |
344 | 344 |
345 // Close the window. | 345 // Close the window. |
346 static void close(); | 346 static void close(); |
347 | 347 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // Fired when the window is restored from being minimized or maximized. | 485 // Fired when the window is restored from being minimized or maximized. |
486 [nocompile] static void onRestored(); | 486 [nocompile] static void onRestored(); |
487 | 487 |
488 // Fired when the window's ability to use alpha transparency changes. | 488 // Fired when the window's ability to use alpha transparency changes. |
489 [nocompile, nodoc] static void onAlphaEnabledChanged(); | 489 [nocompile, nodoc] static void onAlphaEnabledChanged(); |
490 | 490 |
491 // Event for testing. Lets tests wait until a window has been shown. | 491 // Event for testing. Lets tests wait until a window has been shown. |
492 [nocompile, nodoc] static void onWindowFirstShown(); | 492 [nocompile, nodoc] static void onWindowFirstShown(); |
493 }; | 493 }; |
494 }; | 494 }; |
OLD | NEW |