Chromium Code Reviews| Index: chrome/common/extensions/api/experimental_system_indicator.idl |
| diff --git a/chrome/common/extensions/api/experimental_system_indicator.idl b/chrome/common/extensions/api/experimental_system_indicator.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..65a40377f35fe91563d4173b138f07e2834d7e04 |
| --- /dev/null |
| +++ b/chrome/common/extensions/api/experimental_system_indicator.idl |
| @@ -0,0 +1,25 @@ |
| +// 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. |
| + |
| +// Manages an app's system indicator icon, an image displayed in the system's |
| +// menubar, system tray, or other visible area provided by the OS. |
| +namespace experimental.systemIndicator { |
| + interface Functions { |
| + // Set the image to be used as an indicator icon. |
| + // Can be set by url: |
| + static void setURL(DOMString path); |
| + // Or can be set by imageData derived from a canvas element. |
| + static void setImageData([instanceOf=ImageData] object ImageData); |
| + |
| + // Show the icon in the status tray. |
| + static void show(); |
| + // Hide the icon from the status tray. |
| + static void hide(); |
| + }; |
| + |
| + interface Events { |
| + // fired when a click does not result in a menu being shown. |
|
jianli
2012/11/12 23:00:55
nit: Capital
dewittj
2012/11/13 06:58:54
Fixed
|
| + static void onSystemIndicatorClicked(); |
| + }; |
| +}; |