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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/chrome/system_indicator.dart
diff --git a/tools/dom/src/chrome/system_indicator.dart b/tools/dom/src/chrome/system_indicator.dart
new file mode 100644
index 0000000000000000000000000000000000000000..343133c93bc283e04c2f88569f0bf8eddb738f76
--- /dev/null
+++ b/tools/dom/src/chrome/system_indicator.dart
@@ -0,0 +1,94 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Generated from namespace: systemIndicator
+
+part of chrome;
+
+/**
+ * Types
+ */
+
+class SystemindicatorSetIconDetails extends ChromeObject {
+ /*
+ * Public constructor
+ */
+ SystemindicatorSetIconDetails({Object path, Object imageData}) {
+ if (?path)
+ this.path = path;
+ if (?imageData)
+ this.imageData = imageData;
+ }
+
+ /*
+ * Private constructor
+ */
+ SystemindicatorSetIconDetails._proxy(_jsObject) : super._proxy(_jsObject);
+
+ /*
+ * Public accessors
+ */
+ Object get path => JS('Object', '#.path', this._jsObject);
+
+ void set path(Object path) {
+ JS('void', '#.path = #', this._jsObject, convertArgument(path));
+ }
+
+ Object get imageData => JS('Object', '#.imageData', this._jsObject);
+
+ void set imageData(Object imageData) {
+ JS('void', '#.imageData = #', this._jsObject, convertArgument(imageData));
+ }
+
+}
+
+/**
+ * Events
+ */
+
+/// Fired only when a click on the icon does not result in a menu being shown.
+class Event_system_indicator_onClicked extends Event {
+ void addListener(void callback()) => super.addListener(callback);
+
+ void removeListener(void callback()) => super.removeListener(callback);
+
+ bool hasListener(void callback()) => super.hasListener(callback);
+
+ Event_system_indicator_onClicked(jsObject) : super._(jsObject, 0);
+}
+
+/**
+ * Functions
+ */
+
+class API_system_indicator {
+ /*
+ * API connection
+ */
+ Object _jsObject;
+
+ /*
+ * Events
+ */
+ Event_system_indicator_onClicked onClicked;
+
+ /*
+ * 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.
+ void setIcon(SystemindicatorSetIconDetails details, [void callback()]) => JS('void', '#.setIcon(#, #)', this._jsObject, convertArgument(details), convertDartClosureToJS(callback, 0));
+
+ /// Show the icon in the status tray.
+ void enable() => JS('void', '#.enable()', this._jsObject);
+
+ /// Hide the icon from the status tray.
+ void disable() => JS('void', '#.disable()', this._jsObject);
+
+ API_system_indicator(this._jsObject) {
+ onClicked = new Event_system_indicator_onClicked(JS('', '#.onClicked', this._jsObject));
+ }
+}
« 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