Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: content/renderer/pepper/mock_renderer_ppapi_host.h

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 27 matching lines...) Expand all
38 38
39 // RendererPpapiHost. 39 // RendererPpapiHost.
40 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; 40 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE;
41 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; 41 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE;
42 virtual webkit::ppapi::PluginInstance* GetPluginInstance( 42 virtual webkit::ppapi::PluginInstance* GetPluginInstance(
43 PP_Instance instance) const OVERRIDE; 43 PP_Instance instance) const OVERRIDE;
44 virtual RenderView* GetRenderViewForInstance( 44 virtual RenderView* GetRenderViewForInstance(
45 PP_Instance instance) const OVERRIDE; 45 PP_Instance instance) const OVERRIDE;
46 virtual WebKit::WebPluginContainer* GetContainerForInstance( 46 virtual WebKit::WebPluginContainer* GetContainerForInstance(
47 PP_Instance instance) const OVERRIDE; 47 PP_Instance instance) const OVERRIDE;
48 virtual webkit::ppapi::PluginDelegate::PlatformGraphics2D*
49 GetPlatformGraphics2D(PP_Resource resource) OVERRIDE;
48 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; 50 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE;
49 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( 51 virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
50 base::PlatformFile handle, 52 base::PlatformFile handle,
51 bool should_close_source) OVERRIDE; 53 bool should_close_source) OVERRIDE;
54 virtual bool IsRunningInProcess() const OVERRIDE;
52 55
53 private: 56 private:
54 ppapi::proxy::ResourceMessageTestSink sink_; 57 ppapi::proxy::ResourceMessageTestSink sink_;
55 ppapi::host::PpapiHost ppapi_host_; 58 ppapi::host::PpapiHost ppapi_host_;
56 59
57 RenderView* render_view_; 60 RenderView* render_view_;
58 PP_Instance pp_instance_; 61 PP_Instance pp_instance_;
59 62
60 bool has_user_gesture_; 63 bool has_user_gesture_;
61 64
62 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); 65 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost);
63 }; 66 };
64 67
65 } // namespace content 68 } // namespace content
66 69
67 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ 70 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698