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

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

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.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 | « core/src/fxge/skia/fx_skia_blitter_new.cpp ('k') | fpdfsdk/src/fpdf_transformpage.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 // 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 "core/include/fxge/fx_ge.h" 7 #include "core/include/fxge/fx_ge.h"
8 8
9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ 9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_
10 #include <windows.h> 10 #include <windows.h>
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, 1340 virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER,
1341 ULARGE_INTEGER, 1341 ULARGE_INTEGER,
1342 DWORD) { 1342 DWORD) {
1343 return E_NOTIMPL; 1343 return E_NOTIMPL;
1344 } 1344 }
1345 virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER, 1345 virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER,
1346 ULARGE_INTEGER, 1346 ULARGE_INTEGER,
1347 DWORD) { 1347 DWORD) {
1348 return E_NOTIMPL; 1348 return E_NOTIMPL;
1349 } 1349 }
1350 virtual HRESULT STDMETHODCALLTYPE Clone(IStream**) { return E_NOTIMPL; } 1350 virtual HRESULT STDMETHODCALLTYPE Clone(IStream** stream) {
1351 return E_NOTIMPL;
1352 }
1351 virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove, 1353 virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER liDistanceToMove,
1352 DWORD dwOrigin, 1354 DWORD dwOrigin,
1353 ULARGE_INTEGER* lpNewFilePointer) { 1355 ULARGE_INTEGER* lpNewFilePointer) {
1354 long start = 0; 1356 long start = 0;
1355 long new_read_position; 1357 long new_read_position;
1356 switch (dwOrigin) { 1358 switch (dwOrigin) {
1357 case STREAM_SEEK_SET: 1359 case STREAM_SEEK_SET:
1358 start = 0; 1360 start = 0;
1359 break; 1361 break;
1360 case STREAM_SEEK_CUR: 1362 case STREAM_SEEK_CUR:
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 dest_pitch); 1508 dest_pitch);
1507 } 1509 }
1508 } 1510 }
1509 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf( 1511 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf(
1510 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32); 1512 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32);
1511 FX_Free(pData); 1513 FX_Free(pData);
1512 FreeDIBitmap(pInfo); 1514 FreeDIBitmap(pInfo);
1513 return pDIBitmap; 1515 return pDIBitmap;
1514 } 1516 }
1515 #endif 1517 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/skia/fx_skia_blitter_new.cpp ('k') | fpdfsdk/src/fpdf_transformpage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698