mesa gn build: suppress -Wstring-conversion warnings
[chromium-blink-merge.git] / content / renderer / pepper / fake_pepper_plugin_instance.cc
blobe00c1eeed2fe88c738b971e2623c9594d0f8de16
1 // Copyright (c) 2013 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.
5 #include "content/renderer/pepper/fake_pepper_plugin_instance.h"
7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/shared_impl/ppapi_permissions.h"
10 namespace content {
12 FakePepperPluginInstance::~FakePepperPluginInstance() {}
14 content::RenderView* FakePepperPluginInstance::GetRenderView() { return NULL; }
16 blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() {
17 return NULL;
20 v8::Isolate* FakePepperPluginInstance::GetIsolate() const { return NULL; }
22 ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() { return NULL; }
24 const GURL& FakePepperPluginInstance::GetPluginURL() { return gurl_; }
26 base::FilePath FakePepperPluginInstance::GetModulePath() {
27 return base::FilePath();
30 PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image,
31 float scale) {
32 return 0;
35 PP_ExternalPluginResult FakePepperPluginInstance::SwitchToOutOfProcessProxy(
36 const base::FilePath& file_path,
37 ppapi::PpapiPermissions permissions,
38 const IPC::ChannelHandle& channel_handle,
39 base::ProcessId plugin_pid,
40 int plugin_child_id) {
41 return PP_EXTERNAL_PLUGIN_FAILED;
44 void FakePepperPluginInstance::SetAlwaysOnTop(bool on_top) {}
46 bool FakePepperPluginInstance::IsFullPagePlugin() { return false; }
48 bool FakePepperPluginInstance::FlashSetFullscreen(bool fullscreen,
49 bool delay_report) {
50 return false;
53 bool FakePepperPluginInstance::IsRectTopmost(const gfx::Rect& rect) {
54 return false;
57 int32_t FakePepperPluginInstance::Navigate(
58 const ppapi::URLRequestInfoData& request,
59 const char* target,
60 bool from_user_action) {
61 return PP_ERROR_FAILED;
64 int FakePepperPluginInstance::MakePendingFileRefRendererHost(
65 const base::FilePath& path) {
66 return 0;
69 void FakePepperPluginInstance::SetEmbedProperty(PP_Var key, PP_Var value) {}
71 void FakePepperPluginInstance::SetSelectedText(
72 const base::string16& selected_text) {}
74 void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {}
75 void FakePepperPluginInstance::SetTextInputType(ui::TextInputType type) {}
76 void FakePepperPluginInstance::PostMessageToJavaScript(PP_Var message) {}
79 } // namespace content