OLD | NEW |
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_CPP_INSTANCE_H_ | 5 #ifndef PPAPI_CPP_INSTANCE_H_ |
6 #define PPAPI_CPP_INSTANCE_H_ | 6 #define PPAPI_CPP_INSTANCE_H_ |
7 | 7 |
8 /// @file | 8 /// @file |
9 /// Defines the C++ wrapper for a plugin instance. | 9 /// Defines the C++ wrapper for a plugin instance. |
10 /// | 10 /// |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 /// Event propagation also controls focus. If you handle an event like a mouse | 147 /// Event propagation also controls focus. If you handle an event like a mouse |
148 /// event, typically the instance will be given focus. Returning false means | 148 /// event, typically the instance will be given focus. Returning false means |
149 /// that the click will be given to a lower part of the page and your module | 149 /// that the click will be given to a lower part of the page and your module |
150 /// will not receive focus. This allows an instance to be partially | 150 /// will not receive focus. This allows an instance to be partially |
151 /// transparent, where clicks on the transparent areas will behave like clicks | 151 /// transparent, where clicks on the transparent areas will behave like clicks |
152 /// to the underlying page. | 152 /// to the underlying page. |
153 /// | 153 /// |
154 /// @param[in] event The input event. | 154 /// @param[in] event The input event. |
155 /// | 155 /// |
156 /// @return true if @a event was handled, false otherwise. | 156 /// @return true if @a event was handled, false otherwise. |
157 virtual bool HandleInputEvent(const pp::InputEvent& event); | 157 virtual bool HandleInputEvent(const PP_InputEvent& event); |
| 158 |
| 159 /// @see InputEvent for an example |
| 160 virtual bool HandleInputEvent(const InputEvent& event); |
158 | 161 |
159 /// Notification of a data stream available after an instance was created | 162 /// Notification of a data stream available after an instance was created |
160 /// based on the MIME type of a DOMWindow navigation. This only applies to | 163 /// based on the MIME type of a DOMWindow navigation. This only applies to |
161 /// modules that are pre-registered to handle certain MIME types. If you | 164 /// modules that are pre-registered to handle certain MIME types. If you |
162 /// haven't specifically registered to handle a MIME type or aren't positive | 165 /// haven't specifically registered to handle a MIME type or aren't positive |
163 /// this applies to you, you can ignore this function. The default | 166 /// this applies to you, you can ignore this function. The default |
164 /// implementation just returns false. | 167 /// implementation just returns false. |
165 /// | 168 /// |
166 /// The given url_loader corresponds to a URLLoader object that is | 169 /// The given url_loader corresponds to a URLLoader object that is |
167 /// already opened. Its response headers may be queried using GetResponseInfo. | 170 /// already opened. Its response headers may be queried using GetResponseInfo. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 typedef std::map<std::string, void*> InterfaceNameToObjectMap; | 258 typedef std::map<std::string, void*> InterfaceNameToObjectMap; |
256 InterfaceNameToObjectMap interface_name_to_objects_; | 259 InterfaceNameToObjectMap interface_name_to_objects_; |
257 }; | 260 }; |
258 | 261 |
259 } // namespace pp | 262 } // namespace pp |
260 | 263 |
261 /// @} | 264 /// @} |
262 /// End addtogroup CPP | 265 /// End addtogroup CPP |
263 | 266 |
264 #endif // PPAPI_CPP_INSTANCE_H_ | 267 #endif // PPAPI_CPP_INSTANCE_H_ |
OLD | NEW |