Chromium Code Reviews

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: Fix test failure and style nit Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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.
23 static void onSystemIndicatorClicked();
24 };
25 };
Pete Williamson 2012/11/13 18:01:41 I don't see any faults with the code we have, but
dewittj 2012/11/14 00:25:07 Ultimately agreed that a separate menu API is appr
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/test/data/extensions/api_test/system_indicator/128.png » ('j') | no next file with comments »

Powered by Google App Engine