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

Side by Side Diff: experimental/PdfViewer/SkPdfFont.h

Issue 23361009: pdfviewer: code cleanup - add licence on files, make replace __DEFINE__foo with foo_DEFINED to matc… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « experimental/PdfViewer/SkPdfConfig.h ('k') | experimental/PdfViewer/SkPdfFont.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __DEFINED__SkPdfFont 1 /*
2 #define __DEFINED__SkPdfFont 2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkPdfFont_DEFINED
9 #define SkPdfFont_DEFINED
3 10
4 #include "SkPdfHeaders_autogen.h" 11 #include "SkPdfHeaders_autogen.h"
5 #include "SkPdfMapper_autogen.h" 12 #include "SkPdfMapper_autogen.h"
6 13
7 #include "SkTypeface.h" 14 #include "SkTypeface.h"
8 #include "SkUtils.h" 15 #include "SkUtils.h"
9 #include "SkPdfGraphicsState.h" 16 #include "SkPdfGraphicsState.h"
10 #include "SkPdfUtils.h" 17 #include "SkPdfUtils.h"
11 #include "SkTDict.h" 18 #include "SkTDict.h"
12 19
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(pdfCo ntext->fGraphicsState.fCurFontSize * fChars[ch - fFirstChar].fWidth), 440 pdfContext->fGraphicsState.fMatrixTm.preTranslate(SkDoubleToScalar(pdfCo ntext->fGraphicsState.fCurFontSize * fChars[ch - fFirstChar].fWidth),
434 SkDoubleToScalar(0.0)); 441 SkDoubleToScalar(0.0));
435 return fChars[ch - fFirstChar].fWidth; 442 return fChars[ch - fFirstChar].fWidth;
436 } 443 }
437 444
438 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { 445 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
439 446
440 } 447 }
441 }; 448 };
442 449
443 #endif // __DEFINED__SkPdfFont 450 #endif // SkPdfFont_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfConfig.h ('k') | experimental/PdfViewer/SkPdfFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698