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

Side by Side Diff: webkit/plugins/ppapi/ppb_flash_impl.cc

Issue 11421066: Refactor PPB_Flash_Fullscreen to the new resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | no next file » | 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/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
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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698