OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_C_PRIVATE_PPB_FLASH_MENU_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_MENU_H_ |
6 #define PPAPI_C_PRIVATE_PPB_FLASH_MENU_H_ | 6 #define PPAPI_C_PRIVATE_PPB_FLASH_MENU_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_point.h" | 10 #include "ppapi/c/pp_point.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 | 12 |
13 #define PPB_FLASH_MENU_INTERFACE "PPB_Flash_Menu;1" | 13 #define PPB_FLASH_MENU_INTERFACE "PPB_Flash_Menu;0.2" |
14 | 14 |
15 struct PP_CompletionCallback; | 15 struct PP_CompletionCallback; |
16 | 16 |
17 typedef enum { | 17 typedef enum { |
18 // TODO(viettrungluu): Radio items not supported yet. Will also probably want | 18 // TODO(viettrungluu): Radio items not supported yet. Will also probably want |
19 // special menu items tied to clipboard access. | 19 // special menu items tied to clipboard access. |
20 PP_FLASH_MENUITEM_TYPE_NORMAL = 0, | 20 PP_FLASH_MENUITEM_TYPE_NORMAL = 0, |
21 PP_FLASH_MENUITEM_TYPE_CHECKBOX, | 21 PP_FLASH_MENUITEM_TYPE_CHECKBOX, |
22 PP_FLASH_MENUITEM_TYPE_SEPARATOR, | 22 PP_FLASH_MENUITEM_TYPE_SEPARATOR, |
23 PP_FLASH_MENUITEM_TYPE_SUBMENU | 23 PP_FLASH_MENUITEM_TYPE_SUBMENU |
(...skipping 22 matching lines...) Expand all Loading... |
46 // |selected_id| will be set to its |id| and the callback called with |PP_OK|. | 46 // |selected_id| will be set to its |id| and the callback called with |PP_OK|. |
47 // If the user dismisses the menu without selecting an item, | 47 // If the user dismisses the menu without selecting an item, |
48 // |PP_ERROR_USERCANCEL| will be indicated. | 48 // |PP_ERROR_USERCANCEL| will be indicated. |
49 int32_t (*Show)(PP_Resource menu_id, | 49 int32_t (*Show)(PP_Resource menu_id, |
50 const struct PP_Point* location, | 50 const struct PP_Point* location, |
51 int32_t* selected_id, | 51 int32_t* selected_id, |
52 struct PP_CompletionCallback callback); | 52 struct PP_CompletionCallback callback); |
53 }; | 53 }; |
54 | 54 |
55 #endif // PPAPI_C_PRIVATE_PPB_FLASH_MENU_H_ | 55 #endif // PPAPI_C_PRIVATE_PPB_FLASH_MENU_H_ |
OLD | NEW |