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

Side by Side Diff: ppapi/thunk/ppb_flash_font_file_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/private/ppb_flash_font_file.h" 5 #include "ppapi/c/private/ppb_flash_font_file.h"
6 #include "ppapi/thunk/enter.h" 6 #include "ppapi/thunk/enter.h"
7 #include "ppapi/thunk/ppb_flash_font_file_api.h" 7 #include "ppapi/thunk/ppb_flash_font_file_api.h"
8 #include "ppapi/thunk/resource_creation_api.h" 8 #include "ppapi/thunk/resource_creation_api.h"
9 #include "ppapi/thunk/thunk.h" 9 #include "ppapi/thunk/thunk.h"
10 10
(...skipping 20 matching lines...) Expand all
31 uint32_t table, 31 uint32_t table,
32 void* output, 32 void* output,
33 uint32_t* output_length) { 33 uint32_t* output_length) {
34 EnterResource<PPB_Flash_FontFile_API> enter(font_file, true); 34 EnterResource<PPB_Flash_FontFile_API> enter(font_file, true);
35 if (enter.failed()) 35 if (enter.failed())
36 return PP_FALSE; 36 return PP_FALSE;
37 return enter.object()->GetFontTable(table, output, output_length); 37 return enter.object()->GetFontTable(table, output, output_length);
38 } 38 }
39 39
40 const PPB_Flash_FontFile g_ppb_flash_fontfile_thunk = { 40 const PPB_Flash_FontFile g_ppb_flash_fontfile_thunk = {
41 &Create, 41 &Create, &IsFlashFontFile, &GetFontTable};
42 &IsFlashFontFile,
43 &GetFontTable
44 };
45 42
46 } // namespace 43 } // namespace
47 44
48 const PPB_Flash_FontFile_0_1* GetPPB_Flash_FontFile_0_1_Thunk() { 45 const PPB_Flash_FontFile_0_1* GetPPB_Flash_FontFile_0_1_Thunk() {
49 return &g_ppb_flash_fontfile_thunk; 46 return &g_ppb_flash_fontfile_thunk;
50 } 47 }
51 48
52 } // namespace thunk 49 } // namespace thunk
53 } // namespace ppapi 50 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698