| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPB_Core</code> interface defined by the browser | 7 * This file defines the <code>PPB_Core</code> interface defined by the browser |
| 8 * and containing pointers to functions related to memory management, time, and | 8 * and containing pointers to functions related to memory management, time, and |
| 9 * threads. | 9 * threads. |
| 10 */ | 10 */ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 * This clock is used by the browser when passing some event times to the | 48 * This clock is used by the browser when passing some event times to the |
| 49 * module (e.g. using the <code>PP_InputEvent::time_stamp_seconds</code> | 49 * module (e.g. using the <code>PP_InputEvent::time_stamp_seconds</code> |
| 50 * field). It is not correlated to any actual wall clock time | 50 * field). It is not correlated to any actual wall clock time |
| 51 * (like GetTime()). Because of this, it will not run change if the user | 51 * (like GetTime()). Because of this, it will not run change if the user |
| 52 * changes their computer clock. | 52 * changes their computer clock. |
| 53 * | 53 * |
| 54 * @return A <code>PP_TimeTicks</code> containing the "tick time" according | 54 * @return A <code>PP_TimeTicks</code> containing the "tick time" according |
| 55 * to the browser. | 55 * to the browser. |
| 56 */ | 56 */ |
| 57 | 57 |
| 58 // TODO(brettw) http://code.google.com/p/chromium/issues/detail?id=57448 | 58 /* TODO(brettw) http://code.google.com/p/chromium/issues/detail?id=57448 |
| 59 // This currently does change with wall clock time, but will be fixed in | 59 * This currently does change with wall clock time, but will be fixed in |
| 60 // a future release. | 60 * a future release. */ |
| 61 PP_TimeTicks GetTimeTicks(); | 61 PP_TimeTicks GetTimeTicks(); |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * CallOnMainThread() schedules work to be executed on the main module thread | 64 * CallOnMainThread() schedules work to be executed on the main module thread |
| 65 * after the specified delay. The delay may be 0 to specify a call back as | 65 * after the specified delay. The delay may be 0 to specify a call back as |
| 66 * soon as possible. | 66 * soon as possible. |
| 67 * | 67 * |
| 68 * The <code>result</code> parameter will just be passed as the second | 68 * The <code>result</code> parameter will just be passed as the second |
| 69 * argument to the callback. Many applications won't need this, but it allows | 69 * argument to the callback. Many applications won't need this, but it allows |
| 70 * a module to emulate calls of some callbacks which do use this value. | 70 * a module to emulate calls of some callbacks which do use this value. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 94 * | 94 * |
| 95 * This function is useful for implementing sanity checks, and deciding if | 95 * This function is useful for implementing sanity checks, and deciding if |
| 96 * dispatching using CallOnMainThread() is required. | 96 * dispatching using CallOnMainThread() is required. |
| 97 * | 97 * |
| 98 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the | 98 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the |
| 99 * current thread is the main pepper thread, otherwise <code>PP_FALSE</code>. | 99 * current thread is the main pepper thread, otherwise <code>PP_FALSE</code>. |
| 100 */ | 100 */ |
| 101 PP_Bool IsMainThread(); | 101 PP_Bool IsMainThread(); |
| 102 }; | 102 }; |
| 103 | 103 |
| OLD | NEW |