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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.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 | « ppapi/thunk/resource_creation_api.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.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_MOCK_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9 9
10 struct PP_NetAddress_Private; 10 struct PP_NetAddress_Private;
11 namespace ppapi { class PPB_X509Certificate_Fields; } 11 namespace ppapi { class PPB_X509Certificate_Fields; }
12 namespace webkit_glue { class ClipboardClient; } 12 namespace webkit_glue { class ClipboardClient; }
13 13
14 namespace webkit { 14 namespace webkit {
15 namespace ppapi { 15 namespace ppapi {
16 16
17 class MockPluginDelegate : public PluginDelegate { 17 class MockPluginDelegate : public PluginDelegate {
18 public: 18 public:
19 MockPluginDelegate(); 19 MockPluginDelegate();
20 virtual ~MockPluginDelegate(); 20 virtual ~MockPluginDelegate();
21 21
22 virtual void PluginFocusChanged(PluginInstance* instance, bool focused); 22 virtual void PluginFocusChanged(PluginInstance* instance, bool focused);
23 virtual void PluginTextInputTypeChanged(PluginInstance* instance); 23 virtual void PluginTextInputTypeChanged(PluginInstance* instance);
24 virtual void PluginCaretPositionChanged(PluginInstance* instance); 24 virtual void PluginCaretPositionChanged(PluginInstance* instance);
25 virtual void PluginRequestedCancelComposition(PluginInstance* instance); 25 virtual void PluginRequestedCancelComposition(PluginInstance* instance);
26 virtual void PluginSelectionChanged(PluginInstance* instance); 26 virtual void PluginSelectionChanged(PluginInstance* instance);
27 virtual void SimulateImeSetComposition(
28 const string16& text,
29 const std::vector<WebKit::WebCompositionUnderline>& underlines,
30 int selection_start,
31 int selection_end);
32 virtual void SimulateImeConfirmComposition(const string16& text);
27 virtual void PluginCrashed(PluginInstance* instance); 33 virtual void PluginCrashed(PluginInstance* instance);
28 virtual void InstanceCreated(PluginInstance* instance); 34 virtual void InstanceCreated(PluginInstance* instance);
29 virtual void InstanceDeleted(PluginInstance* instance); 35 virtual void InstanceDeleted(PluginInstance* instance);
30 virtual SkBitmap* GetSadPluginBitmap(); 36 virtual SkBitmap* GetSadPluginBitmap();
31 virtual WebKit::WebPlugin* CreatePluginReplacement(const FilePath& file_path); 37 virtual WebKit::WebPlugin* CreatePluginReplacement(const FilePath& file_path);
32 virtual PlatformImage2D* CreateImage2D(int width, int height); 38 virtual PlatformImage2D* CreateImage2D(int width, int height);
33 virtual PlatformContext3D* CreateContext3D(); 39 virtual PlatformContext3D* CreateContext3D();
34 virtual PlatformVideoDecoder* CreateVideoDecoder( 40 virtual PlatformVideoDecoder* CreateVideoDecoder(
35 media::VideoDecodeAccelerator::Client* client, 41 media::VideoDecodeAccelerator::Client* client,
36 int32 command_buffer_route_id); 42 int32 command_buffer_route_id);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 virtual int EnumerateDevices(PP_DeviceType_Dev type, 195 virtual int EnumerateDevices(PP_DeviceType_Dev type,
190 const EnumerateDevicesCallback& callback); 196 const EnumerateDevicesCallback& callback);
191 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; 197 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const;
192 virtual std::string GetDeviceID(); 198 virtual std::string GetDeviceID();
193 }; 199 };
194 200
195 } // namespace ppapi 201 } // namespace ppapi
196 } // namespace webkit 202 } // namespace webkit
197 203
198 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 204 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/resource_creation_api.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698