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 #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" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 364 |
365 void MockPluginDelegate::DidStopLoading() { | 365 void MockPluginDelegate::DidStopLoading() { |
366 } | 366 } |
367 | 367 |
368 void MockPluginDelegate::SetContentRestriction(int restrictions) { | 368 void MockPluginDelegate::SetContentRestriction(int restrictions) { |
369 } | 369 } |
370 | 370 |
371 void MockPluginDelegate::SaveURLAs(const GURL& url) { | 371 void MockPluginDelegate::SaveURLAs(const GURL& url) { |
372 } | 372 } |
373 | 373 |
374 double MockPluginDelegate::GetLocalTimeZoneOffset(base::Time t) { | |
375 return 0.0; | |
376 } | |
377 | |
378 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( | 374 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( |
379 uint32_t size) { | 375 uint32_t size) { |
380 return NULL; | 376 return NULL; |
381 } | 377 } |
382 | 378 |
383 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { | 379 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { |
384 return ::ppapi::Preferences(); | 380 return ::ppapi::Preferences(); |
385 } | 381 } |
386 | 382 |
387 bool MockPluginDelegate::LockMouse(PluginInstance* instance) { | 383 bool MockPluginDelegate::LockMouse(PluginInstance* instance) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 } | 420 } |
425 | 421 |
426 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( | 422 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( |
427 const GURL& document_url, | 423 const GURL& document_url, |
428 const GURL& plugin_url) { | 424 const GURL& plugin_url) { |
429 return PP_FLASHLSORESTRICTIONS_NONE; | 425 return PP_FLASHLSORESTRICTIONS_NONE; |
430 } | 426 } |
431 | 427 |
432 } // namespace ppapi | 428 } // namespace ppapi |
433 } // namespace webkit | 429 } // namespace webkit |
OLD | NEW |