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

Side by Side Diff: extensions/common/api/app_window.idl

Issue 976563002: Mark chrome.app.window resizeTo and moveTo as deprecated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698