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 /* From ppp_instance.idl modified Wed Jan 4 06:11:56 2012. */ | 6 /* From ppp_instance.idl modified Mon Feb 6 14:04:52 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPP_INSTANCE_H_ | 8 #ifndef PPAPI_C_PPP_INSTANCE_H_ |
9 #define PPAPI_C_PPP_INSTANCE_H_ | 9 #define PPAPI_C_PPP_INSTANCE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
15 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * The module will just be unloaded and the process terminated. | 108 * The module will just be unloaded and the process terminated. |
109 * | 109 * |
110 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 110 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
111 * of a module. | 111 * of a module. |
112 */ | 112 */ |
113 void (*DidDestroy)(PP_Instance instance); | 113 void (*DidDestroy)(PP_Instance instance); |
114 /** | 114 /** |
115 * <code>DidChangeView() is called when the position, size, or other view | 115 * <code>DidChangeView() is called when the position, size, or other view |
116 * attributes of the instance has changed. | 116 * attributes of the instance has changed. |
117 */ | 117 */ |
118 void (*DidChangeView)(PP_Instance instance, PP_Resource view_resource); | 118 void (*DidChangeView)(PP_Instance instance, PP_Resource view); |
119 /** | 119 /** |
120 * DidChangeFocus() is called when an instance has gained or lost focus. | 120 * DidChangeFocus() is called when an instance has gained or lost focus. |
121 * Having focus means that keyboard events will be sent to the instance. | 121 * Having focus means that keyboard events will be sent to the instance. |
122 * An instance's default condition is that it will not have focus. | 122 * An instance's default condition is that it will not have focus. |
123 * | 123 * |
124 * <strong>Note:</strong>Clicks on instances will give focus only if you | 124 * <strong>Note:</strong>Clicks on instances will give focus only if you |
125 * handle the click event. Return <code>true</code> from | 125 * handle the click event. Return <code>true</code> from |
126 * <code>HandleInputEvent</code> in <code>PPP_InputEvent</code> (or use | 126 * <code>HandleInputEvent</code> in <code>PPP_InputEvent</code> (or use |
127 * unfiltered events) to signal that the click event was handled. Otherwise, | 127 * unfiltered events) to signal that the click event was handled. Otherwise, |
128 * the browser will bubble the event and give focus to the element on the page | 128 * the browser will bubble the event and give focus to the element on the page |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const struct PP_Rect* clip); | 179 const struct PP_Rect* clip); |
180 void (*DidChangeFocus)(PP_Instance instance, PP_Bool has_focus); | 180 void (*DidChangeFocus)(PP_Instance instance, PP_Bool has_focus); |
181 PP_Bool (*HandleDocumentLoad)(PP_Instance instance, PP_Resource url_loader); | 181 PP_Bool (*HandleDocumentLoad)(PP_Instance instance, PP_Resource url_loader); |
182 }; | 182 }; |
183 /** | 183 /** |
184 * @} | 184 * @} |
185 */ | 185 */ |
186 | 186 |
187 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ | 187 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ |
188 | 188 |
OLD | NEW |