OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 // Manages an app's system indicator icon, an image displayed in the system's | |
6 // menubar, system tray, or other visible area provided by the OS. | |
7 namespace experimental.systemIndicator { | |
8 interface Functions { | |
9 // Set the image to be used as an indicator icon. | |
10 // Can be set by url: | |
11 static void setURL(DOMString path); | |
12 // Or can be set by imageData derived from a canvas element. | |
13 static void setImageData([instanceOf=ImageData] object ImageData); | |
14 | |
15 // Show the icon in the status tray. | |
16 static void show(); | |
17 // Hide the icon from the status tray. | |
18 static void hide(); | |
19 }; | |
20 | |
21 interface Events { | |
22 // 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
| |
23 static void onSystemIndicatorClicked(); | |
24 }; | |
25 }; | |
OLD | NEW |