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

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

Issue 10391101: Test for Pepper IME events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments from kochi & merge master. Created 8 years, 7 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
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 void OnLockMouseACK(bool succeeded); 319 void OnLockMouseACK(bool succeeded);
320 // A mouse lock was in place, but has been lost. 320 // A mouse lock was in place, but has been lost.
321 void OnMouseLockLost(); 321 void OnMouseLockLost();
322 // A mouse lock is enabled and mouse events are being delievered. 322 // A mouse lock is enabled and mouse events are being delievered.
323 void HandleMouseLockedInputEvent(const WebKit::WebMouseEvent& event); 323 void HandleMouseLockedInputEvent(const WebKit::WebMouseEvent& event);
324 324
325 // Simulates an input event to the plugin by passing it down to WebKit, 325 // Simulates an input event to the plugin by passing it down to WebKit,
326 // which sends it back up to the plugin as if it came from the user. 326 // which sends it back up to the plugin as if it came from the user.
327 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); 327 void SimulateInputEvent(const ::ppapi::InputEventData& input_event);
328 328
329 // Simulates an IME event at the level of RenderView which sends it back up to
330 // the plugin as if it came from the user.
331 bool SimulateIMEEvent(const ::ppapi::InputEventData& input_event);
332 void SimulateImeSetCompositionEvent(
333 const ::ppapi::InputEventData& input_event);
334
329 // PPB_Instance_API implementation. 335 // PPB_Instance_API implementation.
330 virtual PP_Bool BindGraphics(PP_Instance instance, 336 virtual PP_Bool BindGraphics(PP_Instance instance,
331 PP_Resource device) OVERRIDE; 337 PP_Resource device) OVERRIDE;
332 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 338 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE;
333 virtual const ::ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE; 339 virtual const ::ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE;
334 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 340 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE;
335 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 341 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE;
336 virtual PP_Var ExecuteScript(PP_Instance instance, 342 virtual PP_Var ExecuteScript(PP_Instance instance,
337 PP_Var script, 343 PP_Var script,
338 PP_Var* exception) OVERRIDE; 344 PP_Var* exception) OVERRIDE;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // The Flash proxy is associated with the instance. 649 // The Flash proxy is associated with the instance.
644 PPB_Flash_Impl flash_impl_; 650 PPB_Flash_Impl flash_impl_;
645 651
646 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 652 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
647 }; 653 };
648 654
649 } // namespace ppapi 655 } // namespace ppapi
650 } // namespace webkit 656 } // namespace webkit
651 657
652 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 658 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698