| 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/core/fwl_widgetimp.h" | 7 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 if (m_pProperties->m_pThemeProvider) { | 631 if (m_pProperties->m_pThemeProvider) { |
| 632 return m_pProperties->m_pThemeProvider; | 632 return m_pProperties->m_pThemeProvider; |
| 633 } | 633 } |
| 634 IFWL_Widget* pUp = m_pInterface; | 634 IFWL_Widget* pUp = m_pInterface; |
| 635 do { | 635 do { |
| 636 pUp = (pUp->GetStyles() & FWL_WGTSTYLE_Popup) | 636 pUp = (pUp->GetStyles() & FWL_WGTSTYLE_Popup) |
| 637 ? m_pWidgetMgr->GetOwnerWidget(pUp) | 637 ? m_pWidgetMgr->GetOwnerWidget(pUp) |
| 638 : m_pWidgetMgr->GetParentWidget(pUp); | 638 : m_pWidgetMgr->GetParentWidget(pUp); |
| 639 if (pUp) { | 639 if (pUp) { |
| 640 IFWL_ThemeProvider* pRet = pUp->GetThemeProvider(); | 640 IFWL_ThemeProvider* pRet = pUp->GetThemeProvider(); |
| 641 if (pRet && pRet->IsValidWidget(m_pInterface)) | 641 if (pRet) |
| 642 return pRet; | 642 return pRet; |
| 643 } | 643 } |
| 644 } while (pUp); | 644 } while (pUp); |
| 645 return FWL_GetApp()->GetThemeProvider(); | 645 return FWL_GetApp()->GetThemeProvider(); |
| 646 } | 646 } |
| 647 CFWL_WidgetImp* CFWL_WidgetImp::GetRootOuter() { | 647 CFWL_WidgetImp* CFWL_WidgetImp::GetRootOuter() { |
| 648 IFWL_Widget* pRet = m_pOuter; | 648 IFWL_Widget* pRet = m_pOuter; |
| 649 if (!pRet) | 649 if (!pRet) |
| 650 return nullptr; | 650 return nullptr; |
| 651 while (IFWL_Widget* pOuter = pRet->GetOuter()) { | 651 while (IFWL_Widget* pOuter = pRet->GetOuter()) { |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 } | 1040 } |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 void CFWL_WidgetImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} | 1043 void CFWL_WidgetImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} |
| 1044 | 1044 |
| 1045 void CFWL_WidgetImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 1045 void CFWL_WidgetImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
| 1046 const CFX_Matrix* pMatrix) { | 1046 const CFX_Matrix* pMatrix) { |
| 1047 CFWL_EvtDraw evt; | 1047 CFWL_EvtDraw evt; |
| 1048 evt.m_pGraphics = pGraphics; | 1048 evt.m_pGraphics = pGraphics; |
| 1049 } | 1049 } |
| OLD | NEW |