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

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

Issue 2084603003: Change func(void) to func() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: style fix Created 4 years, 6 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/fxcrt/include/fx_system.h ('k') | fpdfsdk/javascript/Field.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 "core/fxge/include/fx_ge.h" 7 #include "core/fxge/include/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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, 1267 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid,
1268 void** ppvObject) override { 1268 void** ppvObject) override {
1269 if (iid == __uuidof(IUnknown) || iid == __uuidof(IStream) || 1269 if (iid == __uuidof(IUnknown) || iid == __uuidof(IStream) ||
1270 iid == __uuidof(ISequentialStream)) { 1270 iid == __uuidof(ISequentialStream)) {
1271 *ppvObject = static_cast<IStream*>(this); 1271 *ppvObject = static_cast<IStream*>(this);
1272 AddRef(); 1272 AddRef();
1273 return S_OK; 1273 return S_OK;
1274 } 1274 }
1275 return E_NOINTERFACE; 1275 return E_NOINTERFACE;
1276 } 1276 }
1277 ULONG STDMETHODCALLTYPE AddRef(void) override { 1277 ULONG STDMETHODCALLTYPE AddRef() override {
1278 return (ULONG)InterlockedIncrement(&m_RefCount); 1278 return (ULONG)InterlockedIncrement(&m_RefCount);
1279 } 1279 }
1280 ULONG STDMETHODCALLTYPE Release(void) override { 1280 ULONG STDMETHODCALLTYPE Release() override {
1281 ULONG res = (ULONG)InterlockedDecrement(&m_RefCount); 1281 ULONG res = (ULONG)InterlockedDecrement(&m_RefCount);
1282 if (res == 0) { 1282 if (res == 0) {
1283 delete this; 1283 delete this;
1284 } 1284 }
1285 return res; 1285 return res;
1286 } 1286 }
1287 1287
1288 // ISequentialStream 1288 // ISequentialStream
1289 HRESULT STDMETHODCALLTYPE Read(void* Output, 1289 HRESULT STDMETHODCALLTYPE Read(void* Output,
1290 ULONG cb, 1290 ULONG cb,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER) override { 1326 HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER) override {
1327 return E_NOTIMPL; 1327 return E_NOTIMPL;
1328 } 1328 }
1329 HRESULT STDMETHODCALLTYPE CopyTo(IStream*, 1329 HRESULT STDMETHODCALLTYPE CopyTo(IStream*,
1330 ULARGE_INTEGER, 1330 ULARGE_INTEGER,
1331 ULARGE_INTEGER*, 1331 ULARGE_INTEGER*,
1332 ULARGE_INTEGER*) override { 1332 ULARGE_INTEGER*) override {
1333 return E_NOTIMPL; 1333 return E_NOTIMPL;
1334 } 1334 }
1335 HRESULT STDMETHODCALLTYPE Commit(DWORD) override { return E_NOTIMPL; } 1335 HRESULT STDMETHODCALLTYPE Commit(DWORD) override { return E_NOTIMPL; }
1336 HRESULT STDMETHODCALLTYPE Revert(void) override { return E_NOTIMPL; } 1336 HRESULT STDMETHODCALLTYPE Revert() override { return E_NOTIMPL; }
1337 HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER, 1337 HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER,
1338 ULARGE_INTEGER, 1338 ULARGE_INTEGER,
1339 DWORD) override { 1339 DWORD) override {
1340 return E_NOTIMPL; 1340 return E_NOTIMPL;
1341 } 1341 }
1342 HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER, 1342 HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER,
1343 ULARGE_INTEGER, 1343 ULARGE_INTEGER,
1344 DWORD) override { 1344 DWORD) override {
1345 return E_NOTIMPL; 1345 return E_NOTIMPL;
1346 } 1346 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 dest_pitch); 1515 dest_pitch);
1516 } 1516 }
1517 } 1517 }
1518 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf( 1518 CFX_DIBitmap* pDIBitmap = _FX_WindowsDIB_LoadFromBuf(
1519 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32); 1519 pInfo->pbmi, pData, pInfo->pbmi->bmiHeader.biBitCount == 32);
1520 FX_Free(pData); 1520 FX_Free(pData);
1521 FreeDIBitmap(pInfo); 1521 FreeDIBitmap(pInfo);
1522 return pDIBitmap; 1522 return pDIBitmap;
1523 } 1523 }
1524 #endif 1524 #endif
OLDNEW
« no previous file with comments | « core/fxcrt/include/fx_system.h ('k') | fpdfsdk/javascript/Field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698