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

Side by Side Diff: ppapi/thunk/resource_creation_api.h

Issue 10905227: Introduce PPB_Flash_Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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) 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_THUNK_RESOURCE_CREATION_API_H_ 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_
7 7
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
11 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/ppb_audio.h" 13 #include "ppapi/c/ppb_audio.h"
14 #include "ppapi/c/ppb_audio_config.h" 14 #include "ppapi/c/ppb_audio_config.h"
15 #include "ppapi/c/ppb_file_system.h" 15 #include "ppapi/c/ppb_file_system.h"
16 #include "ppapi/c/ppb_graphics_3d.h" 16 #include "ppapi/c/ppb_graphics_3d.h"
17 #include "ppapi/c/ppb_image_data.h" 17 #include "ppapi/c/ppb_image_data.h"
18 #include "ppapi/c/ppb_input_event.h" 18 #include "ppapi/c/ppb_input_event.h"
19 #include "ppapi/c/ppb_websocket.h" 19 #include "ppapi/c/ppb_websocket.h"
20 #include "ppapi/c/dev/pp_video_dev.h" 20 #include "ppapi/c/dev/pp_video_dev.h"
21 #include "ppapi/c/private/pp_private_font_charset.h"
21 #include "ppapi/c/private/ppb_network_monitor_private.h" 22 #include "ppapi/c/private/ppb_network_monitor_private.h"
22 #include "ppapi/shared_impl/api_id.h" 23 #include "ppapi/shared_impl/api_id.h"
23 24
24 struct PP_Flash_Menu; 25 struct PP_Flash_Menu;
26 struct PP_FontDescription_Dev;
25 struct PP_BrowserFont_Trusted_Description; 27 struct PP_BrowserFont_Trusted_Description;
26 struct PP_Size; 28 struct PP_Size;
27 29
28 namespace ppapi { 30 namespace ppapi {
29 31
30 struct URLRequestInfoData; 32 struct URLRequestInfoData;
31 33
32 namespace thunk { 34 namespace thunk {
33 35
34 // A functional API for creating resource types. Separating out the creation 36 // A functional API for creating resource types. Separating out the creation
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual PP_Resource CreateBrowserFont( 137 virtual PP_Resource CreateBrowserFont(
136 PP_Instance instance, 138 PP_Instance instance,
137 const PP_BrowserFont_Trusted_Description* description) = 0; 139 const PP_BrowserFont_Trusted_Description* description) = 0;
138 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0; 140 virtual PP_Resource CreateBuffer(PP_Instance instance, uint32_t size) = 0;
139 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) = 0; 141 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) = 0;
140 virtual PP_Resource CreateFileChooser( 142 virtual PP_Resource CreateFileChooser(
141 PP_Instance instance, 143 PP_Instance instance,
142 PP_FileChooserMode_Dev mode, 144 PP_FileChooserMode_Dev mode,
143 const char* accept_types) = 0; 145 const char* accept_types) = 0;
144 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) = 0; 146 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) = 0;
147 virtual PP_Resource CreateFlashFontFile(
148 PP_Instance instance,
149 const PP_FontDescription_Dev* description,
150 PP_PrivateFontCharset charset) = 0;
145 virtual PP_Resource CreateFlashMenu(PP_Instance instance, 151 virtual PP_Resource CreateFlashMenu(PP_Instance instance,
146 const PP_Flash_Menu* menu_data) = 0; 152 const PP_Flash_Menu* menu_data) = 0;
147 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) = 0; 153 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) = 0;
148 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0; 154 virtual PP_Resource CreatePrinting(PP_Instance instance) = 0;
149 virtual PP_Resource CreateScrollbar(PP_Instance instance, 155 virtual PP_Resource CreateScrollbar(PP_Instance instance,
150 PP_Bool vertical) = 0; 156 PP_Bool vertical) = 0;
151 virtual PP_Resource CreateTalk(PP_Instance instance) = 0; 157 virtual PP_Resource CreateTalk(PP_Instance instance) = 0;
152 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; 158 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0;
153 virtual PP_Resource CreateVideoDecoder( 159 virtual PP_Resource CreateVideoDecoder(
154 PP_Instance instance, 160 PP_Instance instance,
155 PP_Resource context3d_id, 161 PP_Resource context3d_id,
156 PP_VideoDecoder_Profile profile) = 0; 162 PP_VideoDecoder_Profile profile) = 0;
157 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; 163 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0;
158 #endif // !defined(OS_NACL) 164 #endif // !defined(OS_NACL)
159 165
160 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 166 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
161 }; 167 };
162 168
163 } // namespace thunk 169 } // namespace thunk
164 } // namespace ppapi 170 } // namespace ppapi
165 171
166 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 172 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698