OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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>PPP_Instance</code> structure - a series of | 7 * This file defines the <code>PPP_Instance</code> structure - a series of |
8 * pointers to methods that you must implement in your module. | 8 * pointers to methods that you must implement in your module. |
9 */ | 9 */ |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 * <code>DidChangeView() is called when the position, size, or other view | 163 * <code>DidChangeView() is called when the position, size, or other view |
164 * attributes of the instance has changed. | 164 * attributes of the instance has changed. |
165 */ | 165 */ |
166 [version=1.1] | 166 [version=1.1] |
167 void DidChangeView( | 167 void DidChangeView( |
168 /* A PP_Instance identifying the instance whose view changed. */ | 168 /* A PP_Instance identifying the instance whose view changed. */ |
169 [in] PP_Instance instance, | 169 [in] PP_Instance instance, |
170 /** | 170 /** |
171 * A handle to a <code>PPB_View</code> resource identifying the new view. | 171 * A handle to a <code>PPB_View</code> resource identifying the new view. |
172 */ | 172 */ |
173 [in] PP_Resource view_resource); | 173 [in] PP_Resource view); |
174 | 174 |
175 /** | 175 /** |
176 * DidChangeFocus() is called when an instance has gained or lost focus. | 176 * DidChangeFocus() is called when an instance has gained or lost focus. |
177 * Having focus means that keyboard events will be sent to the instance. | 177 * Having focus means that keyboard events will be sent to the instance. |
178 * An instance's default condition is that it will not have focus. | 178 * An instance's default condition is that it will not have focus. |
179 * | 179 * |
180 * <strong>Note:</strong>Clicks on instances will give focus only if you | 180 * <strong>Note:</strong>Clicks on instances will give focus only if you |
181 * handle the click event. Return <code>true</code> from | 181 * handle the click event. Return <code>true</code> from |
182 * <code>HandleInputEvent</code> in <code>PPP_InputEvent</code> (or use | 182 * <code>HandleInputEvent</code> in <code>PPP_InputEvent</code> (or use |
183 * unfiltered events) to signal that the click event was handled. Otherwise, | 183 * unfiltered events) to signal that the click event was handled. Otherwise, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 * @return <code>PP_TRUE</code> if the data was handled, | 224 * @return <code>PP_TRUE</code> if the data was handled, |
225 * <code>PP_FALSE</code> otherwise. | 225 * <code>PP_FALSE</code> otherwise. |
226 */ | 226 */ |
227 PP_Bool HandleDocumentLoad( | 227 PP_Bool HandleDocumentLoad( |
228 /* A PP_Instance identifying one instance of a module. */ | 228 /* A PP_Instance identifying one instance of a module. */ |
229 [in] PP_Instance instance, | 229 [in] PP_Instance instance, |
230 /* A PP_Resource an open PPB_URLLoader instance. */ | 230 /* A PP_Resource an open PPB_URLLoader instance. */ |
231 [in] PP_Resource url_loader); | 231 [in] PP_Resource url_loader); |
232 | 232 |
233 }; | 233 }; |
OLD | NEW |