| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 */ | 113 */ |
| 114 void (*DidChangeFocus)(PP_Instance instance, PP_Bool has_focus); | 114 void (*DidChangeFocus)(PP_Instance instance, PP_Bool has_focus); |
| 115 | 115 |
| 116 /** | 116 /** |
| 117 * This value represents a pointer to a function to handle input events. | 117 * This value represents a pointer to a function to handle input events. |
| 118 * Returns true if the event was handled or false if it was not. | 118 * Returns true if the event was handled or false if it was not. |
| 119 * | 119 * |
| 120 * If the event was handled, it will not be forwarded to the web page or | 120 * If the event was handled, it will not be forwarded to the web page or |
| 121 * browser. If it was not handled, it will bubble according to the normal | 121 * browser. If it was not handled, it will bubble according to the normal |
| 122 * rules. So it is important that a module respond accurately with whether | 122 * rules. So it is important that a module respond accurately with whether |
| 123 * event propogation should continue. | 123 * event propagation should continue. |
| 124 * | 124 * |
| 125 * Event propogation also controls focus. If you handle an event like a mouse | 125 * Event propagation also controls focus. If you handle an event like a mouse |
| 126 * event, typically your module will be given focus. Returning false means | 126 * event, typically your module will be given focus. Returning false means |
| 127 * that the click will be given to a lower part of the page and your module | 127 * that the click will be given to a lower part of the page and your module |
| 128 * will not receive focus. This allows a module to be partially transparent, | 128 * will not receive focus. This allows a module to be partially transparent, |
| 129 * where clicks on the transparent areas will behave like clicks to the | 129 * where clicks on the transparent areas will behave like clicks to the |
| 130 * underlying page. | 130 * underlying page. |
| 131 * @param[in] instance A PP_Instance indentifying one instance of a module. | 131 * @param[in] instance A PP_Instance indentifying one instance of a module. |
| 132 * @param[in] event The event. | 132 * @param[in] event The event. |
| 133 * @return PP_TRUE if @a event was handled, PP_FALSE otherwise. | 133 * @return PP_TRUE if @a event was handled, PP_FALSE otherwise. |
| 134 */ | 134 */ |
| 135 PP_Bool (*HandleInputEvent)(PP_Instance instance, | 135 PP_Bool (*HandleInputEvent)(PP_Instance instance, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 * @return A PP_Var containing scriptable object. | 172 * @return A PP_Var containing scriptable object. |
| 173 */ | 173 */ |
| 174 struct PP_Var (*GetInstanceObject)(PP_Instance instance); | 174 struct PP_Var (*GetInstanceObject)(PP_Instance instance); |
| 175 }; | 175 }; |
| 176 /** | 176 /** |
| 177 * @} | 177 * @} |
| 178 */ | 178 */ |
| 179 | 179 |
| 180 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ | 180 #endif /* PPAPI_C_PPP_INSTANCE_H_ */ |
| 181 | 181 |
| OLD | NEW |