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

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

Issue 2082573007: Update GetClassID to GetElementType (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@remove_script_obj_hash
Patch Set: 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
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/include/xfa_ffpageview.h" 7 #include "xfa/fxfa/include/xfa_ffpageview.h"
8 8
9 #include "xfa/fde/fde_render.h" 9 #include "xfa/fde/fde_render.h"
10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 pageMatrix = m; 69 pageMatrix = m;
70 } 70 }
71 71
72 bool PageWidgetFilter(CXFA_FFWidget* pWidget, 72 bool PageWidgetFilter(CXFA_FFWidget* pWidget,
73 uint32_t dwFilter, 73 uint32_t dwFilter,
74 FX_BOOL bTraversal, 74 FX_BOOL bTraversal,
75 FX_BOOL bIgnorerelevant) { 75 FX_BOOL bIgnorerelevant) {
76 CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc(); 76 CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc();
77 77
78 if (!!(dwFilter & XFA_WidgetStatus_Focused) && 78 if (!!(dwFilter & XFA_WidgetStatus_Focused) &&
79 pWidgetAcc->GetClassID() != XFA_Element::Field) { 79 pWidgetAcc->GetElementType() != XFA_Element::Field) {
80 return false; 80 return false;
81 } 81 }
82 82
83 uint32_t dwStatus = pWidget->GetStatus(); 83 uint32_t dwStatus = pWidget->GetStatus();
84 if (bTraversal && (dwStatus & XFA_WidgetStatus_Disabled)) 84 if (bTraversal && (dwStatus & XFA_WidgetStatus_Disabled))
85 return false; 85 return false;
86 if (bIgnorerelevant) 86 if (bIgnorerelevant)
87 return !!(dwStatus & XFA_WidgetStatus_Visible); 87 return !!(dwStatus & XFA_WidgetStatus_Visible);
88 88
89 dwFilter &= (XFA_WidgetStatus_Visible | XFA_WidgetStatus_Viewable | 89 dwFilter &= (XFA_WidgetStatus_Visible | XFA_WidgetStatus_Viewable |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 pSearchItem = sIterator->MoveToNext(); 366 pSearchItem = sIterator->MoveToNext();
367 continue; 367 continue;
368 } 368 }
369 if (pContainerItem && (pSearchItem->GetParent() != pContainerItem)) { 369 if (pContainerItem && (pSearchItem->GetParent() != pContainerItem)) {
370 bCurrentItem = TRUE; 370 bCurrentItem = TRUE;
371 break; 371 break;
372 } 372 }
373 CXFA_TabParam* pParam = new CXFA_TabParam; 373 CXFA_TabParam* pParam = new CXFA_TabParam;
374 pParam->m_pWidget = hWidget; 374 pParam->m_pWidget = hWidget;
375 tabParams.Add(pParam); 375 tabParams.Add(pParam);
376 if (XFA_IsLayoutElement(pSearchItem->GetFormNode()->GetClassID(), TRUE)) { 376 if (XFA_IsLayoutElement(pSearchItem->GetFormNode()->GetElementType(),
377 TRUE)) {
377 OrderContainer(sIterator, pSearchItem, pParam, bCurrentItem, 378 OrderContainer(sIterator, pSearchItem, pParam, bCurrentItem,
378 bContentArea, bMarsterPage); 379 bContentArea, bMarsterPage);
379 } 380 }
380 } 381 }
381 if (bCurrentItem) { 382 if (bCurrentItem) {
382 pSearchItem = sIterator->GetCurrent(); 383 pSearchItem = sIterator->GetCurrent();
383 bCurrentItem = FALSE; 384 bCurrentItem = FALSE;
384 } else { 385 } else {
385 pSearchItem = sIterator->MoveToNext(); 386 pSearchItem = sIterator->MoveToNext();
386 } 387 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 pWidget->LoadWidget(); 430 pWidget->LoadWidget();
430 } 431 }
431 return pWidget; 432 return pWidget;
432 } 433 }
433 return NULL; 434 return NULL;
434 } 435 }
435 436
436 CXFA_TabParam::CXFA_TabParam() : m_pWidget(NULL) {} 437 CXFA_TabParam::CXFA_TabParam() : m_pWidget(NULL) {}
437 438
438 CXFA_TabParam::~CXFA_TabParam() {} 439 CXFA_TabParam::~CXFA_TabParam() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698