Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6041)

Unified Diff: chrome/common/extensions/api/experimental_system_indicator.idl

Issue 11361189: Initial skeleton for System Indicator API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: IDL Capitalization Nit fixed Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..9a75addcd272ea83059a4d8a8e07a22010337156
--- /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.
+ static void onSystemIndicatorClicked();
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698