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

Side by Side Diff: xfa/fxfa/app/xfa_ffimageedit.cpp

Issue 1830323006: Remove FX_DWORD from XFA. (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 | « xfa/fxfa/app/xfa_ffimage.cpp ('k') | xfa/fxfa/app/xfa_ffnotify.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 "xfa/fxfa/app/xfa_ffimageedit.h" 7 #include "xfa/fxfa/app/xfa_ffimageedit.h"
8 8
9 #include "xfa/fwl/core/cfwl_message.h" 9 #include "xfa/fwl/core/cfwl_message.h"
10 #include "xfa/fwl/core/ifwl_app.h" 10 #include "xfa/fwl/core/ifwl_app.h"
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 UpdateFWLData(); 40 UpdateFWLData();
41 return TRUE; 41 return TRUE;
42 } 42 }
43 void CXFA_FFImageEdit::UnloadWidget() { 43 void CXFA_FFImageEdit::UnloadWidget() {
44 m_pDataAcc->SetImageEditImage(NULL); 44 m_pDataAcc->SetImageEditImage(NULL);
45 CXFA_FFField::UnloadWidget(); 45 CXFA_FFField::UnloadWidget();
46 } 46 }
47 void CXFA_FFImageEdit::RenderWidget(CFX_Graphics* pGS, 47 void CXFA_FFImageEdit::RenderWidget(CFX_Graphics* pGS,
48 CFX_Matrix* pMatrix, 48 CFX_Matrix* pMatrix,
49 FX_DWORD dwStatus, 49 uint32_t dwStatus,
50 int32_t iRotate) { 50 int32_t iRotate) {
51 if (!IsMatchVisibleStatus(dwStatus)) { 51 if (!IsMatchVisibleStatus(dwStatus)) {
52 return; 52 return;
53 } 53 }
54 CFX_Matrix mtRotate; 54 CFX_Matrix mtRotate;
55 GetRotateMatrix(mtRotate); 55 GetRotateMatrix(mtRotate);
56 if (pMatrix) { 56 if (pMatrix) {
57 mtRotate.Concat(*pMatrix); 57 mtRotate.Concat(*pMatrix);
58 } 58 }
59 CXFA_FFWidget::RenderWidget(pGS, &mtRotate, dwStatus); 59 CXFA_FFWidget::RenderWidget(pGS, &mtRotate, dwStatus);
(...skipping 15 matching lines...) Expand all
75 iAspect = imageObj.GetAspect(); 75 iAspect = imageObj.GetAspect();
76 } 76 }
77 } 77 }
78 int32_t iImageXDpi = 0; 78 int32_t iImageXDpi = 0;
79 int32_t iImageYDpi = 0; 79 int32_t iImageYDpi = 0;
80 m_pDataAcc->GetImageEditDpi(iImageXDpi, iImageYDpi); 80 m_pDataAcc->GetImageEditDpi(iImageXDpi, iImageYDpi);
81 XFA_DrawImage(pGS, rtImage, &mtRotate, pDIBitmap, iAspect, iImageXDpi, 81 XFA_DrawImage(pGS, rtImage, &mtRotate, pDIBitmap, iAspect, iImageXDpi,
82 iImageYDpi, iHorzAlign, iVertAlign); 82 iImageYDpi, iHorzAlign, iVertAlign);
83 } 83 }
84 } 84 }
85 FX_BOOL CXFA_FFImageEdit::OnLButtonDown(FX_DWORD dwFlags, 85 FX_BOOL CXFA_FFImageEdit::OnLButtonDown(uint32_t dwFlags,
86 FX_FLOAT fx, 86 FX_FLOAT fx,
87 FX_FLOAT fy) { 87 FX_FLOAT fy) {
88 if (m_pDataAcc->GetAccess() != XFA_ATTRIBUTEENUM_Open) { 88 if (m_pDataAcc->GetAccess() != XFA_ATTRIBUTEENUM_Open) {
89 return FALSE; 89 return FALSE;
90 } 90 }
91 if (!PtInActiveRect(fx, fy)) { 91 if (!PtInActiveRect(fx, fy)) {
92 return FALSE; 92 return FALSE;
93 } 93 }
94 SetButtonDown(TRUE); 94 SetButtonDown(TRUE);
95 CFWL_MsgMouse ms; 95 CFWL_MsgMouse ms;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return m_pOldDelegate->OnProcessMessage(pMessage); 176 return m_pOldDelegate->OnProcessMessage(pMessage);
177 } 177 }
178 FWL_ERR CXFA_FFImageEdit::OnProcessEvent(CFWL_Event* pEvent) { 178 FWL_ERR CXFA_FFImageEdit::OnProcessEvent(CFWL_Event* pEvent) {
179 CXFA_FFField::OnProcessEvent(pEvent); 179 CXFA_FFField::OnProcessEvent(pEvent);
180 return m_pOldDelegate->OnProcessEvent(pEvent); 180 return m_pOldDelegate->OnProcessEvent(pEvent);
181 } 181 }
182 FWL_ERR CXFA_FFImageEdit::OnDrawWidget(CFX_Graphics* pGraphics, 182 FWL_ERR CXFA_FFImageEdit::OnDrawWidget(CFX_Graphics* pGraphics,
183 const CFX_Matrix* pMatrix) { 183 const CFX_Matrix* pMatrix) {
184 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); 184 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix);
185 } 185 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffimage.cpp ('k') | xfa/fxfa/app/xfa_ffnotify.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698