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 WEBKIT_GLUE_PLUGINS_PPB_PRIVATE2_H_ | 5 #ifndef WEBKIT_PLUGINS_PEPPER_PPB_FLASH_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE2_H_ | 6 #define WEBKIT_PLUGINS_PEPPER_PPB_FLASH_H_ |
7 | 7 |
8 #ifdef _WIN32 | 8 #ifdef _WIN32 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_module.h" | 14 #include "ppapi/c/pp_module.h" |
15 #include "ppapi/c/pp_point.h" | 15 #include "ppapi/c/pp_point.h" |
16 #include "ppapi/c/pp_rect.h" | 16 #include "ppapi/c/pp_rect.h" |
17 #include "ppapi/c/pp_resource.h" | 17 #include "ppapi/c/pp_resource.h" |
18 #include "ppapi/c/pp_var.h" | 18 #include "ppapi/c/pp_var.h" |
19 | 19 |
20 #define PPB_PRIVATE2_INTERFACE "PPB_Private2;4" | 20 #define PPB_FLASH_INTERFACE "PPB_Flash;1" |
21 | 21 |
22 #ifdef _WIN32 | 22 #ifdef _WIN32 |
23 typedef HANDLE PP_FileHandle; | 23 typedef HANDLE PP_FileHandle; |
24 static const PP_FileHandle PP_kInvalidFileHandle = NULL; | 24 static const PP_FileHandle PP_kInvalidFileHandle = NULL; |
25 #else | 25 #else |
26 typedef int PP_FileHandle; | 26 typedef int PP_FileHandle; |
27 static const PP_FileHandle PP_kInvalidFileHandle = -1; | 27 static const PP_FileHandle PP_kInvalidFileHandle = -1; |
28 #endif | 28 #endif |
29 | 29 |
30 struct PP_FontDescription_Dev; | 30 struct PP_FontDescription_Dev; |
31 struct PP_FileInfo_Dev; | 31 struct PP_FileInfo_Dev; |
32 | 32 |
33 struct PP_DirEntry_Dev { | 33 struct PP_DirEntry_Dev { |
34 const char* name; | 34 const char* name; |
35 bool is_dir; | 35 bool is_dir; |
36 }; | 36 }; |
37 | 37 |
38 struct PP_DirContents_Dev { | 38 struct PP_DirContents_Dev { |
39 int32_t count; | 39 int32_t count; |
40 PP_DirEntry_Dev* entries; | 40 PP_DirEntry_Dev* entries; |
41 }; | 41 }; |
42 | 42 |
43 struct PPB_Private2 { | 43 struct PPB_Flash { |
44 // Sets or clears the rendering hint that the given plugin instance is always | 44 // Sets or clears the rendering hint that the given plugin instance is always |
45 // on top of page content. Somewhat more optimized painting can be used in | 45 // on top of page content. Somewhat more optimized painting can be used in |
46 // this case. | 46 // this case. |
47 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, bool on_top); | 47 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, bool on_top); |
48 | 48 |
49 bool (*DrawGlyphs)(PP_Resource pp_image_data, | 49 bool (*DrawGlyphs)(PP_Resource pp_image_data, |
50 const PP_FontDescription_Dev* font_desc, | 50 const PP_FontDescription_Dev* font_desc, |
51 uint32_t color, | 51 uint32_t color, |
52 PP_Point position, | 52 PP_Point position, |
53 PP_Rect clip, | 53 PP_Rect clip, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 PP_DirContents_Dev* contents); | 107 PP_DirContents_Dev* contents); |
108 | 108 |
109 // Navigate to URL. May open a new tab if target is not "_self". Return true | 109 // Navigate to URL. May open a new tab if target is not "_self". Return true |
110 // if success. This differs from javascript:window.open() in that it bypasses | 110 // if success. This differs from javascript:window.open() in that it bypasses |
111 // the popup blocker, even when this is not called from an event handler. | 111 // the popup blocker, even when this is not called from an event handler. |
112 bool (*NavigateToURL)(PP_Instance instance, | 112 bool (*NavigateToURL)(PP_Instance instance, |
113 const char* url, | 113 const char* url, |
114 const char* target); | 114 const char* target); |
115 }; | 115 }; |
116 | 116 |
117 #endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE2_H_ | 117 #endif // WEBKIT_GLUE_PLUGINS_PPB_FLASH_H_ |
OLD | NEW |