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

Side by Side Diff: content/renderer/pepper/mock_plugin_delegate.h

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_PLUGIN_DELEGATE_H_
6 #define CONTENT_RENDERER_PEPPER_MOCK_PLUGIN_DELEGATE_H_
7
8 #include "content/renderer/pepper/plugin_delegate.h"
9
10 struct PP_NetAddress_Private;
11 namespace ppapi { class PPB_X509Certificate_Fields; }
12
13 namespace content {
14
15 class MockPluginDelegate : public PluginDelegate {
16 public:
17 MockPluginDelegate();
18 virtual ~MockPluginDelegate();
19
20 virtual void PluginFocusChanged(PepperPluginInstanceImpl* instance,
21 bool focused) OVERRIDE;
22 virtual void PluginTextInputTypeChanged(
23 PepperPluginInstanceImpl* instance) OVERRIDE;
24 virtual void PluginCaretPositionChanged(
25 PepperPluginInstanceImpl* instance) OVERRIDE;
26 virtual void PluginRequestedCancelComposition(
27 PepperPluginInstanceImpl* instance) OVERRIDE;
28 virtual void PluginSelectionChanged(
29 PepperPluginInstanceImpl* instance) OVERRIDE;
30 virtual void InstanceCreated(PepperPluginInstanceImpl* instance) OVERRIDE;
31 virtual void InstanceDeleted(PepperPluginInstanceImpl* instance) OVERRIDE;
32 virtual bool AsyncOpenFile(const base::FilePath& path,
33 int flags,
34 const AsyncOpenFileCallback& callback) OVERRIDE;
35 virtual scoped_refptr<base::MessageLoopProxy>
36 GetFileThreadMessageLoopProxy() OVERRIDE;
37
38 // Add/remove a network list observer.
39 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE;
40 virtual void HandleDocumentLoad(
41 PepperPluginInstanceImpl* instance,
42 const WebKit::WebURLResponse& response) OVERRIDE;
43 virtual RendererPpapiHost* CreateExternalPluginModule(
44 scoped_refptr<PluginModule> module,
45 const base::FilePath& path,
46 ::ppapi::PpapiPermissions permissions,
47 const IPC::ChannelHandle& channel_handle,
48 base::ProcessId plugin_pid,
49 int plugin_child_id) OVERRIDE;
50 };
51
52 } // namespace content
53
54 #endif // CONTENT_RENDERER_PEPPER_MOCK_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/host_var_tracker_unittest.cc ('k') | content/renderer/pepper/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698