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

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

Issue 1952693003: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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_ffcheckbutton.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.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 "xfa/fxfa/app/xfa_ffcheckbutton.h" 7 #include "xfa/fxfa/app/xfa_ffcheckbutton.h"
8 8
9 #include "xfa/fwl/core/cfwl_message.h" 9 #include "xfa/fwl/core/cfwl_message.h"
10 #include "xfa/fwl/core/fwl_noteimp.h" 10 #include "xfa/fwl/core/fwl_noteimp.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 FX_BOOL CXFA_FFCheckButton::UpdateFWLData() { 289 FX_BOOL CXFA_FFCheckButton::UpdateFWLData() {
290 if (!m_pNormalWidget) { 290 if (!m_pNormalWidget) {
291 return FALSE; 291 return FALSE;
292 } 292 }
293 XFA_CHECKSTATE eState = m_pDataAcc->GetCheckState(); 293 XFA_CHECKSTATE eState = m_pDataAcc->GetCheckState();
294 SetFWLCheckState(eState); 294 SetFWLCheckState(eState);
295 m_pNormalWidget->Update(); 295 m_pNormalWidget->Update();
296 return TRUE; 296 return TRUE;
297 } 297 }
298 int32_t CXFA_FFCheckButton::OnProcessMessage(CFWL_Message* pMessage) { 298
299 return m_pOldDelegate->OnProcessMessage(pMessage); 299 void CXFA_FFCheckButton::OnProcessMessage(CFWL_Message* pMessage) {
300 m_pOldDelegate->OnProcessMessage(pMessage);
300 } 301 }
301 302
302 FWL_ERR CXFA_FFCheckButton::OnProcessEvent(CFWL_Event* pEvent) { 303 void CXFA_FFCheckButton::OnProcessEvent(CFWL_Event* pEvent) {
303 CXFA_FFField::OnProcessEvent(pEvent); 304 CXFA_FFField::OnProcessEvent(pEvent);
304 switch (pEvent->GetClassID()) { 305 switch (pEvent->GetClassID()) {
305 case CFWL_EventType::CheckStateChanged: { 306 case CFWL_EventType::CheckStateChanged: {
306 CXFA_EventParam eParam; 307 CXFA_EventParam eParam;
307 eParam.m_eType = XFA_EVENT_Change; 308 eParam.m_eType = XFA_EVENT_Change;
308 m_pDataAcc->GetValue(eParam.m_wsNewText, XFA_VALUEPICTURE_Raw); 309 m_pDataAcc->GetValue(eParam.m_wsNewText, XFA_VALUEPICTURE_Raw);
309 CXFA_WidgetAcc* pFFExclGroup = m_pDataAcc->GetExclGroup(); 310 CXFA_WidgetAcc* pFFExclGroup = m_pDataAcc->GetExclGroup();
310 if (ProcessCommittedData()) { 311 if (ProcessCommittedData()) {
311 eParam.m_pTarget = pFFExclGroup; 312 eParam.m_pTarget = pFFExclGroup;
312 if (pFFExclGroup) { 313 if (pFFExclGroup) {
(...skipping 10 matching lines...) Expand all
323 eParam.m_pTarget = pFFExclGroup; 324 eParam.m_pTarget = pFFExclGroup;
324 pFFExclGroup->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); 325 pFFExclGroup->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam);
325 } 326 }
326 eParam.m_pTarget = m_pDataAcc; 327 eParam.m_pTarget = m_pDataAcc;
327 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); 328 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam);
328 break; 329 break;
329 } 330 }
330 default: 331 default:
331 break; 332 break;
332 } 333 }
333 return m_pOldDelegate->OnProcessEvent(pEvent); 334 m_pOldDelegate->OnProcessEvent(pEvent);
334 } 335 }
335 336
336 FWL_ERR CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics, 337 void CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics,
337 const CFX_Matrix* pMatrix) { 338 const CFX_Matrix* pMatrix) {
338 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); 339 m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix);
339 } 340 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffcheckbutton.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698