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

Unified Diff: ppapi/c/ppb_core.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/ppb_audio_config.h ('k') | ppapi/c/ppb_file_io.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_core.h
===================================================================
--- ppapi/c/ppb_core.h (revision 92804)
+++ ppapi/c/ppb_core.h (working copy)
@@ -2,19 +2,19 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
+/* From ppb_core.idl modified Mon Jul 18 12:14:19 2011. */
+
#ifndef PPAPI_C_PPB_CORE_H_
#define PPAPI_C_PPB_CORE_H_
#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_completion_callback.h"
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_time.h"
-struct PP_CompletionCallback;
-
-#define PPB_CORE_INTERFACE_1_0 "PPB_Core;1.0"
-#define PPB_CORE_INTERFACE PPB_CORE_INTERFACE_1_0
-
/**
* @file
* This file defines the <code>PPB_Core</code> interface defined by the browser
@@ -22,16 +22,19 @@
* threads.
*/
+
/**
* @addtogroup Interfaces
* @{
*/
-
/**
* The <code>PPB_Core</code> interface contains pointers to functions related
* to memory management, time, and threads on the browser.
*
*/
+#define PPB_CORE_INTERFACE_1_0 "PPB_Core;1.0"
+#define PPB_CORE_INTERFACE PPB_CORE_INTERFACE_1_0
+
struct PPB_Core {
/**
*
@@ -40,14 +43,12 @@
* @param[in] config A <code>PP_Resource</code> containing the resource.
*/
void (*AddRefResource)(PP_Resource resource);
-
/**
* ReleaseResource() removes a reference from a resource.
*
* @param[in] config A <code>PP_Resource</code> containing the resource.
*/
void (*ReleaseResource)(PP_Resource resource);
-
/**
* GetTime() returns the "wall clock time" according to the
* browser.
@@ -56,7 +57,6 @@
* to the browser.
*/
PP_Time (*GetTime)();
-
/**
* GetTimeTicks() returns the "tick time" according to the browser.
* This clock is used by the browser when passing some event times to the
@@ -68,12 +68,10 @@
* @return A <code>PP_TimeTicks</code> containing the "tick time" according
* to the browser.
*/
-
-// TODO(brettw) http://code.google.com/p/chromium/issues/detail?id=57448
-// This currently does change with wall clock time, but will be fixed in
-// a future release.
+ /* TODO(brettw) http://code.google.com/p/chromium/issues/detail?id=57448
+ * This currently does change with wall clock time, but will be fixed in
+ * a future release. */
PP_TimeTicks (*GetTimeTicks)();
-
/**
* CallOnMainThread() schedules work to be executed on the main module thread
* after the specified delay. The delay may be 0 to specify a call back as
@@ -100,7 +98,6 @@
void (*CallOnMainThread)(int32_t delay_in_milliseconds,
struct PP_CompletionCallback callback,
int32_t result);
-
/**
* IsMainThread() returns true if the current thread is the main pepper
* thread.
@@ -117,5 +114,5 @@
* @}
*/
-
#endif /* PPAPI_C_PPB_CORE_H_ */
+
« no previous file with comments | « ppapi/c/ppb_audio_config.h ('k') | ppapi/c/ppb_file_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698