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

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

Issue 11369039: Add setBounds method and browsertest for get/set bounds to app window API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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 | Annotate | Revision Log
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 namespace app.window { 5 namespace app.window {
6 dictionary CreateWindowOptions { 6 dictionary CreateWindowOptions {
7 // Id to identify the window. This will be used to remember the size 7 // Id to identify the window. This will be used to remember the size
8 // and position of the window and restore that geometry when a window 8 // and position of the window and restore that geometry when a window
9 // with the same id (and no explicit size or position) is later opened. 9 // with the same id (and no explicit size or position) is later opened.
10 DOMString? id; 10 DOMString? id;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Close the window. 104 // Close the window.
105 static void close(); 105 static void close();
106 106
107 // Show the window. Does nothing if the window is already visible. 107 // Show the window. Does nothing if the window is already visible.
108 static void show(); 108 static void show();
109 109
110 // Hide the window. Does nothing if the window is already hidden. 110 // Hide the window. Does nothing if the window is already hidden.
111 static void hide(); 111 static void hide();
112 112
113 // Set the window's bounds.
114 static void setBounds(Bounds bounds);
115
113 // The JavaScript 'window' object for the created child. 116 // The JavaScript 'window' object for the created child.
114 [instanceOf=global] object contentWindow; 117 [instanceOf=global] object contentWindow;
115 }; 118 };
116 119
117 interface Functions { 120 interface Functions {
118 // The size and position of a window can be specified in a number of 121 // The size and position of a window can be specified in a number of
119 // different ways. The most simple option is not specifying anything at 122 // different ways. The most simple option is not specifying anything at
120 // all, in which case a default size and platform dependent position will 123 // all, in which case a default size and platform dependent position will
121 // be used. 124 // be used.
122 // 125 //
(...skipping 23 matching lines...) Expand all
146 optional CreateWindowCallback callback); 149 optional CreateWindowCallback callback);
147 150
148 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the 151 // Returns an <a href="#type-AppWindow">AppWindow</a> object for the
149 // current script context (ie JavaScript 'window' object). This can also be 152 // current script context (ie JavaScript 'window' object). This can also be
150 // called on a handle to a script context for another page, for example: 153 // called on a handle to a script context for another page, for example:
151 // otherWindow.chrome.app.window.current(). 154 // otherWindow.chrome.app.window.current().
152 [nocompile] static AppWindow current(); 155 [nocompile] static AppWindow current();
153 [nocompile, nodoc] static void initializeAppWindow(object state); 156 [nocompile, nodoc] static void initializeAppWindow(object state);
154 }; 157 };
155 }; 158 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698