blob: af0ba49c0eed5e075c9a1e7a76354cc2e63f3c7c (
plain)
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
|
// Copyright (c) 2013 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 "content/renderer/pepper/fake_pepper_plugin_instance.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
namespace content {
FakePepperPluginInstance::~FakePepperPluginInstance() {}
content::RenderView* FakePepperPluginInstance::GetRenderView() {
return NULL;
}
blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() {
return NULL;
}
v8::Isolate* FakePepperPluginInstance::GetIsolate() const {
return NULL;
}
ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() {
return NULL;
}
const GURL& FakePepperPluginInstance::GetPluginURL() {
return gurl_;
}
base::FilePath FakePepperPluginInstance::GetModulePath() {
return base::FilePath();
}
PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image,
float scale) {
return 0;
}
PP_ExternalPluginResult FakePepperPluginInstance::SwitchToOutOfProcessProxy(
const base::FilePath& file_path,
ppapi::PpapiPermissions permissions,
const IPC::ChannelHandle& channel_handle,
base::ProcessId plugin_pid,
int plugin_child_id) {
return PP_EXTERNAL_PLUGIN_FAILED;
}
void FakePepperPluginInstance::SetAlwaysOnTop(bool on_top) {}
bool FakePepperPluginInstance::IsFullPagePlugin() {
return false;
}
bool FakePepperPluginInstance::FlashSetFullscreen(bool fullscreen,
bool delay_report) {
return false;
}
bool FakePepperPluginInstance::IsRectTopmost(const gfx::Rect& rect) {
return false;
}
int32_t FakePepperPluginInstance::Navigate(
const ppapi::URLRequestInfoData& request,
const char* target,
bool from_user_action) {
return PP_ERROR_FAILED;
}
int FakePepperPluginInstance::MakePendingFileRefRendererHost(
const base::FilePath& path) {
return 0;
}
void FakePepperPluginInstance::SetEmbedProperty(PP_Var key, PP_Var value) {}
} // namespace content
|