1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/plugins/ppapi/mock_plugin_delegate.h"
#include "base/message_loop_proxy.h"
#include "ppapi/c/pp_errors.h"
namespace webkit {
namespace ppapi {
MockPluginDelegate::MockPluginDelegate() {
}
MockPluginDelegate::~MockPluginDelegate() {
}
void MockPluginDelegate::PluginCrashed(PluginInstance* instance) {
}
void MockPluginDelegate::InstanceCreated(PluginInstance* instance) {
}
void MockPluginDelegate::InstanceDeleted(PluginInstance* instance) {
}
SkBitmap* MockPluginDelegate::GetSadPluginBitmap() {
return NULL;
}
MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D(
int width,
int height) {
return NULL;
}
MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() {
return NULL;
}
MockPluginDelegate::PlatformVideoDecoder*
MockPluginDelegate::CreateVideoDecoder(
PP_VideoDecoderConfig_Dev* decoder_config) {
return NULL;
}
MockPluginDelegate::PlatformAudio* MockPluginDelegate::CreateAudio(
uint32_t sample_rate,
uint32_t sample_count,
PlatformAudio::Client* client) {
return NULL;
}
MockPluginDelegate::PpapiBroker* MockPluginDelegate::ConnectToPpapiBroker(
PluginInstance* instance,
PPB_Broker_Impl* client) {
return NULL;
}
void MockPluginDelegate::NumberOfFindResultsChanged(int identifier,
int total,
bool final_result) {
}
void MockPluginDelegate::SelectedFindResultChanged(int identifier, int index) {
}
bool MockPluginDelegate::RunFileChooser(
const WebKit::WebFileChooserParams& params,
WebKit::WebFileChooserCompletion* chooser_completion) {
return false;
}
bool MockPluginDelegate::AsyncOpenFile(const FilePath& path,
int flags,
AsyncOpenFileCallback* callback) {
return false;
}
bool MockPluginDelegate::OpenFileSystem(
const GURL& url,
fileapi::FileSystemType type,
long long size,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
bool MockPluginDelegate::MakeDirectory(
const FilePath& path,
bool recursive,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
bool MockPluginDelegate::Query(
const FilePath& path,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
bool MockPluginDelegate::Touch(
const FilePath& path,
const base::Time& last_access_time,
const base::Time& last_modified_time,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
bool MockPluginDelegate::Delete(
const FilePath& path,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
bool MockPluginDelegate::Rename(
const FilePath& file_path,
const FilePath& new_file_path,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
bool MockPluginDelegate::ReadDirectory(
const FilePath& directory_path,
fileapi::FileSystemCallbackDispatcher* dispatcher) {
return false;
}
base::PlatformFileError MockPluginDelegate::OpenFile(
const PepperFilePath& path,
int flags,
base::PlatformFile* file) {
return base::PLATFORM_FILE_ERROR_FAILED;
}
base::PlatformFileError MockPluginDelegate::RenameFile(
const PepperFilePath& from_path,
const PepperFilePath& to_path) {
return base::PLATFORM_FILE_ERROR_FAILED;
}
base::PlatformFileError MockPluginDelegate::DeleteFileOrDir(
const PepperFilePath& path,
bool recursive) {
return base::PLATFORM_FILE_ERROR_FAILED;
}
base::PlatformFileError MockPluginDelegate::CreateDir(
const PepperFilePath& path) {
return base::PLATFORM_FILE_ERROR_FAILED;
}
base::PlatformFileError MockPluginDelegate::QueryFile(
const PepperFilePath& path,
base::PlatformFileInfo* info) {
return base::PLATFORM_FILE_ERROR_FAILED;
}
base::PlatformFileError MockPluginDelegate::GetDirContents(
const PepperFilePath& path,
DirContents* contents) {
return base::PLATFORM_FILE_ERROR_FAILED;
}
scoped_refptr<base::MessageLoopProxy>
MockPluginDelegate::GetFileThreadMessageLoopProxy() {
return scoped_refptr<base::MessageLoopProxy>();
}
int32_t MockPluginDelegate::ConnectTcp(
webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
const char* host,
uint16_t port) {
return PP_ERROR_FAILED;
}
int32_t MockPluginDelegate::ConnectTcpAddress(
webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
const struct PP_Flash_NetAddress* addr) {
return PP_ERROR_FAILED;
}
int32_t MockPluginDelegate::ShowContextMenu(
PluginInstance* instance,
webkit::ppapi::PPB_Flash_Menu_Impl* menu,
const gfx::Point& position) {
return PP_ERROR_FAILED;
}
FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
PluginInstance* instance) {
return NULL;
}
gfx::Size MockPluginDelegate::GetScreenSize() {
return gfx::Size(1024, 768);
}
std::string MockPluginDelegate::GetDefaultEncoding() {
return "iso-8859-1";
}
void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor,
double maximum_factor) {
}
std::string MockPluginDelegate::ResolveProxy(const GURL& url) {
return std::string();
}
void MockPluginDelegate::DidStartLoading() {
}
void MockPluginDelegate::DidStopLoading() {
}
void MockPluginDelegate::SetContentRestriction(int restrictions) {
}
void MockPluginDelegate::HasUnsupportedFeature() {
}
P2PSocketDispatcher* MockPluginDelegate::GetP2PSocketDispatcher() {
return NULL;
}
webkit_glue::P2PTransport* MockPluginDelegate::CreateP2PTransport() {
return NULL;
}
} // namespace ppapi
} // namespace webkit
|