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

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

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
« no previous file with comments | « content/renderer/pepper/mock_plugin_delegate.h ('k') | content/renderer/pepper/pepper_broker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/pepper/mock_plugin_delegate.h"
6
7 #include "base/logging.h"
8 #include "base/message_loop/message_loop_proxy.h"
9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
10 #include "content/renderer/pepper/plugin_delegate.h"
11 #include "content/renderer/pepper/plugin_module.h"
12 #include "ppapi/c/pp_errors.h"
13 #include "ppapi/shared_impl/ppapi_permissions.h"
14 #include "ppapi/shared_impl/ppapi_preferences.h"
15 #include "third_party/WebKit/public/platform/WebGamepads.h"
16
17 namespace content {
18
19 MockPluginDelegate::MockPluginDelegate() {
20 }
21
22 MockPluginDelegate::~MockPluginDelegate() {
23 }
24
25 void MockPluginDelegate::PluginFocusChanged(PepperPluginInstanceImpl* instance,
26 bool focused) {
27 }
28
29 void MockPluginDelegate::PluginTextInputTypeChanged(
30 PepperPluginInstanceImpl* instance) {
31 }
32
33 void MockPluginDelegate::PluginCaretPositionChanged(
34 PepperPluginInstanceImpl* instance) {
35 }
36
37 void MockPluginDelegate::PluginRequestedCancelComposition(
38 PepperPluginInstanceImpl* instance) {
39 }
40
41 void MockPluginDelegate::PluginSelectionChanged(
42 PepperPluginInstanceImpl* instance) {
43 }
44
45 void MockPluginDelegate::InstanceCreated(PepperPluginInstanceImpl* instance) {
46 }
47
48 void MockPluginDelegate::InstanceDeleted(PepperPluginInstanceImpl* instance) {
49 }
50
51 bool MockPluginDelegate::AsyncOpenFile(const base::FilePath& path,
52 int flags,
53 const AsyncOpenFileCallback& callback) {
54 return false;
55 }
56
57 scoped_refptr<base::MessageLoopProxy>
58 MockPluginDelegate::GetFileThreadMessageLoopProxy() {
59 return scoped_refptr<base::MessageLoopProxy>();
60 }
61
62 void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) {
63 data->length = 0;
64 }
65
66 void MockPluginDelegate::HandleDocumentLoad(
67 PepperPluginInstanceImpl* instance,
68 const WebKit::WebURLResponse& response) {
69 }
70
71 RendererPpapiHost* MockPluginDelegate::CreateExternalPluginModule(
72 scoped_refptr<PluginModule> module,
73 const base::FilePath& path,
74 ::ppapi::PpapiPermissions permissions,
75 const IPC::ChannelHandle& channel_handle,
76 base::ProcessId plugin_pid,
77 int plugin_child_id) {
78 return NULL;
79 }
80
81 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/mock_plugin_delegate.h ('k') | content/renderer/pepper/pepper_broker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698