| 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/src/fxfa/app/xfa_fwltheme.h" | 7 #include "xfa/fxfa/app/xfa_fwltheme.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fgas/crt/fgas_codepage.h" |
| 11 #include "xfa/fxfa/app/xfa_ffapp.h" |
| 12 #include "xfa/fxfa/app/xfa_ffwidget.h" |
| 9 #include "xfa/include/fwl/basewidget/fwl_barcode.h" | 13 #include "xfa/include/fwl/basewidget/fwl_barcode.h" |
| 10 #include "xfa/include/fwl/basewidget/fwl_caret.h" | 14 #include "xfa/include/fwl/basewidget/fwl_caret.h" |
| 11 #include "xfa/include/fwl/basewidget/fwl_checkbox.h" | 15 #include "xfa/include/fwl/basewidget/fwl_checkbox.h" |
| 12 #include "xfa/include/fwl/basewidget/fwl_combobox.h" | 16 #include "xfa/include/fwl/basewidget/fwl_combobox.h" |
| 13 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" | 17 #include "xfa/include/fwl/basewidget/fwl_datetimepicker.h" |
| 14 #include "xfa/include/fwl/basewidget/fwl_edit.h" | 18 #include "xfa/include/fwl/basewidget/fwl_edit.h" |
| 15 #include "xfa/include/fwl/basewidget/fwl_listbox.h" | 19 #include "xfa/include/fwl/basewidget/fwl_listbox.h" |
| 16 #include "xfa/include/fwl/basewidget/fwl_monthcalendar.h" | 20 #include "xfa/include/fwl/basewidget/fwl_monthcalendar.h" |
| 17 #include "xfa/include/fwl/basewidget/fwl_picturebox.h" | 21 #include "xfa/include/fwl/basewidget/fwl_picturebox.h" |
| 18 #include "xfa/include/fwl/basewidget/fwl_pushbutton.h" | 22 #include "xfa/include/fwl/basewidget/fwl_pushbutton.h" |
| 19 #include "xfa/include/fwl/basewidget/fwl_scrollbar.h" | 23 #include "xfa/include/fwl/basewidget/fwl_scrollbar.h" |
| 20 #include "xfa/src/fde/tto/fde_textout.h" | |
| 21 #include "xfa/src/fgas/crt/fgas_codepage.h" | |
| 22 #include "xfa/src/fxfa/app/xfa_ffapp.h" | |
| 23 #include "xfa/src/fxfa/app/xfa_ffwidget.h" | |
| 24 | 24 |
| 25 CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget) { | 25 CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget) { |
| 26 IFWL_Widget* pOuter = pWidget; | 26 IFWL_Widget* pOuter = pWidget; |
| 27 while (pOuter->GetOuter()) { | 27 while (pOuter->GetOuter()) { |
| 28 pOuter = pOuter->GetOuter(); | 28 pOuter = pOuter->GetOuter(); |
| 29 } | 29 } |
| 30 if (pOuter) { | 30 if (pOuter) { |
| 31 return (CXFA_FFWidget*)pOuter->GetPrivateData(pOuter); | 31 return (CXFA_FFWidget*)pOuter->GetPrivateData(pOuter); |
| 32 } | 32 } |
| 33 return NULL; | 33 return NULL; |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 CFX_Color crLine(cr); | 417 CFX_Color crLine(cr); |
| 418 pParams->m_pGraphics->SetStrokeColor(&crLine); | 418 pParams->m_pGraphics->SetStrokeColor(&crLine); |
| 419 pParams->m_pGraphics->SetLineWidth(fWidth); | 419 pParams->m_pGraphics->SetLineWidth(fWidth); |
| 420 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); | 420 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); |
| 421 return TRUE; | 421 return TRUE; |
| 422 } | 422 } |
| 423 return CFWL_EditTP::DrawBackground(pParams); | 423 return CFWL_EditTP::DrawBackground(pParams); |
| 424 } | 424 } |
| OLD | NEW |