Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: ppapi/c/dev/ppb_font_list_dev.h

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_DEV_PPB_FONT_LIST_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_FONT_LIST_DEV_H_
6 #define PPAPI_C_DEV_PPB_FONT_LIST_DEV_H_ 6 #define PPAPI_C_DEV_PPB_FONT_LIST_DEV_H_
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/c/pp_var.h" 11 #include "ppapi/c/pp_var.h"
12 12
13 #define PPB_FONT_LIST_DEV_INTERFACE_0_1 "PPB_FontList(Dev);0.1" 13 #define PPB_FONT_LIST_DEV_INTERFACE_0_2 "PPB_FontList(Dev);0.2"
14 #define PPB_FONT_LIST_DEV_INTERFACE PPB_FONT_LIST_DEV_INTERFACE_0_1 14 #define PPB_FONT_LIST_DEV_INTERFACE PPB_FONT_LIST_DEV_INTERFACE_0_2
15 15
16 struct PPB_FontList_Dev { 16 struct PPB_FontList_Dev {
17 /* Creates a font list resource. By default, the list will be empty, you must 17 /* Creates a font list resource. By default, the list will be empty, you must
18 * call Initialize before calling any other functions to actually populate 18 * call Initialize before calling any other functions to actually populate
19 * the fonts. 19 * the fonts.
20 */ 20 */
21 PP_Resource (*Create)(PP_Instance instance); 21 PP_Resource (*Create)(PP_Instance instance);
22 22
23 /* Actually retrieves the fonts associated with this resource. This function 23 /* Actually retrieves the fonts associated with this resource. This function
24 * will complete asynchronously (it may be slow to get all of the fonts from 24 * will complete asynchronously (it may be slow to get all of the fonts from
(...skipping 11 matching lines...) Expand all
36 /* Retrieves the font family name at the given index, returning it in a 36 /* Retrieves the font family name at the given index, returning it in a
37 * string var. Valid indices are [0, GetListSize). Passing an invalid 37 * string var. Valid indices are [0, GetListSize). Passing an invalid
38 * resource, an out-of-range index, or a FontList that has not issued its 38 * resource, an out-of-range index, or a FontList that has not issued its
39 * create completion callback from Initialize() yet will result in a Null var 39 * create completion callback from Initialize() yet will result in a Null var
40 * being returned. 40 * being returned.
41 */ 41 */
42 struct PP_Var (*GetFontFaceAt)(PP_Resource font_list, int32_t index); 42 struct PP_Var (*GetFontFaceAt)(PP_Resource font_list, int32_t index);
43 }; 43 };
44 44
45 #endif /* PPAPI_C_DEV_PPB_FONT_LIST_DEV_H_ */ 45 #endif /* PPAPI_C_DEV_PPB_FONT_LIST_DEV_H_ */
46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698