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

Side by Side Diff: ppapi/thunk/ppb_flash_fullscreen_thunk.cc

Issue 10918182: Don't require a recreation of the context when fullscreening (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 8 years, 3 months 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 "ppapi/c/ppb_fullscreen.h" 5 #include "ppapi/c/ppb_fullscreen.h"
6 #include "ppapi/c/private/ppb_flash_fullscreen.h" 6 #include "ppapi/c/private/ppb_flash_fullscreen.h"
7 #include "ppapi/thunk/thunk.h" 7 #include "ppapi/thunk/thunk.h"
8 #include "ppapi/thunk/enter.h" 8 #include "ppapi/thunk/enter.h"
9 #include "ppapi/thunk/ppb_instance_api.h" 9 #include "ppapi/thunk/ppb_instance_api.h"
10 #include "ppapi/thunk/ppb_flash_api.h" 10 #include "ppapi/thunk/ppb_flash_api.h"
(...skipping 19 matching lines...) Expand all
30 fullscreen); 30 fullscreen);
31 } 31 }
32 32
33 PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) { 33 PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) {
34 EnterInstance enter(instance); 34 EnterInstance enter(instance);
35 if (enter.failed()) 35 if (enter.failed())
36 return PP_FALSE; 36 return PP_FALSE;
37 return enter.functions()->GetFlashAPI()->FlashGetScreenSize(instance, size); 37 return enter.functions()->GetFlashAPI()->FlashGetScreenSize(instance, size);
38 } 38 }
39 39
40 const PPB_FlashFullscreen g_ppb_flash_fullscreen_thunk = { 40 const PPB_FlashFullscreen_0_1 g_ppb_flash_fullscreen_thunk = {
41 &IsFullscreen, 41 &IsFullscreen,
42 &SetFullscreen, 42 &SetFullscreen,
43 &GetScreenSize 43 &GetScreenSize
44 }; 44 };
45 45
46 } // namespace 46 } // namespace
47 47
48 const PPB_FlashFullscreen_0_1* GetPPB_FlashFullscreen_0_1_Thunk() { 48 const PPB_FlashFullscreen_0_1* GetPPB_FlashFullscreen_0_1_Thunk() {
49 return &g_ppb_flash_fullscreen_thunk; 49 return &g_ppb_flash_fullscreen_thunk;
50 } 50 }
51 51
52 } // namespace thunk 52 } // namespace thunk
53 } // namespace ppapi 53 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698