| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the Pepper equivalent of the <code>chrome.alarms</code> | 7 * This file defines the Pepper equivalent of the <code>chrome.alarms</code> |
| 8 * extension API. | 8 * extension API. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M27 = 0.1 | 12 M27 = 0.1 |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 #inline c | 15 #inline c |
| 16 #include "ppapi/c/extensions/dev/ppb_events_dev.h" | 16 #include "ppapi/c/extensions/dev/ppb_ext_events_dev.h" |
| 17 #endinl | 17 #endinl |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * A dictionary <code>PP_Var</code> which contains: | 20 * A dictionary <code>PP_Var</code> which contains: |
| 21 * - "name" : string <code>PP_Var</code> | 21 * - "name" : string <code>PP_Var</code> |
| 22 * Name of this alarm. | 22 * Name of this alarm. |
| 23 * | 23 * |
| 24 * - "scheduledTime" : double <code>PP_Var</code> | 24 * - "scheduledTime" : double <code>PP_Var</code> |
| 25 * Time at which this alarm was scheduled to fire, in milliseconds past the | 25 * Time at which this alarm was scheduled to fire, in milliseconds past the |
| 26 * epoch (e.g. <code>Date.now() + n</code>). For performance reasons, the | 26 * epoch (e.g. <code>Date.now() + n</code>). For performance reasons, the |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 #inline c | 169 #inline c |
| 170 PP_INLINE struct PP_Ext_EventListener PP_Ext_Alarms_OnAlarm_Dev_0_1( | 170 PP_INLINE struct PP_Ext_EventListener PP_Ext_Alarms_OnAlarm_Dev_0_1( |
| 171 PP_Ext_Alarms_OnAlarm_Func_Dev_0_1 func, | 171 PP_Ext_Alarms_OnAlarm_Func_Dev_0_1 func, |
| 172 void* user_data) { | 172 void* user_data) { |
| 173 return PP_Ext_MakeEventListener("alarms.onAlarm;0.1", | 173 return PP_Ext_MakeEventListener("alarms.onAlarm;0.1", |
| 174 (PP_Ext_GenericFuncType)(func), user_data); | 174 (PP_Ext_GenericFuncType)(func), user_data); |
| 175 } | 175 } |
| 176 | 176 |
| 177 #define PP_Ext_Alarms_OnAlarm_Dev PP_Ext_Alarms_OnAlarm_Dev_0_1 | 177 #define PP_Ext_Alarms_OnAlarm_Dev PP_Ext_Alarms_OnAlarm_Dev_0_1 |
| 178 #endinl | 178 #endinl |
| OLD | NEW |