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

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

Issue 1886703005: Remove unused FWL methods (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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_formimp.h" 7 #include "xfa/fwl/core/fwl_formimp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 param.m_rtPart.Deflate(m_fCYBorder, m_rtCaption.height, m_fCYBorder, 444 param.m_rtPart.Deflate(m_fCYBorder, m_rtCaption.height, m_fCYBorder,
445 m_fCXBorder); 445 m_fCXBorder);
446 pTheme->DrawBackground(&param); 446 pTheme->DrawBackground(&param);
447 } 447 }
448 CFWL_WidgetImp* CFWL_FormImp::GetSubFocus() { 448 CFWL_WidgetImp* CFWL_FormImp::GetSubFocus() {
449 return m_pSubFocus; 449 return m_pSubFocus;
450 } 450 }
451 void CFWL_FormImp::SetSubFocus(CFWL_WidgetImp* pWidget) { 451 void CFWL_FormImp::SetSubFocus(CFWL_WidgetImp* pWidget) {
452 m_pSubFocus = pWidget; 452 m_pSubFocus = pWidget;
453 } 453 }
454 CFX_MapAccelerators& CFWL_FormImp::GetAccelerator() { 454
455 return m_mapAccelerators;
456 }
457 void CFWL_FormImp::SetAccelerator(CFX_MapAccelerators* pAccelerators) {
458 if (!pAccelerators)
459 return;
460 m_mapAccelerators.RemoveAll();
461 uint32_t vrKey, rValue;
462 FX_POSITION pos = pAccelerators->GetStartPosition();
463 while (pos) {
464 pAccelerators->GetNextAssoc(pos, vrKey, rValue);
465 m_mapAccelerators.SetAt(vrKey, rValue);
466 }
467 }
468 void CFWL_FormImp::ShowChildWidget(IFWL_Widget* pParent) { 455 void CFWL_FormImp::ShowChildWidget(IFWL_Widget* pParent) {
469 IFWL_App* pApp = FWL_GetApp(); 456 IFWL_App* pApp = FWL_GetApp();
470 if (!pApp) 457 if (!pApp)
471 return; 458 return;
472 CFWL_WidgetMgr* pWidgetMgr = 459 CFWL_WidgetMgr* pWidgetMgr =
473 static_cast<CFWL_WidgetMgr*>(pApp->GetWidgetMgr()); 460 static_cast<CFWL_WidgetMgr*>(pApp->GetWidgetMgr());
474 if (!pWidgetMgr) 461 if (!pWidgetMgr)
475 return; 462 return;
476 IFWL_Widget* pChild = 463 IFWL_Widget* pChild =
477 pWidgetMgr->GetWidget(pParent, FWL_WGTRELATION_FirstChild); 464 pWidgetMgr->GetWidget(pParent, FWL_WGTRELATION_FirstChild);
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 } 1150 }
1164 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) { 1151 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) {
1165 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx; 1152 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx;
1166 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy; 1153 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy;
1167 } 1154 }
1168 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) { 1155 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) {
1169 CFWL_EvtClose eClose; 1156 CFWL_EvtClose eClose;
1170 eClose.m_pSrcTarget = m_pOwner->m_pInterface; 1157 eClose.m_pSrcTarget = m_pOwner->m_pInterface;
1171 m_pOwner->DispatchEvent(&eClose); 1158 m_pOwner->DispatchEvent(&eClose);
1172 } 1159 }
1173 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom,
1174 CFX_MapAccelerators* pMapAccel) {
1175 CFWL_FormImp* pImp = static_cast<CFWL_FormImp*>(pFrom->GetImpl());
1176 if (!pImp)
1177 return FWL_ERR_Indefinite;
1178 return FWL_ERR_Succeeded;
1179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698