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 |
5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_ | 6 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_ |
6 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ | 7 #define PPAPI_C_PRIVATE_PPB_FLASH_H_ |
7 | 8 |
8 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_module.h" | 11 #include "ppapi/c/pp_module.h" |
11 #include "ppapi/c/pp_point.h" | 12 #include "ppapi/c/pp_point.h" |
12 #include "ppapi/c/pp_rect.h" | 13 #include "ppapi/c/pp_rect.h" |
13 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
14 #include "ppapi/c/pp_time.h" | 15 #include "ppapi/c/pp_time.h" |
15 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
16 | 17 |
17 #define PPB_FLASH_INTERFACE "PPB_Flash;11" | 18 #define PPB_FLASH_INTERFACE "PPB_Flash;11" |
18 | 19 |
20 /** | |
21 * @file | |
22 * This file contains PPB_Flash interface. */ | |
23 | |
24 | |
25 /** | |
26 * @addtogroup Interfaces | |
27 * @{ | |
28 */ | |
29 /* PPB_Flash interface. */ | |
19 struct PPB_Flash { | 30 struct PPB_Flash { |
noelallen_use_chromium
2011/11/12 05:43:30
Should be:
struct PPB_Flash {
/**
* Sets or c
viettrungluu
2011/11/12 06:53:02
Done.
| |
20 // Sets or clears the rendering hint that the given plugin instance is always | 31 /* Sets or clears the rendering hint that the given plugin instance is always |
21 // on top of page content. Somewhat more optimized painting can be used in | 32 * on top of page content. Somewhat more optimized painting can be used in |
22 // this case. | 33 * this case. |
34 */ | |
23 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 35 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
24 | |
25 PP_Bool (*DrawGlyphs)(PP_Instance instance, | 36 PP_Bool (*DrawGlyphs)(PP_Instance instance, |
26 PP_Resource pp_image_data, | 37 PP_Resource pp_image_data, |
27 const struct PP_FontDescription_Dev* font_desc, | 38 const struct PP_FontDescription_Dev* font_desc, |
28 uint32_t color, | 39 uint32_t color, |
29 struct PP_Point position, | 40 struct PP_Point position, |
30 struct PP_Rect clip, | 41 struct PP_Rect clip, |
31 const float transformation[3][3], | 42 const float transformation[3][3], |
32 uint32_t glyph_count, | 43 uint32_t glyph_count, |
33 const uint16_t glyph_indices[], | 44 const uint16_t glyph_indices[], |
34 const struct PP_Point glyph_advances[]); | 45 const struct PP_Point glyph_advances[]); |
35 | 46 /* Retrieves the proxy that will be used for the given URL. The result will |
36 // Retrieves the proxy that will be used for the given URL. The result will | 47 * be a string in PAC format, or an undefined var on error. |
37 // be a string in PAC format, or an undefined var on error. | 48 */ |
38 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | 49 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
39 | 50 /* Navigate to the URL given by the given URLRequestInfo. (This supports GETs, |
40 // Navigate to the URL given by the given URLRequestInfo. (This supports GETs, | 51 * POSTs, and javascript: URLs.) May open a new tab if target is not "_self". |
41 // POSTs, and javascript: URLs.) May open a new tab if target is not "_self". | 52 */ |
42 int32_t (*Navigate)(PP_Resource request_info, | 53 int32_t (*Navigate)(PP_Resource request_info, |
43 const char* target, | 54 const char* target, |
44 bool from_user_action); | 55 bool from_user_action); |
45 | 56 /* Runs a nested message loop. The plugin will be reentered from this call. |
46 // Runs a nested message loop. The plugin will be reentered from this call. | 57 * This function is used in places where Flash would normally enter a nested |
47 // This function is used in places where Flash would normally enter a nested | 58 * message loop (e.g., when displaying context menus), but Pepper provides |
48 // message loop (e.g., when displaying context menus), but Pepper provides | 59 * only an asynchronous call. After performing that asynchronous call, call |
49 // only an asynchronous call. After performing that asynchronous call, call | 60 * |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|. |
50 // |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|. | 61 */ |
51 void (*RunMessageLoop)(PP_Instance instance); | 62 void (*RunMessageLoop)(PP_Instance instance); |
52 | 63 /* Posts a quit message for the outermost nested message loop. Use this to |
53 // Posts a quit message for the outermost nested message loop. Use this to | 64 * exit and return back to the caller after you call RunMessageLoop. |
54 // exit and return back to the caller after you call RunMessageLoop. | 65 */ |
55 void (*QuitMessageLoop)(PP_Instance instance); | 66 void (*QuitMessageLoop)(PP_Instance instance); |
56 | 67 /* Retrieves the local time zone offset from GM time for the given UTC time. |
57 // Retrieves the local time zone offset from GM time for the given UTC time. | 68 */ |
58 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 69 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
59 | 70 /* Gets a (string) with "command-line" options for Flash; used to pass |
60 // Gets a (string) with "command-line" options for Flash; used to pass | 71 * run-time debugging parameters, etc. |
61 // run-time debugging parameters, etc. | 72 */ |
62 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 73 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
63 }; | 74 }; |
75 /** | |
76 * @} | |
77 */ | |
64 | 78 |
65 #endif // PPAPI_C_PRIVATE_PPB_FLASH_H_ | 79 #endif /* PPAPI_C_PRIVATE_PPB_FLASH_H_ */ |
OLD | NEW |