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_GLUE_PLUGINS_PPB_PRIVATE2_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE2_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE2_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 "third_party/ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
13 #include "third_party/ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "third_party/ppapi/c/pp_module.h" | 14 #include "ppapi/c/pp_module.h" |
15 #include "third_party/ppapi/c/pp_point.h" | 15 #include "ppapi/c/pp_point.h" |
16 #include "third_party/ppapi/c/pp_rect.h" | 16 #include "ppapi/c/pp_rect.h" |
17 #include "third_party/ppapi/c/pp_resource.h" | 17 #include "ppapi/c/pp_resource.h" |
18 #include "third_party/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_PRIVATE2_INTERFACE "PPB_Private2;4" |
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 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_PRIVATE2_H_ |
OLD | NEW |