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

Unified Diff: ppapi/c/ppp_instance.h

Issue 7399016: More trivial cleanupi of ppapi/c headers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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/c/ppp_input_event.h ('k') | ppapi/c/ppp_messaging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppp_instance.h
===================================================================
--- ppapi/c/ppp_instance.h (revision 92804)
+++ ppapi/c/ppp_instance.h (working copy)
@@ -2,29 +2,35 @@
* 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"
+#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"
-struct PP_InputEvent;
-
-#define PPP_INSTANCE_INTERFACE_0_5 "PPP_Instance;0.5"
-#define PPP_INSTANCE_INTERFACE PPP_INSTANCE_INTERFACE_0_5
-
/**
* @file
* This file defines the <code>PPP_Instance</code> structure - a series of
* 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 @@
* 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 @@
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 @@
* 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 @@
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 @@
* @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 @@
*/
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 @@
*/
PP_Bool (*HandleDocumentLoad)(PP_Instance instance, PP_Resource url_loader);
};
-
/**
* @}
*/
+
typedef struct PPP_Instance PPP_Instance_0_5;
#endif /* PPAPI_C_PPP_INSTANCE_H_ */
« no previous file with comments | « ppapi/c/ppp_input_event.h ('k') | ppapi/c/ppp_messaging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698