OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEV_PPP_SELECTION_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPP_SELECTION_DEV_H_ |
6 #define PPAPI_C_DEV_PPP_SELECTION_DEV_H_ | 6 #define PPAPI_C_DEV_PPP_SELECTION_DEV_H_ |
7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" |
8 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
10 | 11 |
11 #define PPP_SELECTION_DEV_INTERFACE "PPP_Selection(Dev);0.1" | 12 #define PPP_SELECTION_DEV_INTERFACE "PPP_Selection(Dev);0.2" |
12 | 13 |
13 struct PPP_Selection_Dev { | 14 struct PPP_Selection_Dev { |
14 /** | 15 /** |
15 * Returns the selection, either as plain text or as html depending on "html". | 16 * Returns the selection, either as plain text or as html depending on "html". |
16 * If nothing is selected, or if the given format is unavailable, return a | 17 * If nothing is selected, or if the given format is unavailable, return a |
17 * void string. | 18 * void string. |
18 */ | 19 */ |
19 struct PP_Var (*GetSelectedText)(PP_Instance instance, | 20 struct PP_Var (*GetSelectedText)(PP_Instance instance, |
20 bool html); | 21 PP_Bool html); |
21 }; | 22 }; |
22 | 23 |
23 #endif // PPAPI_C_DEV_PPP_SELECTION_DEV_H_ | 24 #endif // PPAPI_C_DEV_PPP_SELECTION_DEV_H_ |
OLD | NEW |