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

Side by Side Diff: xfa/fwl/cfwl_widgetmgr.cpp

Issue 2578473003: Remove more unused widget styles (Closed)
Patch Set: Rebase to master Created 4 years 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/fwl/cfwl_widget.cpp ('k') | xfa/fwl/fwl_widgetdef.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/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
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
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() {}
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_widget.cpp ('k') | xfa/fwl/fwl_widgetdef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698