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

Side by Side Diff: chrome/common/extensions/api/app_current_window_internal.idl

Issue 10915085: Functions for accessing app window properties, and modifying AppWindow-specifics (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: stray event, js linter Created 8 years, 3 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
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 [internal, nodoc] namespace app.currentWindowInternal { 5 [internal, nodoc] namespace app.currentWindowInternal {
6
7 // used on a developer refresh to retrieve ShellWindow values
8 dictionary WindowCacheRefresh {
9 long minWidth;
10 long minHeight;
11 long maxWidth;
12 long maxHeight;
13 DOMString windowKey;
14 DOMString windowState;
15 DOMString windowType;
16 DOMString frameType;
17 };
18
19 callback CacheRefreshCallback = void (WindowCacheRefresh state);
20
6 interface Functions { 21 interface Functions {
22 // Get the frame type (e.g. 'none' or 'chrome')
23 static void getState(CacheRefreshCallback callback);
24
7 // Focus the window. 25 // Focus the window.
8 static void focus(); 26 static void focus();
9 27
10 // Minimize the window. 28 // Minimize the window.
11 static void minimize(); 29 static void minimize();
12 30
13 // Maximize the window. 31 // Maximize the window.
14 static void maximize(); 32 static void maximize();
15 33
16 // Restore the window. 34 // Restore the window.
17 static void restore(); 35 static void restore();
36
37 // Update the minimum user-resizable dimensions of the window
38 static void setMinSize(long x, long y);
39
40 // Update the maximum user-resizable dimensions of the window
41 static void setMaxSize(long x, long y);
18 }; 42 };
19 }; 43 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698