[email protected] | cd2af39 | 2012-01-31 09:19:17 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PPAPI_SHARED_IMPL_API_ID_H_ |
| 6 | #define PPAPI_SHARED_IMPL_API_ID_H_ |
| 7 | |
| 8 | namespace ppapi { |
| 9 | |
| 10 | // These numbers must be all small integers. They are used in a lookup table |
| 11 | // to route messages to the appropriate message handler. |
| 12 | enum ApiID { |
| 13 | // Zero is reserved for control messages. |
| 14 | API_ID_NONE = 0, |
| 15 | API_ID_PPB_AUDIO = 1, |
| 16 | API_ID_PPB_AUDIO_CONFIG, |
[email protected] | 1f8a089 | 2011-11-18 00:14:24 | [diff] [blame] | 17 | API_ID_PPB_AUDIO_INPUT_DEV, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 18 | API_ID_PPB_BROKER, |
| 19 | API_ID_PPB_BUFFER, |
| 20 | API_ID_PPB_CONTEXT_3D, |
| 21 | API_ID_PPB_CORE, |
| 22 | API_ID_PPB_CURSORCONTROL, |
| 23 | API_ID_PPB_FILE_CHOOSER, |
[email protected] | cc6db92 | 2011-12-10 16:54:22 | [diff] [blame] | 24 | API_ID_PPB_FILE_IO, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 25 | API_ID_PPB_FILE_REF, |
| 26 | API_ID_PPB_FILE_SYSTEM, |
[email protected] | 502ec4dd | 2012-06-11 20:45:01 | [diff] [blame] | 27 | API_ID_PPB_FLASH_DEVICE_ID, |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 28 | API_ID_PPB_FLASH_FONTFILE, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 29 | API_ID_PPB_FLASH_MENU, |
[email protected] | cd2af39 | 2012-01-31 09:19:17 | [diff] [blame] | 30 | API_ID_PPB_FLASH_MESSAGELOOP, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 31 | API_ID_PPB_FONT, |
| 32 | API_ID_PPB_GRAPHICS_2D, |
| 33 | API_ID_PPB_GRAPHICS_3D, |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 34 | API_ID_PPB_IMAGE_DATA, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 35 | API_ID_PPB_INSTANCE, |
| 36 | API_ID_PPB_INSTANCE_PRIVATE, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 37 | API_ID_PPB_OPENGLES2, |
| 38 | API_ID_PPB_PDF, |
| 39 | API_ID_PPB_SURFACE_3D, |
[email protected] | 95cc0fe | 2012-03-19 23:03:16 | [diff] [blame] | 40 | API_ID_PPB_TALK, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 41 | API_ID_PPB_TESTING, |
| 42 | API_ID_PPB_TEXT_INPUT, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 43 | API_ID_PPB_URL_RESPONSE_INFO, |
[email protected] | 8cc26a4 | 2011-12-15 21:22:31 | [diff] [blame] | 44 | API_ID_PPB_VAR_ARRAY_BUFFER, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 45 | API_ID_PPB_VAR_DEPRECATED, |
| 46 | API_ID_PPB_VIDEO_CAPTURE_DEV, |
| 47 | API_ID_PPB_VIDEO_DECODER_DEV, |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 48 | API_ID_PPB_X509_CERTIFICATE_PRIVATE, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 49 | |
| 50 | API_ID_PPP_CLASS, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 51 | // TODO(tomfinegan): Remove this after we refactor things to load the PPP |
| 52 | // interface struct from the PPB interface. |
| 53 | API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 54 | API_ID_PPP_GRAPHICS_3D, |
| 55 | API_ID_PPP_INPUT_EVENT, |
| 56 | API_ID_PPP_INSTANCE, |
| 57 | API_ID_PPP_INSTANCE_PRIVATE, |
| 58 | API_ID_PPP_MESSAGING, |
| 59 | API_ID_PPP_MOUSE_LOCK, |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 60 | API_ID_PPP_PRINTING, |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 61 | API_ID_PPP_TEXT_INPUT, |
[email protected] | ac4b54d | 2011-10-20 23:09:28 | [diff] [blame] | 62 | API_ID_PPP_VIDEO_CAPTURE_DEV, |
| 63 | API_ID_PPP_VIDEO_DECODER_DEV, |
| 64 | |
| 65 | API_ID_RESOURCE_CREATION, |
| 66 | |
| 67 | // Must be last to indicate the number of interface IDs. |
| 68 | API_ID_COUNT |
| 69 | }; |
| 70 | |
| 71 | } // namespace ppapi |
| 72 | |
| 73 | #endif // PPAPI_SHARED_IMPL_API_ID_H_ |