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

Side by Side Diff: ppapi/cpp/instance.h

Issue 7452002: Remove HandleInputEvent from PPP_Instance and freeze to 1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
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_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
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);
161 158
162 /// Notification of a data stream available after an instance was created 159 /// Notification of a data stream available after an instance was created
163 /// based on the MIME type of a DOMWindow navigation. This only applies to 160 /// based on the MIME type of a DOMWindow navigation. This only applies to
164 /// modules that are pre-registered to handle certain MIME types. If you 161 /// modules that are pre-registered to handle certain MIME types. If you
165 /// haven't specifically registered to handle a MIME type or aren't positive 162 /// haven't specifically registered to handle a MIME type or aren't positive
166 /// this applies to you, you can ignore this function. The default 163 /// this applies to you, you can ignore this function. The default
167 /// implementation just returns false. 164 /// implementation just returns false.
168 /// 165 ///
169 /// The given url_loader corresponds to a URLLoader object that is 166 /// The given url_loader corresponds to a URLLoader object that is
170 /// already opened. Its response headers may be queried using GetResponseInfo. 167 /// already opened. Its response headers may be queried using GetResponseInfo.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 typedef std::map<std::string, void*> InterfaceNameToObjectMap; 255 typedef std::map<std::string, void*> InterfaceNameToObjectMap;
259 InterfaceNameToObjectMap interface_name_to_objects_; 256 InterfaceNameToObjectMap interface_name_to_objects_;
260 }; 257 };
261 258
262 } // namespace pp 259 } // namespace pp
263 260
264 /// @} 261 /// @}
265 /// End addtogroup CPP 262 /// End addtogroup CPP
266 263
267 #endif // PPAPI_CPP_INSTANCE_H_ 264 #endif // PPAPI_CPP_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698