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

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

Issue 1778683003: Ran ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ppapi/thunk/ppb_flash_drm_thunk.cc ('k') | ppapi/thunk/ppb_fullscreen_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // From private/ppb_flash_font_file.idl modified Thu Oct 22 22:02:40 2015. 5 // From private/ppb_flash_font_file.idl modified Fri Mar 4 14:31:30 2016.
6
7 #include <stdint.h>
8 6
9 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/private/ppb_flash_font_file.h" 8 #include "ppapi/c/private/ppb_flash_font_file.h"
9 #include "ppapi/shared_impl/ppb_flash_font_file_shared.h"
11 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
12 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
13 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
14 #include "ppapi/thunk/ppb_flash_font_file_api.h" 13 #include "ppapi/thunk/ppb_flash_font_file_api.h"
15 14
16 namespace ppapi { 15 namespace ppapi {
17 namespace thunk { 16 namespace thunk {
18 17
19 namespace { 18 namespace {
20 19
(...skipping 19 matching lines...) Expand all
40 uint32_t* output_length) { 39 uint32_t* output_length) {
41 VLOG(4) << "PPB_Flash_FontFile::GetFontTable()"; 40 VLOG(4) << "PPB_Flash_FontFile::GetFontTable()";
42 EnterResource<PPB_Flash_FontFile_API> enter(font_file, true); 41 EnterResource<PPB_Flash_FontFile_API> enter(font_file, true);
43 if (enter.failed()) 42 if (enter.failed())
44 return PP_FALSE; 43 return PP_FALSE;
45 return enter.object()->GetFontTable(table, output, output_length); 44 return enter.object()->GetFontTable(table, output, output_length);
46 } 45 }
47 46
48 PP_Bool IsSupportedForWindows(void) { 47 PP_Bool IsSupportedForWindows(void) {
49 VLOG(4) << "PPB_Flash_FontFile::IsSupportedForWindows()"; 48 VLOG(4) << "PPB_Flash_FontFile::IsSupportedForWindows()";
50 return PP_TRUE; 49 return PPB_Flash_FontFile_Shared::IsSupportedForWindows();
51 } 50 }
52 51
53 const PPB_Flash_FontFile_0_1 g_ppb_flash_fontfile_thunk_0_1 = { 52 const PPB_Flash_FontFile_0_1 g_ppb_flash_fontfile_thunk_0_1 = {
54 &Create, &IsFlashFontFile, &GetFontTable}; 53 &Create, &IsFlashFontFile, &GetFontTable};
55 54
56 const PPB_Flash_FontFile_0_2 g_ppb_flash_fontfile_thunk_0_2 = { 55 const PPB_Flash_FontFile_0_2 g_ppb_flash_fontfile_thunk_0_2 = {
57 &Create, &IsFlashFontFile, &GetFontTable, &IsSupportedForWindows}; 56 &Create, &IsFlashFontFile, &GetFontTable, &IsSupportedForWindows};
58 57
59 } // namespace 58 } // namespace
60 59
61 PPAPI_THUNK_EXPORT const PPB_Flash_FontFile_0_1* 60 PPAPI_THUNK_EXPORT const PPB_Flash_FontFile_0_1*
62 GetPPB_Flash_FontFile_0_1_Thunk() { 61 GetPPB_Flash_FontFile_0_1_Thunk() {
63 return &g_ppb_flash_fontfile_thunk_0_1; 62 return &g_ppb_flash_fontfile_thunk_0_1;
64 } 63 }
65 64
66 PPAPI_THUNK_EXPORT const PPB_Flash_FontFile_0_2* 65 PPAPI_THUNK_EXPORT const PPB_Flash_FontFile_0_2*
67 GetPPB_Flash_FontFile_0_2_Thunk() { 66 GetPPB_Flash_FontFile_0_2_Thunk() {
68 return &g_ppb_flash_fontfile_thunk_0_2; 67 return &g_ppb_flash_fontfile_thunk_0_2;
69 } 68 }
70 69
71 } // namespace thunk 70 } // namespace thunk
72 } // namespace ppapi 71 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_flash_drm_thunk.cc ('k') | ppapi/thunk/ppb_fullscreen_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698