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

Side by Side Diff: apps/shell/common/api/shell.idl

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « apps/shell/common/api/api.gyp ('k') | apps/shell/common/shell_content_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Use the <code>chrome.shell</code> API to create windows. The
6 // <code>createWindow</code> API is a subset of
7 // <code>chrome.app.window.create</code>.
8 namespace shell {
9
10 // Called in the creating window (parent) before the load event is called in
11 // the created window (child). The parent can set fields or functions on the
12 // child usable from onload. E.g. background.js:<br>
13 // <code>function(createdWindow) { createdWindow.contentWindow.foo =
14 // function () { }; };</code>
15 // <br>window.js:<br>
16 // <code>window.onload = function () { foo(); }</code>
17 callback CreateWindowCallback =
18 void ([instanceOf=AppWindow] object createdWindow);
19
20 [noinline_doc] dictionary AppWindow {
21 // The JavaScript 'window' object for the created child.
22 [instanceOf=Window] object contentWindow;
23 };
24
25 interface Functions {
26 // Creates a fullscreen window on the default display. Options are ignored.
27 static void createWindow(DOMString url,
28 optional object optionsPlaceholder,
29 optional CreateWindowCallback callback);
30
31 // Returns an $(ref:AppWindow) object for the current script context
32 // (i.e. JavaScript 'window' object).
33 [nocompile] static AppWindow currentWindow();
34 [nocompile, nodoc] static void initializeAppWindow();
35 };
36 };
OLDNEW
« no previous file with comments | « apps/shell/common/api/api.gyp ('k') | apps/shell/common/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698