summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/app_current_window_internal.idl
blob: e1a4b3de600da52ecf718c34c105ab3a609c02fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This is used by the app window API internally to pass through messages to
// the shell window.
[internal, nodoc] namespace app.currentWindowInternal {

  // TODO(asargent) - We need to add support for referencing types in
  // other namespaces (crbug.com/158654). For now just duplicate this
  // dictionary from app.window.
  dictionary Bounds {
    long? left;
    long? top;
    long? width;
    long? height;
  };


  interface Functions {
    static void focus();
    static void minimize();
    static void maximize();
    static void restore();
    static void drawAttention();
    static void clearAttention();
    static void show();
    static void hide();
    static void setBounds(Bounds bounds);
  };
};