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/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 info->last_modified_time = TimeToPPTime(file_info.last_modified); | 471 info->last_modified_time = TimeToPPTime(file_info.last_modified); |
472 info->system_type = PP_FILESYSTEMTYPE_EXTERNAL; | 472 info->system_type = PP_FILESYSTEMTYPE_EXTERNAL; |
473 if (file_info.is_directory) | 473 if (file_info.is_directory) |
474 info->type = PP_FILETYPE_DIRECTORY; | 474 info->type = PP_FILETYPE_DIRECTORY; |
475 else | 475 else |
476 info->type = PP_FILETYPE_REGULAR; | 476 info->type = PP_FILETYPE_REGULAR; |
477 } | 477 } |
478 return ::ppapi::PlatformFileErrorToPepperError(result); | 478 return ::ppapi::PlatformFileErrorToPepperError(result); |
479 } | 479 } |
480 | 480 |
481 PP_Bool PPB_Flash_Impl::FlashIsFullscreen(PP_Instance instance) { | |
482 return PP_FromBool(instance_->flash_fullscreen()); | |
483 } | |
484 | |
485 PP_Bool PPB_Flash_Impl::FlashSetFullscreen(PP_Instance instance, | |
486 PP_Bool fullscreen) { | |
487 instance_->FlashSetFullscreen(PP_ToBool(fullscreen), true); | |
488 return PP_TRUE; | |
489 } | |
490 | |
491 PP_Bool PPB_Flash_Impl::FlashGetScreenSize(PP_Instance instance, | |
492 PP_Size* size) { | |
493 return instance_->GetScreenSize(instance, size); | |
494 } | |
495 | |
496 } // namespace ppapi | 481 } // namespace ppapi |
497 } // namespace webkit | 482 } // namespace webkit |
OLD | NEW |