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

Side by Side Diff: core/src/fxge/win32/fx_win32_print.cpp

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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 | « core/src/fxge/win32/fx_win32_gdipext.cpp ('k') | core/src/fxge/win32/win32_int.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../../include/fxge/fx_ge.h" 7 #include "core/include/fxge/fx_ge.h"
8
8 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ 9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
10
9 #include <windows.h> 11 #include <windows.h>
10 #include "../../../include/fxge/fx_ge_win32.h" 12
13 #include "../dib/dib_int.h"
14 #include "../ge/text_int.h"
15 #include "core/include/fxge/fx_freetype.h"
16 #include "core/include/fxge/fx_ge_win32.h"
11 #include "win32_int.h" 17 #include "win32_int.h"
12 #include "../../../include/fxge/fx_freetype.h" 18
13 #include "../ge/text_int.h"
14 #include "../dib/dib_int.h"
15 #define SIZETHRESHOLD 1000 19 #define SIZETHRESHOLD 1000
16 #define OUTPUTPSLEN 4096 20 #define OUTPUTPSLEN 4096
17 CGdiPrinterDriver::CGdiPrinterDriver(HDC hDC) 21 CGdiPrinterDriver::CGdiPrinterDriver(HDC hDC)
18 : CGdiDeviceDriver(hDC, FXDC_PRINTER) { 22 : CGdiDeviceDriver(hDC, FXDC_PRINTER) {
19 m_HorzSize = ::GetDeviceCaps(m_hDC, HORZSIZE); 23 m_HorzSize = ::GetDeviceCaps(m_hDC, HORZSIZE);
20 m_VertSize = ::GetDeviceCaps(m_hDC, VERTSIZE); 24 m_VertSize = ::GetDeviceCaps(m_hDC, VERTSIZE);
21 m_bSupportROP = TRUE; 25 m_bSupportROP = TRUE;
22 } 26 }
23 int CGdiPrinterDriver::GetDeviceCaps(int caps_id) { 27 int CGdiPrinterDriver::GetDeviceCaps(int caps_id) {
24 if (caps_id == FXDC_HORZ_SIZE) { 28 if (caps_id == FXDC_HORZ_SIZE) {
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 CFX_FontCache* pCache, 466 CFX_FontCache* pCache,
463 const CFX_AffineMatrix* pObject2Device, 467 const CFX_AffineMatrix* pObject2Device,
464 FX_FLOAT font_size, 468 FX_FLOAT font_size,
465 FX_DWORD color, 469 FX_DWORD color,
466 int alpha_flag, 470 int alpha_flag,
467 void* pIccTransform) { 471 void* pIccTransform) {
468 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, 472 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device,
469 font_size, color, alpha_flag, pIccTransform); 473 font_size, color, alpha_flag, pIccTransform);
470 } 474 }
471 #endif 475 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/win32/fx_win32_gdipext.cpp ('k') | core/src/fxge/win32/win32_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698