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

Unified Diff: ppapi/c/dev/ppb_testing_dev.h

Issue 8840007: GetDocumentURL is added to PPB_Testing_Dev. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed codereview issues. Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/api/dev/ppb_url_util_dev.idl ('k') | ppapi/c/dev/ppb_url_util_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_testing_dev.h
diff --git a/ppapi/c/dev/ppb_testing_dev.h b/ppapi/c/dev/ppb_testing_dev.h
index a494e28f1660289dd4eae7291f9d71ef6c3c2a1d..c892f6bbb43b3b1d4fb0d7896f1d735d342723b7 100644
--- a/ppapi/c/dev/ppb_testing_dev.h
+++ b/ppapi/c/dev/ppb_testing_dev.h
@@ -3,21 +3,24 @@
* found in the LICENSE file.
*/
-/* From dev/ppb_testing_dev.idl modified Sat Nov 19 15:58:18 2011. */
+/* From dev/ppb_testing_dev.idl modified Wed Dec 14 12:58:12 2011. */
#ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_
#define PPAPI_C_DEV_PPB_TESTING_DEV_H_
+#include "ppapi/c/dev/ppb_url_util_dev.h"
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
#define PPB_TESTING_DEV_INTERFACE_0_7 "PPB_Testing(Dev);0.7"
#define PPB_TESTING_DEV_INTERFACE_0_8 "PPB_Testing(Dev);0.8"
-#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_8
+#define PPB_TESTING_DEV_INTERFACE_0_9 "PPB_Testing(Dev);0.9"
+#define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_9
/**
* @file
@@ -112,6 +115,15 @@ struct PPB_Testing_Dev {
* performs.
*/
void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
+ /**
+ * Returns the URL for the document. This is a safe way to retrieve
+ * window.location.href.
+ * If the canonicalized URL is valid, the method will parse the URL
+ * and fill in the components structure. This pointer may be NULL
+ * to specify that no component information is necessary.
+ */
+ struct PP_Var (*GetDocumentURL)(PP_Instance instance,
+ struct PP_URLComponents_Dev* components);
};
struct PPB_Testing_Dev_0_7 {
@@ -123,6 +135,17 @@ struct PPB_Testing_Dev_0_7 {
uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
PP_Bool (*IsOutOfProcess)();
};
+
+struct PPB_Testing_Dev_0_8 {
+ PP_Bool (*ReadImageData)(PP_Resource device_context_2d,
+ PP_Resource image,
+ const struct PP_Point* top_left);
+ void (*RunMessageLoop)(PP_Instance instance);
+ void (*QuitMessageLoop)(PP_Instance instance);
+ uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
+ PP_Bool (*IsOutOfProcess)();
+ void (*SimulateInputEvent)(PP_Instance instance, PP_Resource input_event);
+};
/**
* @}
*/
« no previous file with comments | « ppapi/api/dev/ppb_url_util_dev.idl ('k') | ppapi/c/dev/ppb_url_util_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698