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

Unified Diff: third_party/chrome/idl/system_indicator.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months 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
« no previous file with comments | « third_party/chrome/idl/sync_file_system.idl ('k') | third_party/chrome/idl/system_info_display.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/system_indicator.idl
diff --git a/third_party/chrome/idl/system_indicator.idl b/third_party/chrome/idl/system_indicator.idl
new file mode 100644
index 0000000000000000000000000000000000000000..c24f8142efccd35cc051c99335244291b7c1878c
--- /dev/null
+++ b/third_party/chrome/idl/system_indicator.idl
@@ -0,0 +1,36 @@
+// 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.
+// This is modelled after the other extension action APIs, such as
+// chrome.browserAction and chrome.pageAction.
+namespace systemIndicator {
+ dictionary SetIconDetails {
+ any? path;
+ any? imageData;
+ };
+
+ callback DoneCallback = void ();
+
+ interface Functions {
+ // Set the image to be used as an indicator icon, using a set of ImageData
+ // objects. These objects should have multiple resolutions so that an
+ // appropriate size can be selected for the given icon size and DPI scaling
+ // settings. Only square ImageData objects are accepted.
+ static void setIcon(SetIconDetails details, optional DoneCallback callback);
+
+ // Show the icon in the status tray.
+ static void enable();
+
+ // Hide the icon from the status tray.
+ static void disable();
+ };
+
+ interface Events {
+ // Fired only when a click on the icon does not result in a menu being
+ // shown.
+ static void onClicked();
+ };
+};
« no previous file with comments | « third_party/chrome/idl/sync_file_system.idl ('k') | third_party/chrome/idl/system_info_display.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698