]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Pass bounds in clicked event of tray
authorCheng Zhao <zcbenz@gmail.com>
Mon, 4 May 2015 03:23:09 +0000 (11:23 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 4 May 2015 03:34:11 +0000 (11:34 +0800)
docs/api/tray.md

index dd030385ad383cea03d419fd02bd302a08088b91..0562a6180e46ecf1adc6233bcc23a3a45cc09791 100644 (file)
@@ -47,12 +47,16 @@ Creates a new tray icon associated with the `image`.
 ### Event: 'clicked'
 
 * `event`
-* `point` Object
+* `bounds` Object - the bounds of tray icon
   * `x` Integer
   * `y` Integer
+  * `width` Integer
+  * `height` Integer
 
 Emitted when the tray icon is clicked.
 
+__NOte:__ The `bounds` payload is only implemented on OS X.
+
 ### Event: 'double-clicked'
 
 Emitted when the tray icon is double clicked.
@@ -106,7 +110,7 @@ Sets the hover text for this tray icon.
 
 Sets the title displayed aside of the tray icon in the status bar.
 
-This is only implemented on OS X.
+__Note:__ This is only implemented on OS X.
 
 ### Tray.setHighlightMode(highlight)
 
@@ -114,7 +118,7 @@ This is only implemented on OS X.
 
 Sets whether the tray icon is highlighted when it is clicked.
 
-This is only implmented on OS X.
+__Note:__ This is only implemented on OS X.
 
 ### Tray.displayBalloon(options)
 
@@ -123,10 +127,14 @@ This is only implmented on OS X.
   * `title` String
   * `content` String
 
+Displays a tray balloon.
+
+__Note:__ This is only implemented on Windows.
+
 ### Tray.setContextMenu(menu)
 
 * `menu` Menu
 
-Set the context menu for this icon.
+Sets the context menu for this icon.
 
 [event-emitter]: http://nodejs.org/api/events.html#events_class_events_eventemitter