OLD | NEW |
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 #ifndef PPAPI_SHARED_IMPL_API_ID_H_ | 5 #ifndef PPAPI_SHARED_IMPL_API_ID_H_ |
6 #define PPAPI_SHARED_IMPL_API_ID_H_ | 6 #define PPAPI_SHARED_IMPL_API_ID_H_ |
7 | 7 |
8 namespace ppapi { | 8 namespace ppapi { |
9 | 9 |
10 // These numbers must be all small integers. They are used in a lookup table | 10 // These numbers must be all small integers. They are used in a lookup table |
11 // to route messages to the appropriate message handler. | 11 // to route messages to the appropriate message handler. |
12 enum ApiID { | 12 enum ApiID { |
13 // Zero is reserved for control messages. | 13 // Zero is reserved for control messages. |
14 API_ID_NONE = 0, | 14 API_ID_NONE = 0, |
15 API_ID_PPB_AUDIO = 1, | 15 API_ID_PPB_AUDIO = 1, |
16 API_ID_PPB_AUDIO_CONFIG, | 16 API_ID_PPB_AUDIO_CONFIG, |
17 API_ID_PPB_AUDIO_INPUT_DEV, | 17 API_ID_PPB_AUDIO_INPUT_DEV, |
| 18 API_ID_PPB_AUDIO_OUTPUT_DEV, |
18 API_ID_PPB_BROKER, | 19 API_ID_PPB_BROKER, |
19 API_ID_PPB_BUFFER, | 20 API_ID_PPB_BUFFER, |
20 API_ID_PPB_CONTEXT_3D, | 21 API_ID_PPB_CONTEXT_3D, |
21 API_ID_PPB_CORE, | 22 API_ID_PPB_CORE, |
22 API_ID_PPB_CURSORCONTROL, | 23 API_ID_PPB_CURSORCONTROL, |
23 API_ID_PPB_FILE_CHOOSER, | 24 API_ID_PPB_FILE_CHOOSER, |
24 API_ID_PPB_FILE_IO, | 25 API_ID_PPB_FILE_IO, |
25 API_ID_PPB_FILE_REF, | 26 API_ID_PPB_FILE_REF, |
26 API_ID_PPB_FILE_SYSTEM, | 27 API_ID_PPB_FILE_SYSTEM, |
27 API_ID_PPB_FLASH_DEVICE_ID, | 28 API_ID_PPB_FLASH_DEVICE_ID, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 API_ID_PPP_VIDEO_DECODER_DEV, | 65 API_ID_PPP_VIDEO_DECODER_DEV, |
65 API_ID_RESOURCE_CREATION, | 66 API_ID_RESOURCE_CREATION, |
66 | 67 |
67 // Must be last to indicate the number of interface IDs. | 68 // Must be last to indicate the number of interface IDs. |
68 API_ID_COUNT | 69 API_ID_COUNT |
69 }; | 70 }; |
70 | 71 |
71 } // namespace ppapi | 72 } // namespace ppapi |
72 | 73 |
73 #endif // PPAPI_SHARED_IMPL_API_ID_H_ | 74 #endif // PPAPI_SHARED_IMPL_API_ID_H_ |
OLD | NEW |