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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/dial.html

Issue 17568003: DOCS ONLY. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1541/src/
Patch Set: Created 7 years, 6 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
1 <p>The <code>chrome.dial</code> API is backed by a service that multicasts 1 <p>The <code>chrome.dial</code> API is backed by a service that multicasts
2 discovery requests on the local network to discover DIAL-capable devices and 2 discovery requests on the local network to discover DIAL-capable devices and
3 maintains a list of devices that have responded. Adding an onDeviceList 3 maintains a list of devices that have responded. Adding an onDeviceList
4 listener causes the service to periodically issue discovery requests to maintain 4 listener causes the service to periodically issue discovery requests to maintain
5 the device list. (No polling is done when there are no onDeviceList listeners.) 5 the device list. (No polling is done when there are no onDeviceList listeners.)
6 </p> 6 </p>
7 7
8 <p>The onDeviceList event is fired when discovery respnses are received and in 8 <p>The onDeviceList event is fired when discovery respnses are received and in
9 other circumstances; see the documentation for onDeviceList.</p> 9 other circumstances; see the documentation for onDeviceList.</p>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 <p>Background use (updates only when periodic polling happens):</p> 22 <p>Background use (updates only when periodic polling happens):</p>
23 23
24 <pre> 24 <pre>
25 var myList; 25 var myList;
26 chrome.dial.onDeviceList.addListener(function (list) { myList = list; }); 26 chrome.dial.onDeviceList.addListener(function (list) { myList = list; });
27 </pre> 27 </pre>
28 28
29 <p>These can be combined to poll for devices to prime the device menu, then 29 <p>These can be combined to poll for devices to prime the device menu, then
30 refresh the menu when it is displayed.</p> 30 refresh the menu when it is displayed.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698