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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html

Issue 418173006: extensions: Migrate other uses of webkitNotifications to Web Notifications API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 4 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
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/irc/servlet/index.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <meta name="doc-family" content="apps"> 1 <meta name="doc-family" content="apps">
2 <h1>Google Cloud Messaging for Chrome V1</h1> 2 <h1>Google Cloud Messaging for Chrome V1</h1>
3 3
4 <p class="note"> 4 <p class="note">
5 Google Cloud Messaging for Chrome V1 will be legacy soon. 5 Google Cloud Messaging for Chrome V1 will be legacy soon.
6 Use the new <a href="cloudMessaging">Google Cloud Messaging API</a>. 6 Use the new <a href="cloudMessaging">Google Cloud Messaging API</a>.
7 </p> 7 </p>
8 8
9 <p> 9 <p>
10 Google Cloud Messaging for Chrome (GCM) is a service 10 Google Cloud Messaging for Chrome (GCM) is a service
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 for the contents of previous messages and 393 for the contents of previous messages and
394 to get data if the payload is not present. 394 to get data if the payload is not present.
395 </p> 395 </p>
396 396
397 <p>Here's a simple example that shows a push message 397 <p>Here's a simple example that shows a push message
398 as a text notification when it arrives: 398 as a text notification when it arrives:
399 </p> 399 </p>
400 400
401 <pre> 401 <pre>
402 function showPushMessage(message) { 402 function showPushMessage(message) {
403 var notification = window.webkitNotifications.createNotification( 403 new Notification('New notification', {
404 '', 'New notification', message.payload + " [" + message.subchannelId + "]") ; 404 body: message.payload + " [" + message.subchannelId + "]"
405 notification.show(); 405 });
406 } 406 }
407 </pre> 407 </pre>
408 408
409 <p> 409 <p>
410 You need to add the "notifications" permission 410 You need to add the "notifications" permission
411 to <code>manifest.json</code> 411 to <code>manifest.json</code>
412 to use text notifications 412 to use text notifications
413 (see <a href="desktop_notifications">Desktop Notifications</a>): 413 (see <a href="desktop_notifications">Desktop Notifications</a>):
414 </p> 414 </p>
415 415
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 you need to remove the key because the Store does not currently allow manifests 548 you need to remove the key because the Store does not currently allow manifests
549 with keys. 549 with keys.
550 </p> 550 </p>
551 551
552 <h2 id="feedback">Feedback</h2> 552 <h2 id="feedback">Feedback</h2>
553 553
554 <p>You can provide feedback about Google Cloud Messaging 554 <p>You can provide feedback about Google Cloud Messaging
555 and the pushMessaging API through the Google Group 555 and the pushMessaging API through the Google Group
556 <a target="_blank" href="https://groups.google.com/forum/#!forum/gcm-for-chrome- feedback">GCM for Chrome feedback</a>. 556 <a target="_blank" href="https://groups.google.com/forum/#!forum/gcm-for-chrome- feedback">GCM for Chrome feedback</a>.
557 Use this group to ask for help, file bug reports, and request features.</p> 557 Use this group to ask for help, file bug reports, and request features.</p>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/irc/servlet/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698