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. |
| 23 static void onSystemIndicatorClicked(); |
| 24 }; |
| 25 }; |
OLD | NEW |