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 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 MockRendererPpapiHost::MockRendererPpapiHost(RenderView* render_view, | 10 MockRendererPpapiHost::MockRendererPpapiHost(RenderView* render_view, |
(...skipping 28 matching lines...) Expand all Loading... |
39 return render_view_; | 39 return render_view_; |
40 return NULL; | 40 return NULL; |
41 } | 41 } |
42 | 42 |
43 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( | 43 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( |
44 PP_Instance instance) const { | 44 PP_Instance instance) const { |
45 NOTIMPLEMENTED(); | 45 NOTIMPLEMENTED(); |
46 return NULL; | 46 return NULL; |
47 } | 47 } |
48 | 48 |
| 49 webkit::ppapi::PluginDelegate::PlatformGraphics2D* |
| 50 MockRendererPpapiHost::GetPlatformGraphics2D(PP_Resource resource) { |
| 51 NOTIMPLEMENTED(); |
| 52 return NULL; |
| 53 } |
| 54 |
49 bool MockRendererPpapiHost::HasUserGesture(PP_Instance instance) const { | 55 bool MockRendererPpapiHost::HasUserGesture(PP_Instance instance) const { |
50 return has_user_gesture_; | 56 return has_user_gesture_; |
51 } | 57 } |
52 | 58 |
53 IPC::PlatformFileForTransit MockRendererPpapiHost::ShareHandleWithRemote( | 59 IPC::PlatformFileForTransit MockRendererPpapiHost::ShareHandleWithRemote( |
54 base::PlatformFile handle, | 60 base::PlatformFile handle, |
55 bool should_close_source) { | 61 bool should_close_source) { |
56 NOTIMPLEMENTED(); | 62 NOTIMPLEMENTED(); |
57 return IPC::InvalidPlatformFileForTransit(); | 63 return IPC::InvalidPlatformFileForTransit(); |
58 } | 64 } |
59 | 65 |
| 66 bool MockRendererPpapiHost::IsRunningInProcess() const { |
| 67 NOTIMPLEMENTED(); |
| 68 return false; |
| 69 } |
| 70 |
60 } // namespace content | 71 } // namespace content |
OLD | NEW |