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

Side by Side Diff: xfa/src/fxfa/src/app/xfa_ffchoicelist.cpp

Issue 1155273002: Replace XFA_HWIDGET with IXFA_Widget* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@ixfa_doc
Patch Set: Rebase. Created 5 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 | « xfa/include/fxfa/fxfa.h ('k') | xfa/src/fxfa/src/app/xfa_ffdocview.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 "../../../foxitlib.h" 7 #include "../../../foxitlib.h"
8 #include "../common/xfa_common.h" 8 #include "../common/xfa_common.h"
9 #include "xfa_fwladapter.h" 9 #include "xfa_fwladapter.h"
10 #include "xfa_ffwidget.h" 10 #include "xfa_ffwidget.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 } 302 }
303 pComboBox->EditModifyStylesEx(dwEditStyles, 0xFFFFFFFF); 303 pComboBox->EditModifyStylesEx(dwEditStyles, 0xFFFFFFFF);
304 } 304 }
305 FX_BOOL CXFA_FFComboBox::OnRButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy) 305 FX_BOOL CXFA_FFComboBox::OnRButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy)
306 { 306 {
307 if (!CXFA_FFField::OnRButtonUp(dwFlags, fx, fy)) { 307 if (!CXFA_FFField::OnRButtonUp(dwFlags, fx, fy)) {
308 return FALSE; 308 return FALSE;
309 } 309 }
310 CFX_PointF pt; 310 CFX_PointF pt;
311 pt.Set(fx, fy); 311 pt.Set(fx, fy);
312 GetDoc()->GetDocProvider()->PopupMenu((XFA_HWIDGET)this, pt, NULL); 312 GetDoc()->GetDocProvider()->PopupMenu(this, pt, NULL);
313 return TRUE; 313 return TRUE;
314 } 314 }
315 FX_BOOL CXFA_FFComboBox::OnKillFocus(CXFA_FFWidget* pNewWidget) 315 FX_BOOL CXFA_FFComboBox::OnKillFocus(CXFA_FFWidget* pNewWidget)
316 { 316 {
317 FX_BOOL flag = ProcessCommittedData(); 317 FX_BOOL flag = ProcessCommittedData();
318 if (!flag) { 318 if (!flag) {
319 UpdateFWLData(); 319 UpdateFWLData();
320 } 320 }
321 CXFA_FFField::OnKillFocus(pNewWidget); 321 CXFA_FFField::OnKillFocus(pNewWidget);
322 return TRUE; 322 return TRUE;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 } 524 }
525 void CXFA_FFComboBox::OnPostOpen(IFWL_Widget *pWidget) 525 void CXFA_FFComboBox::OnPostOpen(IFWL_Widget *pWidget)
526 { 526 {
527 CXFA_EventParam eParam; 527 CXFA_EventParam eParam;
528 eParam.m_eType = XFA_EVENT_PostOpen; 528 eParam.m_eType = XFA_EVENT_PostOpen;
529 eParam.m_pTarget = m_pDataAcc; 529 eParam.m_pTarget = m_pDataAcc;
530 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_PostOpen, &eParam); 530 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_PostOpen, &eParam);
531 } 531 }
532 void CXFA_FFComboBox::OnAddDoRecord(IFWL_Widget *pWidget) 532 void CXFA_FFComboBox::OnAddDoRecord(IFWL_Widget *pWidget)
533 { 533 {
534 GetDoc()->GetDocProvider()->AddDoRecord((XFA_HWIDGET)this); 534 GetDoc()->GetDocProvider()->AddDoRecord(this);
535 } 535 }
536 FX_INT32 CXFA_FFComboBox::OnProcessMessage(CFWL_Message *pMessage) 536 FX_INT32 CXFA_FFComboBox::OnProcessMessage(CFWL_Message *pMessage)
537 { 537 {
538 return m_pOldDelegate->OnProcessMessage(pMessage); 538 return m_pOldDelegate->OnProcessMessage(pMessage);
539 } 539 }
540 FWL_ERR CXFA_FFComboBox::OnProcessEvent(CFWL_Event *pEvent) 540 FWL_ERR CXFA_FFComboBox::OnProcessEvent(CFWL_Event *pEvent)
541 { 541 {
542 CXFA_FFField::OnProcessEvent(pEvent); 542 CXFA_FFField::OnProcessEvent(pEvent);
543 FX_DWORD dwEventID = pEvent->GetClassID(); 543 FX_DWORD dwEventID = pEvent->GetClassID();
544 switch (dwEventID) { 544 switch (dwEventID) {
(...skipping 17 matching lines...) Expand all
562 } 562 }
563 default: { 563 default: {
564 } 564 }
565 } 565 }
566 return m_pOldDelegate->OnProcessEvent(pEvent); 566 return m_pOldDelegate->OnProcessEvent(pEvent);
567 } 567 }
568 FWL_ERR CXFA_FFComboBox::OnDrawWidget(CFX_Graphics *pGraphics, const CFX_Matrix *pMatrix ) 568 FWL_ERR CXFA_FFComboBox::OnDrawWidget(CFX_Graphics *pGraphics, const CFX_Matrix *pMatrix )
569 { 569 {
570 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); 570 return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix);
571 } 571 }
OLDNEW
« no previous file with comments | « xfa/include/fxfa/fxfa.h ('k') | xfa/src/fxfa/src/app/xfa_ffdocview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698