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

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

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks Created 6 years, 8 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_flash_fullscreen_api.h" 9 #include "ppapi/thunk/ppb_flash_fullscreen_api.h"
10 #include "ppapi/thunk/ppb_instance_api.h" 10 #include "ppapi/thunk/ppb_instance_api.h"
(...skipping 21 matching lines...) Expand all
32 // TODO(raymes): The codepaths for GetScreenSize in PPB_Fullscreen and 32 // TODO(raymes): The codepaths for GetScreenSize in PPB_Fullscreen and
33 // PPB_Flash_Fullscreen are the same. Consider deprecating the flash version. 33 // PPB_Flash_Fullscreen are the same. Consider deprecating the flash version.
34 PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) { 34 PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) {
35 EnterInstance enter(instance); 35 EnterInstance enter(instance);
36 if (enter.failed()) 36 if (enter.failed())
37 return PP_FALSE; 37 return PP_FALSE;
38 return enter.functions()->GetScreenSize(instance, size); 38 return enter.functions()->GetScreenSize(instance, size);
39 } 39 }
40 40
41 const PPB_FlashFullscreen_0_1 g_ppb_flash_fullscreen_thunk = { 41 const PPB_FlashFullscreen_0_1 g_ppb_flash_fullscreen_thunk = {
42 &IsFullscreen, 42 &IsFullscreen, &SetFullscreen, &GetScreenSize};
43 &SetFullscreen,
44 &GetScreenSize
45 };
46 43
47 } // namespace 44 } // namespace
48 45
49 const PPB_FlashFullscreen_0_1* GetPPB_FlashFullscreen_0_1_Thunk() { 46 const PPB_FlashFullscreen_0_1* GetPPB_FlashFullscreen_0_1_Thunk() {
50 return &g_ppb_flash_fullscreen_thunk; 47 return &g_ppb_flash_fullscreen_thunk;
51 } 48 }
52 49
53 } // namespace thunk 50 } // namespace thunk
54 } // namespace ppapi 51 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698