OLD | NEW |
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/cfwl_widgetmgr.h" | 7 #include "xfa/fwl/cfwl_widgetmgr.h" |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 | 323 |
324 CFWL_Widget* CFWL_WidgetMgr::NextTab(CFWL_Widget* parent, | 324 CFWL_Widget* CFWL_WidgetMgr::NextTab(CFWL_Widget* parent, |
325 CFWL_Widget* focus, | 325 CFWL_Widget* focus, |
326 bool& bFind) { | 326 bool& bFind) { |
327 CFWL_WidgetMgr* pMgr = parent->GetOwnerApp()->GetWidgetMgr(); | 327 CFWL_WidgetMgr* pMgr = parent->GetOwnerApp()->GetWidgetMgr(); |
328 CFWL_Widget* child = pMgr->GetFirstChildWidget(parent); | 328 CFWL_Widget* child = pMgr->GetFirstChildWidget(parent); |
329 while (child) { | 329 while (child) { |
330 if (focus == child) | 330 if (focus == child) |
331 bFind = true; | 331 bFind = true; |
332 | 332 |
333 if ((child->GetStyles() & FWL_WGTSTYLE_TabStop) && | |
334 (!focus || (focus != child && bFind))) { | |
335 return child; | |
336 } | |
337 CFWL_Widget* bRet = NextTab(child, focus, bFind); | 333 CFWL_Widget* bRet = NextTab(child, focus, bFind); |
338 if (bRet) | 334 if (bRet) |
339 return bRet; | 335 return bRet; |
340 | 336 |
341 child = pMgr->GetNextSiblingWidget(child); | 337 child = pMgr->GetNextSiblingWidget(child); |
342 } | 338 } |
343 return nullptr; | 339 return nullptr; |
344 } | 340 } |
345 | 341 |
346 int32_t CFWL_WidgetMgr::CountRadioButtonGroup(CFWL_Widget* pFirst) const { | 342 int32_t CFWL_WidgetMgr::CountRadioButtonGroup(CFWL_Widget* pFirst) const { |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 pWidget(widget), | 715 pWidget(widget), |
720 iRedrawCounter(0) | 716 iRedrawCounter(0) |
721 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 717 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
722 , | 718 , |
723 bOutsideChanged(false) | 719 bOutsideChanged(false) |
724 #endif | 720 #endif |
725 { | 721 { |
726 } | 722 } |
727 | 723 |
728 CFWL_WidgetMgr::Item::~Item() {} | 724 CFWL_WidgetMgr::Item::~Item() {} |
OLD | NEW |