summaryrefslogtreecommitdiffstats
path: root/extensions/common/api/extension_options_internal.idl
blob: 78052d1450817116734fe72f04f343857f57ef5c (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
// Copyright 2014 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.

// Internal API for the <extensiontoptions> tag
namespace extensionOptionsInternal {
  dictionary SizeChangedOptions {
    long oldWidth;
    long oldHeight;
    long newWidth;
    long newHeight;
  };

  dictionary PreferredSizeChangedOptions {
    double width;
    double height;
  };

  interface Events {
    static void onClose();
    static void onLoad();
    static void onPreferredSizeChanged(PreferredSizeChangedOptions options);
  };
};