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() { | 14 content::RenderView* FakePepperPluginInstance::GetRenderView() { return NULL; } |
15 return NULL; | |
16 } | |
17 | 15 |
18 blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() { | 16 blink::WebPluginContainer* FakePepperPluginInstance::GetContainer() { |
19 return NULL; | 17 return NULL; |
20 } | 18 } |
21 | 19 |
22 v8::Isolate* FakePepperPluginInstance::GetIsolate() const { | 20 v8::Isolate* FakePepperPluginInstance::GetIsolate() const { return NULL; } |
23 return NULL; | |
24 } | |
25 | 21 |
26 ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() { | 22 ppapi::VarTracker* FakePepperPluginInstance::GetVarTracker() { return NULL; } |
27 return NULL; | |
28 } | |
29 | 23 |
30 const GURL& FakePepperPluginInstance::GetPluginURL() { | 24 const GURL& FakePepperPluginInstance::GetPluginURL() { return gurl_; } |
31 return gurl_; | |
32 } | |
33 | 25 |
34 base::FilePath FakePepperPluginInstance::GetModulePath() { | 26 base::FilePath FakePepperPluginInstance::GetModulePath() { |
35 return base::FilePath(); | 27 return base::FilePath(); |
36 } | 28 } |
37 | 29 |
38 PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image, | 30 PP_Resource FakePepperPluginInstance::CreateImage(gfx::ImageSkia* source_image, |
39 float scale) { | 31 float scale) { |
40 return 0; | 32 return 0; |
41 } | 33 } |
42 | 34 |
43 PP_ExternalPluginResult FakePepperPluginInstance::SwitchToOutOfProcessProxy( | 35 PP_ExternalPluginResult FakePepperPluginInstance::SwitchToOutOfProcessProxy( |
44 const base::FilePath& file_path, | 36 const base::FilePath& file_path, |
45 ppapi::PpapiPermissions permissions, | 37 ppapi::PpapiPermissions permissions, |
46 const IPC::ChannelHandle& channel_handle, | 38 const IPC::ChannelHandle& channel_handle, |
47 base::ProcessId plugin_pid, | 39 base::ProcessId plugin_pid, |
48 int plugin_child_id) { | 40 int plugin_child_id) { |
49 return PP_EXTERNAL_PLUGIN_FAILED; | 41 return PP_EXTERNAL_PLUGIN_FAILED; |
50 } | 42 } |
51 | 43 |
52 void FakePepperPluginInstance::SetAlwaysOnTop(bool on_top) {} | 44 void FakePepperPluginInstance::SetAlwaysOnTop(bool on_top) {} |
53 | 45 |
54 bool FakePepperPluginInstance::IsFullPagePlugin() { | 46 bool FakePepperPluginInstance::IsFullPagePlugin() { return false; } |
55 return false; | |
56 } | |
57 | 47 |
58 bool FakePepperPluginInstance::FlashSetFullscreen(bool fullscreen, | 48 bool FakePepperPluginInstance::FlashSetFullscreen(bool fullscreen, |
59 bool delay_report) { | 49 bool delay_report) { |
60 return false; | 50 return false; |
61 } | 51 } |
62 | 52 |
63 bool FakePepperPluginInstance::IsRectTopmost(const gfx::Rect& rect) { | 53 bool FakePepperPluginInstance::IsRectTopmost(const gfx::Rect& rect) { |
64 return false; | 54 return false; |
65 } | 55 } |
66 | 56 |
(...skipping 10 matching lines...) Expand all Loading... |
77 } | 67 } |
78 | 68 |
79 void FakePepperPluginInstance::SetEmbedProperty(PP_Var key, PP_Var value) {} | 69 void FakePepperPluginInstance::SetEmbedProperty(PP_Var key, PP_Var value) {} |
80 | 70 |
81 void FakePepperPluginInstance::SetSelectedText( | 71 void FakePepperPluginInstance::SetSelectedText( |
82 const base::string16& selected_text) {} | 72 const base::string16& selected_text) {} |
83 | 73 |
84 void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {} | 74 void FakePepperPluginInstance::SetLinkUnderCursor(const std::string& url) {} |
85 | 75 |
86 } // namespace content | 76 } // namespace content |
OLD | NEW |