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

Side by Side Diff: ppapi/c/private/ppb_flash.h

Issue 6542064: Add some files to the C compilation test, and fix some stuff that wasn't C com... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
« no previous file with comments | « ppapi/c/dev/ppb_context_3d_trusted_dev.h ('k') | ppapi/c/private/ppb_flash_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PRIVATE_PPB_FLASH_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_
6 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ 6 #define PPAPI_C_PRIVATE_PPB_FLASH_H_
7 7
8 #ifdef _WIN32 8 #ifdef _WIN32
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 22 matching lines...) Expand all
33 struct PP_FontDescription_Dev; 33 struct PP_FontDescription_Dev;
34 struct PP_FileInfo_Dev; 34 struct PP_FileInfo_Dev;
35 35
36 struct PP_DirEntry_Dev { 36 struct PP_DirEntry_Dev {
37 const char* name; 37 const char* name;
38 PP_Bool is_dir; 38 PP_Bool is_dir;
39 }; 39 };
40 40
41 struct PP_DirContents_Dev { 41 struct PP_DirContents_Dev {
42 int32_t count; 42 int32_t count;
43 PP_DirEntry_Dev* entries; 43 struct PP_DirEntry_Dev* entries;
44 }; 44 };
45 45
46 struct PPB_Flash { 46 struct PPB_Flash {
47 // Sets or clears the rendering hint that the given plugin instance is always 47 // Sets or clears the rendering hint that the given plugin instance is always
48 // on top of page content. Somewhat more optimized painting can be used in 48 // on top of page content. Somewhat more optimized painting can be used in
49 // this case. 49 // this case.
50 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); 50 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
51 51
52 PP_Bool (*DrawGlyphs)(PP_Instance instance, 52 PP_Bool (*DrawGlyphs)(PP_Instance instance,
53 PP_Resource pp_image_data, 53 PP_Resource pp_image_data,
54 const PP_FontDescription_Dev* font_desc, 54 const struct PP_FontDescription_Dev* font_desc,
55 uint32_t color, 55 uint32_t color,
56 PP_Point position, 56 struct PP_Point position,
57 PP_Rect clip, 57 struct PP_Rect clip,
58 const float transformation[3][3], 58 const float transformation[3][3],
59 uint32_t glyph_count, 59 uint32_t glyph_count,
60 const uint16_t glyph_indices[], 60 const uint16_t glyph_indices[],
61 const PP_Point glyph_advances[]); 61 const struct PP_Point glyph_advances[]);
62 62
63 // Retrieves the proxy that will be used for the given URL. The result will 63 // Retrieves the proxy that will be used for the given URL. The result will
64 // be a string in PAC format, or an undefined var on error. 64 // be a string in PAC format, or an undefined var on error.
65 PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); 65 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url);
66 66
67 // Opens a module-local file, returning a file descriptor (posix) or a HANDLE 67 // Opens a module-local file, returning a file descriptor (posix) or a HANDLE
68 // (win32) into file. Module-local file paths (here and below) are 68 // (win32) into file. Module-local file paths (here and below) are
69 // '/'-separated UTF-8 strings, relative to a module-specific root. The return 69 // '/'-separated UTF-8 strings, relative to a module-specific root. The return
70 // value is the ppapi error, PP_OK if success, one of the PP_ERROR_* in case 70 // value is the ppapi error, PP_OK if success, one of the PP_ERROR_* in case
71 // of failure. 71 // of failure.
72 int32_t (*OpenModuleLocalFile)(PP_Instance instance, 72 int32_t (*OpenModuleLocalFile)(PP_Instance instance,
73 const char* path, 73 const char* path,
74 int32_t mode, 74 int32_t mode,
75 PP_FileHandle* file); 75 PP_FileHandle* file);
(...skipping 13 matching lines...) Expand all
89 PP_Bool recursive); 89 PP_Bool recursive);
90 90
91 // Creates a module-local directory. The return value is the ppapi error, 91 // Creates a module-local directory. The return value is the ppapi error,
92 // PP_OK if success, one of the PP_ERROR_* in case of failure. 92 // PP_OK if success, one of the PP_ERROR_* in case of failure.
93 int32_t (*CreateModuleLocalDir)(PP_Instance instance, const char* path); 93 int32_t (*CreateModuleLocalDir)(PP_Instance instance, const char* path);
94 94
95 // Queries information about a module-local file. The return value is the 95 // Queries information about a module-local file. The return value is the
96 // ppapi error, PP_OK if success, one of the PP_ERROR_* in case of failure. 96 // ppapi error, PP_OK if success, one of the PP_ERROR_* in case of failure.
97 int32_t (*QueryModuleLocalFile)(PP_Instance instance, 97 int32_t (*QueryModuleLocalFile)(PP_Instance instance,
98 const char* path, 98 const char* path,
99 PP_FileInfo_Dev* info); 99 struct PP_FileInfo_Dev* info);
100 100
101 // Gets the list of files contained in a module-local directory. The return 101 // Gets the list of files contained in a module-local directory. The return
102 // value is the ppapi error, PP_OK if success, one of the PP_ERROR_* in case 102 // value is the ppapi error, PP_OK if success, one of the PP_ERROR_* in case
103 // of failure. If non-NULL, the returned contents should be freed with 103 // of failure. If non-NULL, the returned contents should be freed with
104 // FreeModuleLocalDirContents. 104 // FreeModuleLocalDirContents.
105 int32_t (*GetModuleLocalDirContents)(PP_Instance instance, 105 int32_t (*GetModuleLocalDirContents)(PP_Instance instance,
106 const char* path, 106 const char* path,
107 PP_DirContents_Dev** contents); 107 struct PP_DirContents_Dev** contents);
108 108
109 // Frees the data allocated by GetModuleLocalDirContents. 109 // Frees the data allocated by GetModuleLocalDirContents.
110 void (*FreeModuleLocalDirContents)(PP_Instance instance, 110 void (*FreeModuleLocalDirContents)(PP_Instance instance,
111 PP_DirContents_Dev* contents); 111 struct PP_DirContents_Dev* contents);
112 112
113 // Navigate to URL. May open a new tab if target is not "_self". Return true 113 // Navigate to URL. May open a new tab if target is not "_self". Return true
114 // if success. This differs from javascript:window.open() in that it bypasses 114 // if success. This differs from javascript:window.open() in that it bypasses
115 // the popup blocker, even when this is not called from an event handler. 115 // the popup blocker, even when this is not called from an event handler.
116 PP_Bool (*NavigateToURL)(PP_Instance instance, 116 PP_Bool (*NavigateToURL)(PP_Instance instance,
117 const char* url, 117 const char* url,
118 const char* target); 118 const char* target);
119 119
120 // Runs a nested message loop. The plugin will be reentered from this call. 120 // Runs a nested message loop. The plugin will be reentered from this call.
121 // This function is used in places where Flash would normally enter a nested 121 // This function is used in places where Flash would normally enter a nested
(...skipping 23 matching lines...) Expand all
145 145
146 // Connect to a TCP port given as a host-port pair. The local and remote 146 // Connect to a TCP port given as a host-port pair. The local and remote
147 // addresses of the connection (if successful) are returned in 147 // addresses of the connection (if successful) are returned in
148 // |local_addr_out| and |remote_addr_out|, respectively, if non-null. 148 // |local_addr_out| and |remote_addr_out|, respectively, if non-null.
149 int32_t (*ConnectTcp)(PP_Resource connector_id, 149 int32_t (*ConnectTcp)(PP_Resource connector_id,
150 const char* host, 150 const char* host,
151 uint16_t port, 151 uint16_t port,
152 PP_FileHandle* socket_out, 152 PP_FileHandle* socket_out,
153 struct PP_Flash_NetAddress* local_addr_out, 153 struct PP_Flash_NetAddress* local_addr_out,
154 struct PP_Flash_NetAddress* remote_addr_out, 154 struct PP_Flash_NetAddress* remote_addr_out,
155 PP_CompletionCallback callback); 155 struct PP_CompletionCallback callback);
156 156
157 // Same as |ConnectTcp()|, but connecting to the address given by |addr|. A 157 // Same as |ConnectTcp()|, but connecting to the address given by |addr|. A
158 // typical use-case would be for reconnections. 158 // typical use-case would be for reconnections.
159 int32_t (*ConnectTcpAddress)(PP_Resource connector_id, 159 int32_t (*ConnectTcpAddress)(PP_Resource connector_id,
160 const struct PP_Flash_NetAddress* addr, 160 const struct PP_Flash_NetAddress* addr,
161 PP_FileHandle* socket_out, 161 PP_FileHandle* socket_out,
162 struct PP_Flash_NetAddress* local_addr_out, 162 struct PP_Flash_NetAddress* local_addr_out,
163 struct PP_Flash_NetAddress* remote_addr_out, 163 struct PP_Flash_NetAddress* remote_addr_out,
164 PP_CompletionCallback callback); 164 struct PP_CompletionCallback callback);
165 }; 165 };
166 166
167 #endif // PPAPI_C_PRIVATE_PPB_FLASH_H_ 167 #endif // PPAPI_C_PRIVATE_PPB_FLASH_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_context_3d_trusted_dev.h ('k') | ppapi/c/private/ppb_flash_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698