OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.shell</code> API to create windows. The | 5 // Use the <code>chrome.shell</code> API to create windows. The |
6 // <code>createWindow</code> API is a subset of | 6 // <code>createWindow</code> API is a subset of |
7 // <code>chrome.app.window.create</code>. | 7 // <code>chrome.app.window.create</code>. |
8 namespace shell { | 8 namespace shell { |
9 | 9 |
10 // Called in the creating window (parent) before the load event is called in | 10 // Called in the creating window (parent) before the load event is called in |
(...skipping 16 matching lines...) Expand all Loading... |
27 static void createWindow(DOMString url, | 27 static void createWindow(DOMString url, |
28 optional object optionsPlaceholder, | 28 optional object optionsPlaceholder, |
29 optional CreateWindowCallback callback); | 29 optional CreateWindowCallback callback); |
30 | 30 |
31 // Returns an $(ref:AppWindow) object for the current script context | 31 // Returns an $(ref:AppWindow) object for the current script context |
32 // (i.e. JavaScript 'window' object). | 32 // (i.e. JavaScript 'window' object). |
33 [nocompile] static AppWindow currentWindow(); | 33 [nocompile] static AppWindow currentWindow(); |
34 [nocompile, nodoc] static void initializeAppWindow(); | 34 [nocompile, nodoc] static void initializeAppWindow(); |
35 }; | 35 }; |
36 }; | 36 }; |
OLD | NEW |