root/content/renderer/pepper/fake_pepper_plugin_instance.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. GetRenderView
  2. GetContainer
  3. GetIsolate
  4. GetVarTracker
  5. GetPluginURL
  6. GetModulePath
  7. CreateImage
  8. SwitchToOutOfProcessProxy
  9. SetAlwaysOnTop
  10. IsFullPagePlugin
  11. FlashSetFullscreen
  12. IsRectTopmost
  13. Navigate
  14. MakePendingFileRefRendererHost
  15. SetEmbedProperty
  16. SetSelectedText
  17. SetLinkUnderCursor

// 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) {}

void FakePepperPluginInstance::SetSelectedText(
    const base::string16& selected_text) {}

void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {}

}  // namespace content

/* [<][>][^][v][top][bottom][index][help] */