diff options
author | noelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 00:09:28 +0000 |
---|---|---|
committer | noelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 00:09:28 +0000 |
commit | 9b37f48059bebc7fbc7ce51203ebb1eaea873548 (patch) | |
tree | 90b6d2bbb47f14fc502c50efd7bb386a5790fe9d /ppapi/c/ppp_instance.h | |
parent | 5eef288b86b805e5d0d18d9a83a1d5416655a330 (diff) | |
download | chromium_src-9b37f48059bebc7fbc7ce51203ebb1eaea873548.zip chromium_src-9b37f48059bebc7fbc7ce51203ebb1eaea873548.tar.gz chromium_src-9b37f48059bebc7fbc7ce51203ebb1eaea873548.tar.bz2 |
More trivial cleanupi of ppapi/c headers
These headers were autogenerated from ppapi/api/*.idl
BUG= http://code.google.com/p/chromium/issues/detail?id=76271^M
TEST= run try
Review URL: http://codereview.chromium.org/7399016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92931 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/ppp_instance.h')
-rw-r--r-- | ppapi/c/ppp_instance.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/ppapi/c/ppp_instance.h b/ppapi/c/ppp_instance.h index 3fd8263..f38f0ae 100644 --- a/ppapi/c/ppp_instance.h +++ b/ppapi/c/ppp_instance.h @@ -2,18 +2,23 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ + +/* From ppp_instance.idl modified Sat Jul 16 16:50:26 2011. */ + #ifndef PPAPI_C_PPP_INSTANCE_H_ #define PPAPI_C_PPP_INSTANCE_H_ #include "ppapi/c/pp_bool.h" +#include "ppapi/c/pp_input_event.h" #include "ppapi/c/pp_instance.h" +#include "ppapi/c/pp_macros.h" +#include "ppapi/c/pp_point.h" #include "ppapi/c/pp_rect.h" #include "ppapi/c/pp_resource.h" - -struct PP_InputEvent; - -#define PPP_INSTANCE_INTERFACE_0_5 "PPP_Instance;0.5" -#define PPP_INSTANCE_INTERFACE PPP_INSTANCE_INTERFACE_0_5 +#include "ppapi/c/pp_size.h" +#include "ppapi/c/pp_stdint.h" +#include "ppapi/c/pp_time.h" +#include "ppapi/c/ppb_input_event.h" /** * @file @@ -21,10 +26,11 @@ struct PP_InputEvent; * pointers to methods that you must implement in your module. */ -/** @addtogroup Interfaces + +/** + * @addtogroup Interfaces * @{ */ - /** * The <code>PPP_Instance</code> interface contains pointers to a series of * functions that you must implement in your module. These functions can be @@ -32,6 +38,8 @@ struct PP_InputEvent; * to handle events such as change of focus or input events (keyboard/mouse) * events. */ +#define PPP_INSTANCE_INTERFACE_0_5 "PPP_Instance;0.5" +#define PPP_INSTANCE_INTERFACE PPP_INSTANCE_INTERFACE_0_5 struct PPP_Instance { /** @@ -77,7 +85,6 @@ struct PPP_Instance { uint32_t argc, const char* argn[], const char* argv[]); - /** * DidDestroy() is an instance destruction handler. This function is called * in many cases (see below) when a module instance is destroyed. It will be @@ -105,7 +112,6 @@ struct PPP_Instance { * of a module. */ void (*DidDestroy)(PP_Instance instance); - /** * DidChangeView() is called when the position, the size, of the clip * rectangle of the element in the browser that corresponds to this @@ -142,7 +148,6 @@ struct PPP_Instance { void (*DidChangeView)(PP_Instance instance, const struct PP_Rect* position, const struct PP_Rect* clip); - /** * DidChangeFocus() is called when an instance has gained or lost focus. * Having focus means that keyboard events will be sent to the instance. @@ -161,7 +166,6 @@ struct PPP_Instance { * @param[in] has_focus Indicates the new focused state of the instance. */ void (*DidChangeFocus)(PP_Instance instance, PP_Bool has_focus); - /** * HandleInputEvent() handles input events, such as keyboard events. This * function returns <code>PP_TRUE</code> if the event was handled or @@ -189,7 +193,6 @@ struct PPP_Instance { */ PP_Bool (*HandleInputEvent)(PP_Instance instance, const struct PP_InputEvent* event); - /** * HandleDocumentLoad() is called after initialize for a full-frame * module that was instantiated based on the MIME type of a DOMWindow @@ -219,11 +222,11 @@ struct PPP_Instance { */ PP_Bool (*HandleDocumentLoad)(PP_Instance instance, PP_Resource url_loader); }; - /** * @} */ + typedef struct PPP_Instance PPP_Instance_0_5; #endif /* PPAPI_C_PPP_INSTANCE_H_ */ |