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

Side by Side Diff: ppapi/c/ppp_instance.h

Issue 7308010: Formatting changes (Closed) Base URL: svn://svn.chromium.org/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 unified diff | Download patch | Annotate | Revision Log
« ppapi/c/pp_input_event.h ('K') | « ppapi/c/pp_point.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef PPAPI_C_PPP_INSTANCE_H_ 5 #ifndef PPAPI_C_PPP_INSTANCE_H_
6 #define PPAPI_C_PPP_INSTANCE_H_ 6 #define PPAPI_C_PPP_INSTANCE_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_rect.h" 10 #include "ppapi/c/pp_rect.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 * 124 *
125 * A typical implementation will check the size of the <code>position</code> 125 * A typical implementation will check the size of the <code>position</code>
126 * argument and reallocate the graphics context when a different size is 126 * argument and reallocate the graphics context when a different size is
127 * received. Note that this function will be called for scroll events where 127 * received. Note that this function will be called for scroll events where
128 * the size doesn't change, so you should always check that the size is 128 * the size doesn't change, so you should always check that the size is
129 * actually different before doing any reallocations. 129 * actually different before doing any reallocations.
130 * 130 *
131 * @param[in] instance A <code>PP_Instance</code> indentifying the instance 131 * @param[in] instance A <code>PP_Instance</code> indentifying the instance
132 * that has changed. 132 * that has changed.
133 * 133 *
134 * @param[in] position The location on the page of the instance. This is 134 * @param[in] position The location on the page of the instance. The position
135 * relative to the top left corner of the viewport, which changes as the 135 * is relative to the top left corner of the viewport, which changes as the
136 * page is scrolled. Generally the size of this value will be used to create 136 * page is scrolled. Generally the size of this value will be used to create
137 * a graphics device, and the position is ignored (most things are relative 137 * a graphics device, and the position is ignored (most things are relative
138 * to the instance so the absolute position isn't useful in most cases). 138 * to the instance so the absolute position isn't useful in most cases).
139 * 139 *
140 * @param[in] clip The visible region of the instance. This is relative to 140 * @param[in] clip The visible region of the instance. This is relative to
141 * the top left of the module's coordinate system (not the page). If the 141 * the top left of the module's coordinate system (not the page). If the
142 * module is invisible, <code>clip</code> will be (0, 0, 0, 0). 142 * module is invisible, <code>clip</code> will be (0, 0, 0, 0).
143 * 143 *
144 * It's recommended to check for invisible instances and to stop 144 * It's recommended to check for invisible instances and to stop
145 * generating graphics updates in this case to save system resources. It's 145 * generating graphics updates in this case to save system resources. It's
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 /** 204 /**
205 * HandleDocumentLoad() is called after initialize for a full-frame 205 * HandleDocumentLoad() is called after initialize for a full-frame
206 * module that was instantiated based on the MIME type of a DOMWindow 206 * module that was instantiated based on the MIME type of a DOMWindow
207 * navigation. This situation only applies to modules that are pre-registered 207 * navigation. This situation only applies to modules that are pre-registered
208 * to handle certain MIME types. If you haven't specifically registered to 208 * to handle certain MIME types. If you haven't specifically registered to
209 * handle a MIME type or aren't positive this applies to you, your 209 * handle a MIME type or aren't positive this applies to you, your
210 * implementation of this function can just return <code>PP_FALSE</code>. 210 * implementation of this function can just return <code>PP_FALSE</code>.
211 * 211 *
212 * The given <code>url_loader</code> corresponds to a 212 * The given <code>url_loader</code> corresponds to a
213 * <code>PPB_URLLoader</code> instance that is already opened. Its response 213 * <code>PPB_URLLoader</code> instance that is already opened. Its response
214 * headers may be queried using <code>PPB_URLLoader::GetResponseInfo</code>. 214 * headers may be queried using PPB_URLLoader::GetResponseInfo().
215 * The reference count for the URL loader is not incremented automatically on 215 * The reference count for the URL loader is not incremented automatically on
216 * behalf of the module. You need to increment the reference count yourself 216 * behalf of the module. You need to increment the reference count yourself
217 * if you are going to keep a reference to it. 217 * if you are going to keep a reference to it.
218 * 218 *
219 * This method returns <code>PP_FALSE</code> if the module cannot handle the 219 * This method returns <code>PP_FALSE</code> if the module cannot handle the
220 * data. In response to this method, the module should call 220 * data. In response to this method, the module should call
221 * ReadResponseBody() to read the incoming data. 221 * ReadResponseBody() to read the incoming data.
222 * 222 *
223 * @param[in] instance A <code>PP_Instance</code> indentifying the instance 223 * @param[in] instance A <code>PP_Instance</code> indentifying the instance
224 * that should do the load. 224 * that should do the load.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 */ 256 */
257 257
258 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING 258 #ifdef PPAPI_INSTANCE_REMOVE_SCRIPTING
259 typedef struct PPP_Instance PPP_Instance_0_5; 259 typedef struct PPP_Instance PPP_Instance_0_5;
260 #else 260 #else
261 typedef struct PPP_Instance PPP_Instance_0_4; 261 typedef struct PPP_Instance PPP_Instance_0_4;
262 #endif 262 #endif
263 263
264 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ 264 #endif /* PPAPI_C_PPP_INSTANCE_H_ */
265 265
OLDNEW
« ppapi/c/pp_input_event.h ('K') | « ppapi/c/pp_point.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698