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
3 // found in the LICENSE file.
5 // This is used by the app window API internally to pass through messages to
7 [nodoc] namespace app.currentWindowInternal {
9 // TODO(asargent) - We need to add support for referencing types in
10 // other namespaces (crbug.com/158654). For now just duplicate this
11 // dictionary from app.window.
19 dictionary RegionRect {
32 static void fullscreen();
33 static void minimize();
34 static void maximize();
35 static void restore();
36 static void drawAttention();
37 static void clearAttention();
38 static void show(optional boolean focused);
40 static void setBounds(Bounds bounds);
41 static void setMinWidth(optional long minWidth);
42 static void setMinHeight(optional long minHeight);
43 static void setMaxWidth(optional long maxWidth);
44 static void setMaxHeight(optional long maxHeight);
45 static void setIcon(DOMString icon_url);
46 static void setBadgeIcon(DOMString icon_url);
47 static void clearBadge();
48 static void setShape(Region region);
49 static void setAlwaysOnTop(boolean always_on_top);
53 static void onClosed();
54 static void onBoundsChanged();
55 static void onFullscreened();
56 static void onMinimized();
57 static void onMaximized();
58 static void onRestored();