OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/mock_renderer_ppapi_host.h" | 5 #include "content/renderer/pepper/mock_renderer_ppapi_host.h" |
6 | 6 |
7 #include "ui/gfx/point.h" | 7 #include "ui/gfx/point.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 bool MockRendererPpapiHost::IsValidInstance(PP_Instance instance) const { | 27 bool MockRendererPpapiHost::IsValidInstance(PP_Instance instance) const { |
28 return instance == pp_instance_; | 28 return instance == pp_instance_; |
29 } | 29 } |
30 | 30 |
31 webkit::ppapi::PluginInstance* MockRendererPpapiHost::GetPluginInstance( | 31 webkit::ppapi::PluginInstance* MockRendererPpapiHost::GetPluginInstance( |
32 PP_Instance instance) const { | 32 PP_Instance instance) const { |
33 NOTIMPLEMENTED(); | 33 NOTIMPLEMENTED(); |
34 return NULL; | 34 return NULL; |
35 } | 35 } |
36 | 36 |
| 37 webkit::ppapi::PluginDelegate* MockRendererPpapiHost::GetDelegateForInstance( |
| 38 PP_Instance instance) const { |
| 39 NOTIMPLEMENTED(); |
| 40 return NULL; |
| 41 } |
| 42 |
37 RenderView* MockRendererPpapiHost::GetRenderViewForInstance( | 43 RenderView* MockRendererPpapiHost::GetRenderViewForInstance( |
38 PP_Instance instance) const { | 44 PP_Instance instance) const { |
39 if (instance == pp_instance_) | 45 if (instance == pp_instance_) |
40 return render_view_; | 46 return render_view_; |
41 return NULL; | 47 return NULL; |
42 } | 48 } |
43 | 49 |
44 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( | 50 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( |
45 PP_Instance instance) const { | 51 PP_Instance instance) const { |
46 NOTIMPLEMENTED(); | 52 NOTIMPLEMENTED(); |
(...skipping 15 matching lines...) Expand all Loading... |
62 } | 68 } |
63 | 69 |
64 IPC::PlatformFileForTransit MockRendererPpapiHost::ShareHandleWithRemote( | 70 IPC::PlatformFileForTransit MockRendererPpapiHost::ShareHandleWithRemote( |
65 base::PlatformFile handle, | 71 base::PlatformFile handle, |
66 bool should_close_source) { | 72 bool should_close_source) { |
67 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
68 return IPC::InvalidPlatformFileForTransit(); | 74 return IPC::InvalidPlatformFileForTransit(); |
69 } | 75 } |
70 | 76 |
71 } // namespace content | 77 } // namespace content |
OLD | NEW |