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

Side by Side 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: Up similarity requirement 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 unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698