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

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

Issue 2501743002: Cleaning methods and visibility in cfwl_* files. (Closed)
Patch Set: review feedback Created 4 years, 1 month 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/core/ifwl_widget.h ('k') | xfa/fxfa/app/xfa_ffapp.cpp » ('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/core/ifwl_widget.h" 7 #include "xfa/fwl/core/ifwl_widget.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 void IFWL_Widget::SetGrab(bool bSet) { 410 void IFWL_Widget::SetGrab(bool bSet) {
411 const IFWL_App* pApp = GetOwnerApp(); 411 const IFWL_App* pApp = GetOwnerApp();
412 if (!pApp) 412 if (!pApp)
413 return; 413 return;
414 CFWL_NoteDriver* pDriver = 414 CFWL_NoteDriver* pDriver =
415 static_cast<CFWL_NoteDriver*>(pApp->GetNoteDriver()); 415 static_cast<CFWL_NoteDriver*>(pApp->GetNoteDriver());
416 pDriver->SetGrab(this, bSet); 416 pDriver->SetGrab(this, bSet);
417 } 417 }
418 418
419 bool IFWL_Widget::GetPopupPos(FX_FLOAT fMinHeight, 419 void IFWL_Widget::GetPopupPos(FX_FLOAT fMinHeight,
420 FX_FLOAT fMaxHeight, 420 FX_FLOAT fMaxHeight,
421 const CFX_RectF& rtAnchor, 421 const CFX_RectF& rtAnchor,
422 CFX_RectF& rtPopup) { 422 CFX_RectF& rtPopup) {
423 if (GetClassID() == FWL_Type::ComboBox) { 423 if (GetClassID() == FWL_Type::ComboBox) {
424 if (m_pWidgetMgr->IsFormDisabled()) { 424 if (m_pWidgetMgr->IsFormDisabled()) {
425 return m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, 425 m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, rtAnchor,
426 rtAnchor, rtPopup); 426 rtPopup);
427 return;
427 } 428 }
428 return GetPopupPosComboBox(fMinHeight, fMaxHeight, rtAnchor, rtPopup); 429 GetPopupPosComboBox(fMinHeight, fMaxHeight, rtAnchor, rtPopup);
430 return;
429 } 431 }
430 if (GetClassID() == FWL_Type::DateTimePicker && 432 if (GetClassID() == FWL_Type::DateTimePicker &&
431 m_pWidgetMgr->IsFormDisabled()) { 433 m_pWidgetMgr->IsFormDisabled()) {
432 return m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, 434 m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, rtAnchor,
433 rtAnchor, rtPopup); 435 rtPopup);
436 return;
434 } 437 }
435 return GetPopupPosGeneral(fMinHeight, fMaxHeight, rtAnchor, rtPopup); 438 GetPopupPosGeneral(fMinHeight, fMaxHeight, rtAnchor, rtPopup);
436 } 439 }
437 440
438 bool IFWL_Widget::GetPopupPosMenu(FX_FLOAT fMinHeight, 441 bool IFWL_Widget::GetPopupPosMenu(FX_FLOAT fMinHeight,
439 FX_FLOAT fMaxHeight, 442 FX_FLOAT fMaxHeight,
440 const CFX_RectF& rtAnchor, 443 const CFX_RectF& rtAnchor,
441 CFX_RectF& rtPopup) { 444 CFX_RectF& rtPopup) {
442 FX_FLOAT fx = 0; 445 FX_FLOAT fx = 0;
443 FX_FLOAT fy = 0; 446 FX_FLOAT fy = 0;
444 447
445 if (GetStylesEx() & FWL_STYLEEXT_MNU_Vert) { 448 if (GetStylesEx() & FWL_STYLEEXT_MNU_Vert) {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 } 737 }
735 default: 738 default:
736 break; 739 break;
737 } 740 }
738 } 741 }
739 742
740 void IFWL_Widget::OnProcessEvent(CFWL_Event* pEvent) {} 743 void IFWL_Widget::OnProcessEvent(CFWL_Event* pEvent) {}
741 744
742 void IFWL_Widget::OnDrawWidget(CFX_Graphics* pGraphics, 745 void IFWL_Widget::OnDrawWidget(CFX_Graphics* pGraphics,
743 const CFX_Matrix* pMatrix) {} 746 const CFX_Matrix* pMatrix) {}
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_widget.h ('k') | xfa/fxfa/app/xfa_ffapp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698