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

Side by Side Diff: ppapi/api/private/ppb_testing_private.idl

Issue 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « ppapi/api/private/ppb_flash_message_loop.idl ('k') | ppapi/c/ppb_message_loop.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright 2013 The Chromium Authors. All rights reserved. 1 /* Copyright 2013 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 contains interface functions used for unit testing. Do not use in 7 * This file contains interface functions used for unit testing. Do not use in
8 * production code. They are not guaranteed to be available in normal plugin 8 * production code. They are not guaranteed to be available in normal plugin
9 * environments so you should not depend on them. 9 * environments so you should not depend on them.
10 */ 10 */
(...skipping 30 matching lines...) Expand all
41 * store. This will not include any paint, scroll, or replace operations 41 * store. This will not include any paint, scroll, or replace operations
42 * that have not yet been flushed; these operations are only reflected in 42 * that have not yet been flushed; these operations are only reflected in
43 * the backing store (and hence ReadImageData) until after a Flush() 43 * the backing store (and hence ReadImageData) until after a Flush()
44 * operation has completed. 44 * operation has completed.
45 */ 45 */
46 PP_Bool ReadImageData([in] PP_Resource device_context_2d, 46 PP_Bool ReadImageData([in] PP_Resource device_context_2d,
47 [in] PP_Resource image, 47 [in] PP_Resource image,
48 [in] PP_Point top_left); 48 [in] PP_Point top_left);
49 49
50 /** 50 /**
51 * Runs a nested message loop. The plugin will be reentered from this call. 51 * Runs a nested run loop. The plugin will be reentered from this call.
52 * This function is used for unit testing the API. The normal pattern is to 52 * This function is used for unit testing the API. The normal pattern is to
53 * issue some asynchronous call that has a callback. Then you call 53 * issue some asynchronous call that has a callback. Then you call
54 * RunMessageLoop which will suspend the plugin and go back to processing 54 * RunMessageLoop which will suspend the plugin and go back to processing
55 * messages, giving the asynchronous operation time to complete. In your 55 * messages, giving the asynchronous operation time to complete. In your
56 * callback, you save the data and call QuitMessageLoop, which will then 56 * callback, you save the data and call QuitMessageLoop, which will then
57 * pop back up and continue with the test. This avoids having to write a 57 * pop back up and continue with the test. This avoids having to write a
58 * complicated state machine for simple tests for asynchronous APIs. 58 * complicated state machine for simple tests for asynchronous APIs.
59 */ 59 */
60 void RunMessageLoop([in] PP_Instance instance); 60 void RunMessageLoop([in] PP_Instance instance);
61 61
62 /** 62 /**
63 * Posts a quit message for the outermost nested message loop. Use this to 63 * Posts a quit message for the outermost nested run loop. Use this to
64 * exit and return back to the caller after you call RunMessageLoop. 64 * exit and return back to the caller after you call RunMessageLoop.
65 */ 65 */
66 void QuitMessageLoop([in] PP_Instance instance); 66 void QuitMessageLoop([in] PP_Instance instance);
67 67
68 /** 68 /**
69 * Returns the number of live objects (resources + strings + objects) 69 * Returns the number of live objects (resources + strings + objects)
70 * associated with this plugin instance. Used for detecting leaks. Returns 70 * associated with this plugin instance. Used for detecting leaks. Returns
71 * (uint32_t)-1 on failure. 71 * (uint32_t)-1 on failure.
72 */ 72 */
73 uint32_t GetLiveObjectsForInstance([in] PP_Instance instance); 73 uint32_t GetLiveObjectsForInstance([in] PP_Instance instance);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 * to its default. The threshold is in bytes. 144 * to its default. The threshold is in bytes.
145 */ 145 */
146 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, 146 void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance,
147 [in] uint32_t threshold); 147 [in] uint32_t threshold);
148 148
149 /** 149 /**
150 * Run the V8 garbage collector for tests. 150 * Run the V8 garbage collector for tests.
151 */ 151 */
152 void RunV8GC([in] PP_Instance instance); 152 void RunV8GC([in] PP_Instance instance);
153 }; 153 };
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_flash_message_loop.idl ('k') | ppapi/c/ppb_message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698