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

Side by Side Diff: xfa/fwl/core/fwl_widgetmgrimp.cpp

Issue 1937453002: Replace CFX_PtryArray with typesafe CFX_ArrayTemplate, Part 7 (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
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/fwl/core/fwl_widgetmgrimp.h" 7 #include "xfa/fwl/core/fwl_widgetmgrimp.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_appimp.h" 10 #include "xfa/fwl/core/fwl_appimp.h"
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 return pNext; 557 return pNext;
558 } 558 }
559 } 559 }
560 pNext = GetWidget(pRadioButton, FWL_WGTRELATION_FirstSibling); 560 pNext = GetWidget(pRadioButton, FWL_WGTRELATION_FirstSibling);
561 if (pNext && (pNext->GetStyles() == FWL_WGTSTYLE_Group) && 561 if (pNext && (pNext->GetStyles() == FWL_WGTSTYLE_Group) &&
562 pNext->GetClassID() == 3811304691) { 562 pNext->GetClassID() == 3811304691) {
563 return pNext; 563 return pNext;
564 } 564 }
565 return GetSiblingRadioButton(pNext, TRUE); 565 return GetSiblingRadioButton(pNext, TRUE);
566 } 566 }
567 void CFWL_WidgetMgr::GetSameGroupRadioButton(IFWL_Widget* pRadioButton, 567 void CFWL_WidgetMgr::GetSameGroupRadioButton(
568 CFX_PtrArray& group) { 568 IFWL_Widget* pRadioButton,
569 CFX_ArrayTemplate<IFWL_Widget*>& group) {
569 IFWL_Widget* pFirst = GetWidget(pRadioButton, FWL_WGTRELATION_FirstSibling); 570 IFWL_Widget* pFirst = GetWidget(pRadioButton, FWL_WGTRELATION_FirstSibling);
570 if (!pFirst) { 571 if (!pFirst) {
571 pFirst = pRadioButton; 572 pFirst = pRadioButton;
572 } 573 }
573 int32_t iGroup = CountRadioButtonGroup(pFirst); 574 int32_t iGroup = CountRadioButtonGroup(pFirst);
574 if (iGroup < 2) { 575 if (iGroup < 2) {
575 if (pFirst->GetClassID() == 3811304691) { 576 if (pFirst->GetClassID() == 3811304691) {
576 group.Add(pFirst); 577 group.Add(pFirst);
577 } 578 }
578 IFWL_Widget* pNext = pFirst; 579 IFWL_Widget* pNext = pFirst;
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 CFX_RectF temp(m_pWidgetMgr->m_rtScreen); 1000 CFX_RectF temp(m_pWidgetMgr->m_rtScreen);
1000 temp.Deflate(50, 50); 1001 temp.Deflate(50, 50);
1001 if (!temp.Contains(r)) { 1002 if (!temp.Contains(r)) {
1002 return FALSE; 1003 return FALSE;
1003 } 1004 }
1004 pItem->bOutsideChanged = FALSE; 1005 pItem->bOutsideChanged = FALSE;
1005 } 1006 }
1006 #endif 1007 #endif
1007 return pItem->iRedrawCounter == 0; 1008 return pItem->iRedrawCounter == 0;
1008 } 1009 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698