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

Side by Side Diff: chrome/common/extensions/api/push_messaging.idl

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revisions, Offline/Online Access (bypassed-hooks) Created 7 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use <code>chrome.pushMessaging</code> to send message data
6 // to app or extension users.
5 namespace pushMessaging{ 7 namespace pushMessaging{
6 8
7 dictionary Message { 9 dictionary Message {
8 // The subchannel the message was sent on; 10 // The subchannel the message was sent on;
9 // only values 0-3 are valid. 11 // only values 0-3 are valid.
10 long subchannelId; 12 long subchannelId;
11 13
12 // The payload associated with the message, if any. This should not contain 14 // The payload associated with the message, if any. This should not contain
13 // any personally identifiable information. 15 // any personally identifiable information.
14 DOMString payload; 16 DOMString payload;
(...skipping 16 matching lines...) Expand all
31 static void getChannelId(optional boolean interactive, 33 static void getChannelId(optional boolean interactive,
32 ChannelIdCallback callback); 34 ChannelIdCallback callback);
33 }; 35 };
34 36
35 interface Events { 37 interface Events {
36 // Fired when a push message has been received. 38 // Fired when a push message has been received.
37 // |message| : The details associated with the message. 39 // |message| : The details associated with the message.
38 static void onMessage(Message message); 40 static void onMessage(Message message);
39 }; 41 };
40 }; 42 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698