summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/ppb_private2.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/ppb_private2.h')
-rw-r--r--webkit/glue/plugins/ppb_private2.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/webkit/glue/plugins/ppb_private2.h b/webkit/glue/plugins/ppb_private2.h
index 0b0df98..acf7831 100644
--- a/webkit/glue/plugins/ppb_private2.h
+++ b/webkit/glue/plugins/ppb_private2.h
@@ -9,15 +9,15 @@
#include <windows.h>
#endif
-#include "third_party/ppapi/c/pp_errors.h"
-#include "third_party/ppapi/c/pp_instance.h"
-#include "third_party/ppapi/c/pp_module.h"
-#include "third_party/ppapi/c/pp_point.h"
-#include "third_party/ppapi/c/pp_rect.h"
-#include "third_party/ppapi/c/pp_resource.h"
-#include "third_party/ppapi/c/pp_var.h"
+#include "ppapi/c/pp_errors.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_module.h"
+#include "ppapi/c/pp_point.h"
+#include "ppapi/c/pp_rect.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_var.h"
-#define PPB_PRIVATE2_INTERFACE "PPB_Private2;3"
+#define PPB_PRIVATE2_INTERFACE "PPB_Private2;4"
#ifdef _WIN32
typedef HANDLE PP_FileHandle;
@@ -105,6 +105,13 @@ struct PPB_Private2 {
// Frees the data allocated by GetModuleLocalDirContents.
void (*FreeModuleLocalDirContents)(PP_Module module,
PP_DirContents_Dev* contents);
+
+ // Navigate to URL. May open a new tab if target is not "_self". Return true
+ // if success. This differs from javascript:window.open() in that it bypasses
+ // the popup blocker, even when this is not called from an event handler.
+ bool (*NavigateToURL)(PP_Instance instance,
+ const char* url,
+ const char* target);
};
#endif // WEBKIT_GLUE_PLUGINS_PPB_PRIVATE2_H_