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 16 matching lines...) Expand all Loading... |
27 return instance == pp_instance_; | 27 return instance == pp_instance_; |
28 } | 28 } |
29 | 29 |
30 RenderView* MockRendererPpapiHost::GetRenderViewForInstance( | 30 RenderView* MockRendererPpapiHost::GetRenderViewForInstance( |
31 PP_Instance instance) const { | 31 PP_Instance instance) const { |
32 if (instance == pp_instance_) | 32 if (instance == pp_instance_) |
33 return render_view_; | 33 return render_view_; |
34 return NULL; | 34 return NULL; |
35 } | 35 } |
36 | 36 |
| 37 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( |
| 38 PP_Instance instance) const { |
| 39 NOTIMPLEMENTED(); |
| 40 return NULL; |
| 41 } |
| 42 |
37 bool MockRendererPpapiHost::HasUserGesture(PP_Instance instance) const { | 43 bool MockRendererPpapiHost::HasUserGesture(PP_Instance instance) const { |
38 return has_user_gesture_; | 44 return has_user_gesture_; |
39 } | 45 } |
40 | 46 |
41 } // namespace content | 47 } // namespace content |
OLD | NEW |