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

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

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper/mock_plugin_delegate.h ('k') | content/renderer/pepper/mock_resource.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 "content/renderer/pepper/mock_plugin_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "content/renderer/pepper/mock_platform_image_2d.h"
10 #include "content/renderer/pepper/plugin_delegate.h"
11 #include "content/renderer/pepper/plugin_module.h"
12 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h"
9 #include "ppapi/c/pp_errors.h" 13 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_permissions.h" 14 #include "ppapi/shared_impl/ppapi_permissions.h"
11 #include "ppapi/shared_impl/ppapi_preferences.h" 15 #include "ppapi/shared_impl/ppapi_preferences.h"
12 #include "third_party/WebKit/public/platform/WebGamepads.h" 16 #include "third_party/WebKit/public/platform/WebGamepads.h"
13 #include "webkit/plugins/ppapi/mock_platform_image_2d.h"
14 #include "webkit/plugins/ppapi/plugin_delegate.h"
15 #include "webkit/plugins/ppapi/plugin_module.h"
16 #include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h"
17 17
18 namespace webkit { 18 namespace webkit {
19 namespace ppapi { 19 namespace ppapi {
20 20
21 MockPluginDelegate::MockPluginDelegate() { 21 MockPluginDelegate::MockPluginDelegate() {
22 } 22 }
23 23
24 MockPluginDelegate::~MockPluginDelegate() { 24 MockPluginDelegate::~MockPluginDelegate() {
25 } 25 }
26 26
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 } 330 }
331 331
332 std::string MockPluginDelegate::GetDefaultEncoding() { 332 std::string MockPluginDelegate::GetDefaultEncoding() {
333 return "iso-8859-1"; 333 return "iso-8859-1";
334 } 334 }
335 335
336 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor, 336 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor,
337 double maximum_factor) { 337 double maximum_factor) {
338 } 338 }
339 339
340 void MockPluginDelegate::DidStartLoading() {
341 }
342
343 void MockPluginDelegate::DidStopLoading() {
344 }
345
346 void MockPluginDelegate::SetContentRestriction(int restrictions) {
347 }
348
349 void MockPluginDelegate::SaveURLAs(const GURL& url) {
350 }
351
352 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( 340 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory(
353 size_t size) { 341 size_t size) {
354 return NULL; 342 return NULL;
355 } 343 }
356 344
357 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { 345 ::ppapi::Preferences MockPluginDelegate::GetPreferences() {
358 return ::ppapi::Preferences(); 346 return ::ppapi::Preferences();
359 } 347 }
360 348
361 bool MockPluginDelegate::LockMouse(PluginInstanceImpl* instance) { 349 bool MockPluginDelegate::LockMouse(PluginInstanceImpl* instance) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 const base::FilePath& path, 406 const base::FilePath& path,
419 ::ppapi::PpapiPermissions permissions, 407 ::ppapi::PpapiPermissions permissions,
420 const IPC::ChannelHandle& channel_handle, 408 const IPC::ChannelHandle& channel_handle,
421 base::ProcessId plugin_pid, 409 base::ProcessId plugin_pid,
422 int plugin_child_id) { 410 int plugin_child_id) {
423 return NULL; 411 return NULL;
424 } 412 }
425 413
426 } // namespace ppapi 414 } // namespace ppapi
427 } // namespace webkit 415 } // namespace webkit
OLDNEW
« no previous file with comments | « content/renderer/pepper/mock_plugin_delegate.h ('k') | content/renderer/pepper/mock_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698