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

Side by Side Diff: tools/dom/src/chrome/system_indicator.dart

Issue 12316032: Added more Chrome.* libraries to dart:chrome (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added isMaximised override file 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Generated from namespace: systemIndicator
6
7 part of chrome;
8
9 /**
10 * Types
11 */
12
13 class SystemindicatorSetIconDetails extends ChromeObject {
14 /*
15 * Public constructor
16 */
17 SystemindicatorSetIconDetails({Object path, Object imageData}) {
18 if (?path)
19 this.path = path;
20 if (?imageData)
21 this.imageData = imageData;
22 }
23
24 /*
25 * Private constructor
26 */
27 SystemindicatorSetIconDetails._proxy(_jsObject) : super._proxy(_jsObject);
28
29 /*
30 * Public accessors
31 */
32 Object get path => JS('Object', '#.path', this._jsObject);
33
34 void set path(Object path) {
35 JS('void', '#.path = #', this._jsObject, convertArgument(path));
36 }
37
38 Object get imageData => JS('Object', '#.imageData', this._jsObject);
39
40 void set imageData(Object imageData) {
41 JS('void', '#.imageData = #', this._jsObject, convertArgument(imageData));
42 }
43
44 }
45
46 /**
47 * Events
48 */
49
50 /// Fired only when a click on the icon does not result in a menu being shown.
51 class Event_system_indicator_onClicked extends Event {
52 void addListener(void callback()) => super.addListener(callback);
53
54 void removeListener(void callback()) => super.removeListener(callback);
55
56 bool hasListener(void callback()) => super.hasListener(callback);
57
58 Event_system_indicator_onClicked(jsObject) : super._(jsObject, 0);
59 }
60
61 /**
62 * Functions
63 */
64
65 class API_system_indicator {
66 /*
67 * API connection
68 */
69 Object _jsObject;
70
71 /*
72 * Events
73 */
74 Event_system_indicator_onClicked onClicked;
75
76 /*
77 * Functions
78 */
79 /// Set the image to be used as an indicator icon, using a set of ImageData
80 /// objects. These objects should have multiple resolutions so that an
81 /// appropriate size can be selected for the given icon size and DPI scaling
82 /// settings. Only square ImageData objects are accepted.
83 void setIcon(SystemindicatorSetIconDetails details, [void callback()]) => JS(' void', '#.setIcon(#, #)', this._jsObject, convertArgument(details), convertDartC losureToJS(callback, 0));
84
85 /// Show the icon in the status tray.
86 void enable() => JS('void', '#.enable()', this._jsObject);
87
88 /// Hide the icon from the status tray.
89 void disable() => JS('void', '#.disable()', this._jsObject);
90
91 API_system_indicator(this._jsObject) {
92 onClicked = new Event_system_indicator_onClicked(JS('', '#.onClicked', this. _jsObject));
93 }
94 }
OLDNEW
« no previous file with comments | « tools/dom/src/chrome/sync_file_system.dart ('k') | tools/dom/src/chrome/system_info_display.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698