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/ppb_core.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/ppb_core.h')
-rw-r--r-- | ppapi/c/ppb_core.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/ppapi/c/ppb_core.h b/ppapi/c/ppb_core.h index 964d442..ca8b6a7 100644 --- a/ppapi/c/ppb_core.h +++ b/ppapi/c/ppb_core.h @@ -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 @@ struct PP_CompletionCallback; * 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 @@ struct PPB_Core { * @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 @@ struct PPB_Core { * 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 @@ struct PPB_Core { * @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 @@ struct PPB_Core { 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 @@ struct PPB_Core { * @} */ - #endif /* PPAPI_C_PPB_CORE_H_ */ + |