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

Side by Side Diff: pdf/pdfium/pdfium_assert_matching_enums.cc

Issue 1533413002: Switch to standard integer types in pdf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 | « pdf/pdfium/pdfium_api_string_buffer_adapter.cc ('k') | pdf/pdfium/pdfium_engine.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/basictypes.h"
6 #include "ppapi/c/pp_input_event.h" 5 #include "ppapi/c/pp_input_event.h"
7 #include "ppapi/c/private/ppb_pdf.h" 6 #include "ppapi/c/private/ppb_pdf.h"
8 #include "ppapi/c/private/ppp_pdf.h" 7 #include "ppapi/c/private/ppp_pdf.h"
9 #include "third_party/pdfium/public/fpdf_fwlevent.h" 8 #include "third_party/pdfium/public/fpdf_fwlevent.h"
10 #include "third_party/pdfium/public/fpdf_sysfontinfo.h" 9 #include "third_party/pdfium/public/fpdf_sysfontinfo.h"
11 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
12 11
13 #define STATIC_ASSERT_MATCH(np_name, pdfium_name) \ 12 #define STATIC_ASSERT_MATCH(np_name, pdfium_name) \
14 static_assert(int(np_name) == int(pdfium_name), \ 13 static_assert(int(np_name) == int(pdfium_name), \
15 "mismatching enums: " #np_name) 14 "mismatching enums: " #np_name)
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_SHIFTJIS, FXFONT_SHIFTJIS_CHARSET); 204 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_SHIFTJIS, FXFONT_SHIFTJIS_CHARSET);
206 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_HANGUL, FXFONT_HANGEUL_CHARSET); 205 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_HANGUL, FXFONT_HANGEUL_CHARSET);
207 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_GB2312, FXFONT_GB2312_CHARSET); 206 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_GB2312, FXFONT_GB2312_CHARSET);
208 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_CHINESEBIG5, 207 STATIC_ASSERT_MATCH(PP_PRIVATEFONTCHARSET_CHINESEBIG5,
209 FXFONT_CHINESEBIG5_CHARSET); 208 FXFONT_CHINESEBIG5_CHARSET);
210 209
211 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_NONE, DuplexUndefined); 210 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_NONE, DuplexUndefined);
212 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_SIMPLEX, Simplex); 211 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_SIMPLEX, Simplex);
213 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_SHORT_EDGE, DuplexFlipShortEdge); 212 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_SHORT_EDGE, DuplexFlipShortEdge);
214 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_LONG_EDGE, DuplexFlipLongEdge); 213 STATIC_ASSERT_MATCH(PP_PRIVATEDUPLEXMODE_LONG_EDGE, DuplexFlipLongEdge);
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_api_string_buffer_adapter.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698