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. 4 5#include "content/renderer/pepper/fake_pepper_plugin_instance.h" 6 7#include "ppapi/c/pp_errors.h" 8#include "ppapi/shared_impl/ppapi_permissions.h" 9 10namespace content { 11 12FakePepperPluginInstance::~FakePepperPluginInstance() {} 13 14content::RenderView* FakePepperPluginInstance::GetRenderView() { return NULL; } 15 16blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() { 17 return NULL; 18} 19 20v8::Isolate* FakePepperPluginInstance::GetIsolate() const { return NULL; } 21 22ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() { return NULL; } 23 24const GURL& FakePepperPluginInstance::GetPluginURL() { return gurl_; } 25 26base::FilePath FakePepperPluginInstance::GetModulePath() { 27 return base::FilePath(); 28} 29 30PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image, 31 float scale) { 32 return 0; 33} 34 35PP_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; 42} 43 44void FakePepperPluginInstance::SetAlwaysOnTop(bool on_top) {} 45 46bool FakePepperPluginInstance::IsFullPagePlugin() { return false; } 47 48bool FakePepperPluginInstance::FlashSetFullscreen(bool fullscreen, 49 bool delay_report) { 50 return false; 51} 52 53bool FakePepperPluginInstance::IsRectTopmost(const gfx::Rect& rect) { 54 return false; 55} 56 57int32_t FakePepperPluginInstance::Navigate( 58 const ppapi::URLRequestInfoData& request, 59 const char* target, 60 bool from_user_action) { 61 return PP_ERROR_FAILED; 62} 63 64int FakePepperPluginInstance::MakePendingFileRefRendererHost( 65 const base::FilePath& path) { 66 return 0; 67} 68 69void FakePepperPluginInstance::SetEmbedProperty(PP_Var key, PP_Var value) {} 70 71void FakePepperPluginInstance::SetSelectedText( 72 const base::string16& selected_text) {} 73 74void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {} 75void FakePepperPluginInstance::SetTextInputType(ui::TextInputType type) {} 76void FakePepperPluginInstance::PostMessageToJavaScript(PP_Var message) {} 77 78 79} // namespace content 80