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

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: . 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
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 void OnLockMouseACK(bool succeeded); 318 void OnLockMouseACK(bool succeeded);
319 // A mouse lock was in place, but has been lost. 319 // A mouse lock was in place, but has been lost.
320 void OnMouseLockLost(); 320 void OnMouseLockLost();
321 // A mouse lock is enabled and mouse events are being delievered. 321 // A mouse lock is enabled and mouse events are being delievered.
322 void HandleMouseLockedInputEvent(const WebKit::WebMouseEvent& event); 322 void HandleMouseLockedInputEvent(const WebKit::WebMouseEvent& event);
323 323
324 // Simulates an input event to the plugin by passing it down to WebKit, 324 // Simulates an input event to the plugin by passing it down to WebKit,
325 // which sends it back up to the plugin as if it came from the user. 325 // which sends it back up to the plugin as if it came from the user.
326 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); 326 void SimulateInputEvent(const ::ppapi::InputEventData& input_event);
327 327
328 // Simulates an IME event at the level of RenderView which sends it back up to
329 // the plugin as if it came from the user.
330 bool SimulateIMEEvent(const ::ppapi::InputEventData& input_event);
331 void SimulateImeSetCompositionEvent(
332 const ::ppapi::InputEventData& input_event);
333
328 // PPB_Instance_API implementation. 334 // PPB_Instance_API implementation.
329 virtual PP_Bool BindGraphics(PP_Instance instance, 335 virtual PP_Bool BindGraphics(PP_Instance instance,
330 PP_Resource device) OVERRIDE; 336 PP_Resource device) OVERRIDE;
331 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 337 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE;
332 virtual const ::ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE; 338 virtual const ::ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE;
333 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 339 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE;
334 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 340 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE;
335 virtual PP_Var ExecuteScript(PP_Instance instance, 341 virtual PP_Var ExecuteScript(PP_Instance instance,
336 PP_Var script, 342 PP_Var script,
337 PP_Var* exception) OVERRIDE; 343 PP_Var* exception) OVERRIDE;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // The Flash proxy is associated with the instance. 648 // The Flash proxy is associated with the instance.
643 PPB_Flash_Impl flash_impl_; 649 PPB_Flash_Impl flash_impl_;
644 650
645 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 651 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
646 }; 652 };
647 653
648 } // namespace ppapi 654 } // namespace ppapi
649 } // namespace webkit 655 } // namespace webkit
650 656
651 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 657 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698