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: 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
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/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« ppapi/shared_impl/api_id.h ('K') | « 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