| 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/ifwl_widget.h" | 7 #include "xfa/fwl/core/ifwl_widget.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 CFX_Matrix m; | 278 CFX_Matrix m; |
| 279 m.SetIdentity(); | 279 m.SetIdentity(); |
| 280 matrix.Concat(m, true); | 280 matrix.Concat(m, true); |
| 281 parents.RemoveAll(); | 281 parents.RemoveAll(); |
| 282 } | 282 } |
| 283 | 283 |
| 284 IFWL_ThemeProvider* IFWL_Widget::GetThemeProvider() const { | 284 IFWL_ThemeProvider* IFWL_Widget::GetThemeProvider() const { |
| 285 return m_pProperties->m_pThemeProvider; | 285 return m_pProperties->m_pThemeProvider; |
| 286 } | 286 } |
| 287 | 287 |
| 288 IFWL_Widget::DataProvider* IFWL_Widget::GetDataProvider() const { | |
| 289 return m_pProperties->m_pDataProvider; | |
| 290 } | |
| 291 | |
| 292 void IFWL_Widget::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { | 288 void IFWL_Widget::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) { |
| 293 m_pProperties->m_pThemeProvider = pThemeProvider; | 289 m_pProperties->m_pThemeProvider = pThemeProvider; |
| 294 } | 290 } |
| 295 | 291 |
| 296 bool IFWL_Widget::IsEnabled() const { | 292 bool IFWL_Widget::IsEnabled() const { |
| 297 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled) == 0; | 293 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled) == 0; |
| 298 } | 294 } |
| 299 | 295 |
| 300 bool IFWL_Widget::IsActive() const { | 296 bool IFWL_Widget::IsActive() const { |
| 301 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Deactivated) == 0; | 297 return (m_pProperties->m_dwStates & FWL_WGTSTATE_Deactivated) == 0; |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 } | 794 } |
| 799 default: | 795 default: |
| 800 break; | 796 break; |
| 801 } | 797 } |
| 802 } | 798 } |
| 803 | 799 |
| 804 void IFWL_Widget::OnProcessEvent(CFWL_Event* pEvent) {} | 800 void IFWL_Widget::OnProcessEvent(CFWL_Event* pEvent) {} |
| 805 | 801 |
| 806 void IFWL_Widget::OnDrawWidget(CFX_Graphics* pGraphics, | 802 void IFWL_Widget::OnDrawWidget(CFX_Graphics* pGraphics, |
| 807 const CFX_Matrix* pMatrix) {} | 803 const CFX_Matrix* pMatrix) {} |
| OLD | NEW |