OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // File-level comment to appease parser. Eventually this will not be necessary. |
| 6 |
| 7 namespace experimental.pushMessaging{ |
| 8 dictionary Message { |
| 9 // The subchannel the message was sent on. |
| 10 long subchannel; |
| 11 |
| 12 // The payload associated with the message, if any. |
| 13 DOMString payload; |
| 14 }; |
| 15 |
| 16 interface Events { |
| 17 // Fired when a push message has been received. |
| 18 // |message| : The details associated with the message. |
| 19 static void onMessage(Message message); |
| 20 }; |
| 21 }; |
OLD | NEW |