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 #ifndef CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/public/renderer/renderer_ppapi_host.h" | 9 #include "content/public/renderer/renderer_ppapi_host.h" |
10 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" | 10 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Sets whether there is currently a user gesture. Defaults to false. | 30 // Sets whether there is currently a user gesture. Defaults to false. |
31 void set_has_user_gesture(bool gesture) { has_user_gesture_ = gesture; } | 31 void set_has_user_gesture(bool gesture) { has_user_gesture_ = gesture; } |
32 | 32 |
33 // RendererPpapiHost. | 33 // RendererPpapiHost. |
34 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; | 34 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; |
35 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; | 35 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; |
36 virtual PepperPluginInstance* GetPluginInstance( | 36 virtual PepperPluginInstance* GetPluginInstance( |
37 PP_Instance instance) const OVERRIDE; | 37 PP_Instance instance) const OVERRIDE; |
38 virtual RenderView* GetRenderViewForInstance( | 38 virtual RenderView* GetRenderViewForInstance( |
39 PP_Instance instance) const OVERRIDE; | 39 PP_Instance instance) const OVERRIDE; |
40 virtual WebKit::WebPluginContainer* GetContainerForInstance( | 40 virtual blink::WebPluginContainer* GetContainerForInstance( |
41 PP_Instance instance) const OVERRIDE; | 41 PP_Instance instance) const OVERRIDE; |
42 virtual base::ProcessId GetPluginPID() const OVERRIDE; | 42 virtual base::ProcessId GetPluginPID() const OVERRIDE; |
43 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; | 43 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; |
44 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; | 44 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; |
45 virtual gfx::Point PluginPointToRenderView( | 45 virtual gfx::Point PluginPointToRenderView( |
46 PP_Instance instance, | 46 PP_Instance instance, |
47 const gfx::Point& pt) const OVERRIDE; | 47 const gfx::Point& pt) const OVERRIDE; |
48 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 48 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
49 base::PlatformFile handle, | 49 base::PlatformFile handle, |
50 bool should_close_source) OVERRIDE; | 50 bool should_close_source) OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
64 PP_Instance pp_instance_; | 64 PP_Instance pp_instance_; |
65 | 65 |
66 bool has_user_gesture_; | 66 bool has_user_gesture_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); | 68 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ | 73 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ |
OLD | NEW |