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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.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
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/plugins/ppapi/mock_plugin_delegate.h" 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_preferences.h" 10 #include "ppapi/shared_impl/ppapi_preferences.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
12 #include "webkit/plugins/ppapi/mock_platform_image_2d.h" 12 #include "webkit/plugins/ppapi/mock_platform_image_2d.h"
13 #include "webkit/plugins/ppapi/plugin_delegate.h"
13 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 14 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
14 15
15 namespace webkit { 16 namespace webkit {
16 namespace ppapi { 17 namespace ppapi {
17 18
18 MockPluginDelegate::MockPluginDelegate() { 19 MockPluginDelegate::MockPluginDelegate() {
19 } 20 }
20 21
21 MockPluginDelegate::~MockPluginDelegate() { 22 MockPluginDelegate::~MockPluginDelegate() {
22 } 23 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const FilePath& file_path) { 71 const FilePath& file_path) {
71 return NULL; 72 return NULL;
72 } 73 }
73 74
74 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( 75 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D(
75 int width, 76 int width,
76 int height) { 77 int height) {
77 return new MockPlatformImage2D(width, height); 78 return new MockPlatformImage2D(width, height);
78 } 79 }
79 80
81 PluginDelegate::PlatformGraphics2D* MockPluginDelegate::GetGraphics2D(
82 PluginInstance* instance,
83 PP_Resource graphics_2d) {
84 return NULL;
85 }
86
80 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { 87 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() {
81 return NULL; 88 return NULL;
82 } 89 }
83 void MockPluginDelegate::ReparentContext( 90 void MockPluginDelegate::ReparentContext(
84 MockPluginDelegate::PlatformContext3D* context) { 91 MockPluginDelegate::PlatformContext3D* context) {
85 } 92 }
86 93
87 MockPluginDelegate::PlatformVideoDecoder* 94 MockPluginDelegate::PlatformVideoDecoder*
88 MockPluginDelegate::CreateVideoDecoder( 95 MockPluginDelegate::CreateVideoDecoder(
89 media::VideoDecodeAccelerator::Client* client, 96 media::VideoDecodeAccelerator::Client* client,
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 473 }
467 474
468 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( 475 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions(
469 const GURL& document_url, 476 const GURL& document_url,
470 const GURL& plugin_url) { 477 const GURL& plugin_url) {
471 return PP_FLASHLSORESTRICTIONS_NONE; 478 return PP_FLASHLSORESTRICTIONS_NONE;
472 } 479 }
473 480
474 } // namespace ppapi 481 } // namespace ppapi
475 } // namespace webkit 482 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698