Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "ppapi/c/dev/ppb_alarms_dev.h" | 6 #include "ppapi/c/dev/ppb_alarms_dev.h" |
| 7 #include "ppapi/shared_impl/tracked_callback.h" | 7 #include "ppapi/shared_impl/tracked_callback.h" |
| 8 #include "ppapi/thunk/enter.h" | 8 #include "ppapi/thunk/enter.h" |
| 9 #include "ppapi/thunk/extensions_common_api.h" | 9 #include "ppapi/thunk/extensions_common_api.h" |
| 10 #include "ppapi/thunk/thunk.h" | 10 #include "ppapi/thunk/thunk.h" |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 PP_CompletionCallback callback) { | 41 PP_CompletionCallback callback) { |
| 42 EnterInstanceAPI<ExtensionsCommon_API> enter(instance, callback); | 42 EnterInstanceAPI<ExtensionsCommon_API> enter(instance, callback); |
| 43 if (enter.failed()) | 43 if (enter.failed()) |
| 44 return enter.retval(); | 44 return enter.retval(); |
| 45 | 45 |
| 46 NOTIMPLEMENTED(); | 46 NOTIMPLEMENTED(); |
| 47 | 47 |
| 48 return enter.SetResult(PP_ERROR_FAILED); | 48 return enter.SetResult(PP_ERROR_FAILED); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void Clear(PP_Instance instance, PP_Var name) { | 51 void Clear(PP_Instance instance, PP_Var name) { NOTIMPLEMENTED(); } |
| 52 NOTIMPLEMENTED(); | |
| 53 } | |
| 54 | 52 |
| 55 void ClearAll(PP_Instance instance) { | 53 void ClearAll(PP_Instance instance) { NOTIMPLEMENTED(); } |
| 56 NOTIMPLEMENTED(); | |
| 57 } | |
| 58 | 54 |
| 59 uint32_t AddOnAlarmListener(PP_Instance instance, | 55 uint32_t AddOnAlarmListener(PP_Instance instance, |
| 60 PP_Alarms_OnAlarm_Dev callback, | 56 PP_Alarms_OnAlarm_Dev callback, |
| 61 void* user_data) { | 57 void* user_data) { |
| 62 NOTIMPLEMENTED(); | 58 NOTIMPLEMENTED(); |
| 63 return 0; | 59 return 0; |
| 64 } | 60 } |
| 65 | 61 |
| 66 const PPB_Alarms_Dev_0_1 g_ppb_alarms_dev_0_1_thunk = { | 62 const PPB_Alarms_Dev_0_1 g_ppb_alarms_dev_0_1_thunk = { |
| 67 &Create, | 63 &Create, &Get, &GetAll, &Clear, &ClearAll, &AddOnAlarmListener}; |
|
teravest
2014/04/16 15:19:16
I'd prefer that all of these still got their own l
| |
| 68 &Get, | |
| 69 &GetAll, | |
| 70 &Clear, | |
| 71 &ClearAll, | |
| 72 &AddOnAlarmListener | |
| 73 }; | |
| 74 | 64 |
| 75 } // namespace | 65 } // namespace |
| 76 | 66 |
| 77 const PPB_Alarms_Dev_0_1* GetPPB_Alarms_Dev_0_1_Thunk() { | 67 const PPB_Alarms_Dev_0_1* GetPPB_Alarms_Dev_0_1_Thunk() { |
| 78 return &g_ppb_alarms_dev_0_1_thunk; | 68 return &g_ppb_alarms_dev_0_1_thunk; |
| 79 } | 69 } |
| 80 | 70 |
| 81 } // namespace thunk | 71 } // namespace thunk |
| 82 } // namespace ppapi | 72 } // namespace ppapi |
| OLD | NEW |