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/ppb_flash_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 info->last_modified_time = TimeToPPTime(file_info.last_modified); | 450 info->last_modified_time = TimeToPPTime(file_info.last_modified); |
451 info->system_type = PP_FILESYSTEMTYPE_EXTERNAL; | 451 info->system_type = PP_FILESYSTEMTYPE_EXTERNAL; |
452 if (file_info.is_directory) | 452 if (file_info.is_directory) |
453 info->type = PP_FILETYPE_DIRECTORY; | 453 info->type = PP_FILETYPE_DIRECTORY; |
454 else | 454 else |
455 info->type = PP_FILETYPE_REGULAR; | 455 info->type = PP_FILETYPE_REGULAR; |
456 } | 456 } |
457 return ::ppapi::PlatformFileErrorToPepperError(result); | 457 return ::ppapi::PlatformFileErrorToPepperError(result); |
458 } | 458 } |
459 | 459 |
460 PP_Bool PPB_Flash_Impl::FlashIsFullscreen(PP_Instance instance) { | |
461 return PP_FromBool(instance_->flash_fullscreen()); | |
462 } | |
463 | |
464 PP_Bool PPB_Flash_Impl::FlashSetFullscreen(PP_Instance instance, | |
465 PP_Bool fullscreen) { | |
466 instance_->FlashSetFullscreen(PP_ToBool(fullscreen), true); | |
467 return PP_TRUE; | |
468 } | |
469 | |
470 PP_Bool PPB_Flash_Impl::FlashGetScreenSize(PP_Instance instance, | |
471 PP_Size* size) { | |
472 return instance_->GetScreenSize(instance, size); | |
473 } | |
474 | |
475 } // namespace ppapi | 460 } // namespace ppapi |
476 } // namespace webkit | 461 } // namespace webkit |
OLD | NEW |