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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 10628020: webkit/ppapi: Notify the container when a plugin is accepting touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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) 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Simulates an input event to the plugin by passing it down to WebKit, 321 // Simulates an input event to the plugin by passing it down to WebKit,
322 // which sends it back up to the plugin as if it came from the user. 322 // which sends it back up to the plugin as if it came from the user.
323 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); 323 void SimulateInputEvent(const ::ppapi::InputEventData& input_event);
324 324
325 // Simulates an IME event at the level of RenderView which sends it back up to 325 // Simulates an IME event at the level of RenderView which sends it back up to
326 // the plugin as if it came from the user. 326 // the plugin as if it came from the user.
327 bool SimulateIMEEvent(const ::ppapi::InputEventData& input_event); 327 bool SimulateIMEEvent(const ::ppapi::InputEventData& input_event);
328 void SimulateImeSetCompositionEvent( 328 void SimulateImeSetCompositionEvent(
329 const ::ppapi::InputEventData& input_event); 329 const ::ppapi::InputEventData& input_event);
330 330
331 // Returns true if the plugin has registered to accept touch events.
332 bool IsAcceptingTouchEvents() const;
333
331 // PPB_Instance_API implementation. 334 // PPB_Instance_API implementation.
332 virtual PP_Bool BindGraphics(PP_Instance instance, 335 virtual PP_Bool BindGraphics(PP_Instance instance,
333 PP_Resource device) OVERRIDE; 336 PP_Resource device) OVERRIDE;
334 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 337 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE;
335 virtual const ::ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE; 338 virtual const ::ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE;
336 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 339 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE;
337 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 340 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE;
338 virtual PP_Var ExecuteScript(PP_Instance instance, 341 virtual PP_Var ExecuteScript(PP_Instance instance,
339 PP_Var script, 342 PP_Var script,
340 PP_Var* exception) OVERRIDE; 343 PP_Var* exception) OVERRIDE;
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 // the pointer so we can re-send it later if we are reset to talk to NaCl. 667 // the pointer so we can re-send it later if we are reset to talk to NaCl.
665 scoped_refptr<PPB_URLLoader_Impl> document_loader_; 668 scoped_refptr<PPB_URLLoader_Impl> document_loader_;
666 669
667 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 670 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
668 }; 671 };
669 672
670 } // namespace ppapi 673 } // namespace ppapi
671 } // namespace webkit 674 } // namespace webkit
672 675
673 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 676 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | webkit/plugins/ppapi/ppapi_webplugin_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698