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

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

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years 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 #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 29 matching lines...) Expand all
40 return render_view_; 40 return render_view_;
41 return NULL; 41 return NULL;
42 } 42 }
43 43
44 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance( 44 WebKit::WebPluginContainer* MockRendererPpapiHost::GetContainerForInstance(
45 PP_Instance instance) const { 45 PP_Instance instance) const {
46 NOTIMPLEMENTED(); 46 NOTIMPLEMENTED();
47 return NULL; 47 return NULL;
48 } 48 }
49 49
50 webkit::ppapi::PluginDelegate::PlatformGraphics2D*
51 MockRendererPpapiHost::GetPlatformGraphics2D(PP_Resource resource) {
52 NOTIMPLEMENTED();
53 return NULL;
54 }
55
50 bool MockRendererPpapiHost::HasUserGesture(PP_Instance instance) const { 56 bool MockRendererPpapiHost::HasUserGesture(PP_Instance instance) const {
51 return has_user_gesture_; 57 return has_user_gesture_;
52 } 58 }
53 59
54 int MockRendererPpapiHost::GetRoutingIDForWidget(PP_Instance instance) const { 60 int MockRendererPpapiHost::GetRoutingIDForWidget(PP_Instance instance) const {
55 return 0; 61 return 0;
56 } 62 }
57 63
58 gfx::Point MockRendererPpapiHost::PluginPointToRenderView( 64 gfx::Point MockRendererPpapiHost::PluginPointToRenderView(
59 PP_Instance instance, 65 PP_Instance instance,
60 const gfx::Point& pt) const { 66 const gfx::Point& pt) const {
61 return gfx::Point(); 67 return gfx::Point();
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
77 bool MockRendererPpapiHost::IsRunningInProcess() const {
78 NOTIMPLEMENTED();
79 return false;
80 }
81
71 } // namespace content 82 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/mock_renderer_ppapi_host.h ('k') | content/renderer/pepper/pepper_graphics_2d_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698