| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/pepper/fake_pepper_plugin_instance.h" | 5 #include "content/renderer/pepper/fake_pepper_plugin_instance.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/shared_impl/ppapi_permissions.h" | 8 #include "ppapi/shared_impl/ppapi_permissions.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 FakePepperPluginInstance::~FakePepperPluginInstance() {} | 12 FakePepperPluginInstance::~FakePepperPluginInstance() {} |
| 13 | 13 |
| 14 content::RenderView* FakePepperPluginInstance::GetRenderView() { return NULL; } | 14 content::RenderFrame* FakePepperPluginInstance::GetRenderFrame() { |
| 15 return nullptr; |
| 16 } |
| 17 |
| 18 content::RenderView* FakePepperPluginInstance::GetRenderView() { |
| 19 return nullptr; |
| 20 } |
| 15 | 21 |
| 16 blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() { | 22 blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() { |
| 17 return NULL; | 23 return nullptr; |
| 18 } | 24 } |
| 19 | 25 |
| 20 v8::Isolate* FakePepperPluginInstance::GetIsolate() const { return NULL; } | 26 v8::Isolate* FakePepperPluginInstance::GetIsolate() const { return nullptr; } |
| 21 | 27 |
| 22 ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() { return NULL; } | 28 ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() { return nullptr; } |
| 23 | 29 |
| 24 const GURL& FakePepperPluginInstance::GetPluginURL() { return gurl_; } | 30 const GURL& FakePepperPluginInstance::GetPluginURL() { return gurl_; } |
| 25 | 31 |
| 26 base::FilePath FakePepperPluginInstance::GetModulePath() { | 32 base::FilePath FakePepperPluginInstance::GetModulePath() { |
| 27 return base::FilePath(); | 33 return base::FilePath(); |
| 28 } | 34 } |
| 29 | 35 |
| 30 PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image, | 36 PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image, |
| 31 float scale) { | 37 float scale) { |
| 32 return 0; | 38 return 0; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 76 |
| 71 void FakePepperPluginInstance::SetSelectedText( | 77 void FakePepperPluginInstance::SetSelectedText( |
| 72 const base::string16& selected_text) {} | 78 const base::string16& selected_text) {} |
| 73 | 79 |
| 74 void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {} | 80 void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {} |
| 75 void FakePepperPluginInstance::SetTextInputType(ui::TextInputType type) {} | 81 void FakePepperPluginInstance::SetTextInputType(ui::TextInputType type) {} |
| 76 void FakePepperPluginInstance::PostMessageToJavaScript(PP_Var message) {} | 82 void FakePepperPluginInstance::PostMessageToJavaScript(PP_Var message) {} |
| 77 | 83 |
| 78 | 84 |
| 79 } // namespace content | 85 } // namespace content |
| OLD | NEW |