Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ppapi/proxy/flash_fullscreen_resource.h" | |
| 6 | |
| 7 #include "ppapi/c/pp_bool.h" | |
| 8 #include "ppapi/proxy/plugin_dispatcher.h" | |
|
dmichael (off chromium)
2012/11/27 20:58:01
^^^ Do you need this?
raymes
2012/11/27 21:24:28
Done.
| |
| 9 #include "ppapi/proxy/ppapi_messages.h" | |
| 10 | |
| 11 namespace ppapi { | |
| 12 namespace proxy { | |
| 13 | |
| 14 FlashFullscreenResource::FlashFullscreenResource(Connection connection, | |
| 15 PP_Instance instance) | |
| 16 : PluginResource(connection, instance), | |
| 17 is_fullscreen_(PP_FALSE) { | |
| 18 } | |
| 19 | |
| 20 FlashFullscreenResource::~FlashFullscreenResource() { | |
| 21 } | |
| 22 | |
| 23 thunk::PPB_Flash_Fullscreen_API* | |
| 24 FlashFullscreenResource::AsPPB_Flash_Fullscreen_API() { | |
| 25 return this; | |
| 26 } | |
| 27 | |
| 28 PP_Bool FlashFullscreenResource::IsFullscreen(PP_Instance instance) { | |
| 29 return is_fullscreen_; | |
| 30 } | |
| 31 | |
| 32 PP_Bool FlashFullscreenResource::SetFullscreen(PP_Instance instance, | |
| 33 PP_Bool fullscreen) { | |
| 34 if (!sent_create_to_renderer()) | |
| 35 SendCreate(RENDERER, PpapiHostMsg_FlashFullscreen_Create()); | |
| 36 int32_t result = SyncCall<IPC::Message>(RENDERER, | |
| 37 PpapiHostMsg_FlashFullscreen_SetFullscreen(fullscreen)); | |
| 38 return PP_FromBool(result == PP_OK); | |
| 39 } | |
| 40 | |
| 41 void FlashFullscreenResource::SetFullscreenInternal(PP_Instance instance, | |
|
dmichael (off chromium)
2012/11/27 20:58:01
Maybe SetLocalIsFullscreen, or something? It's not
raymes
2012/11/27 21:24:28
You're right. I prefer that. I also improved the c
| |
| 42 PP_Bool is_fullscreen) { | |
| 43 is_fullscreen_ = is_fullscreen; | |
| 44 } | |
| 45 | |
| 46 } // namespace proxy | |
| 47 } // namespace ppapi | |
| OLD | NEW |