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

Side by Side Diff: xfa/fxfa/app/xfa_fwltheme.cpp

Issue 2017773002: Test CL. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 6 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
« xfa/fwl/core/ifwl_widget.h ('K') | « xfa/fxfa/app/xfa_fwladapter.cpp ('k') | no next file » | 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/fxfa/app/xfa_fwltheme.h" 7 #include "xfa/fxfa/app/xfa_fwltheme.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fgas/crt/fgas_codepage.h" 10 #include "xfa/fgas/crt/fgas_codepage.h"
(...skipping 20 matching lines...) Expand all
31 L"Arial", L"Courier New", L"DejaVu Sans", 31 L"Arial", L"Courier New", L"DejaVu Sans",
32 }; 32 };
33 33
34 } // namespace 34 } // namespace
35 35
36 CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget) { 36 CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget) {
37 IFWL_Widget* pOuter = pWidget; 37 IFWL_Widget* pOuter = pWidget;
38 while (pOuter && pOuter->GetOuter()) 38 while (pOuter && pOuter->GetOuter())
39 pOuter = pOuter->GetOuter(); 39 pOuter = pOuter->GetOuter();
40 40
41 return pOuter ? static_cast<CXFA_FFWidget*>(pOuter->GetLayoutItem()) 41 return pOuter ? pOuter->GetLayoutItem() : nullptr;
42 : nullptr;
43 } 42 }
44 43
45 CXFA_FWLTheme::CXFA_FWLTheme(CXFA_FFApp* pApp) : m_pApp(pApp) { 44 CXFA_FWLTheme::CXFA_FWLTheme(CXFA_FFApp* pApp) : m_pApp(pApp) {
46 m_dwCapacity = 0; 45 m_dwCapacity = 0;
47 m_fCapacity = 0; 46 m_fCapacity = 0;
48 m_pCalendarFont = NULL; 47 m_pCalendarFont = NULL;
49 m_Rect.Set(0, 0, 0, 0); 48 m_Rect.Set(0, 0, 0, 0);
50 m_pCheckBoxTP = new CXFA_FWLCheckBoxTP; 49 m_pCheckBoxTP = new CXFA_FWLCheckBoxTP;
51 m_pListBoxTP = new CFWL_ListBoxTP; 50 m_pListBoxTP = new CFWL_ListBoxTP;
52 m_pPictureBoxTP = new CFWL_PictureBoxTP; 51 m_pPictureBoxTP = new CFWL_PictureBoxTP;
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 478 }
480 } 479 }
481 CFX_Color crLine(cr); 480 CFX_Color crLine(cr);
482 pParams->m_pGraphics->SetStrokeColor(&crLine); 481 pParams->m_pGraphics->SetStrokeColor(&crLine);
483 pParams->m_pGraphics->SetLineWidth(fWidth); 482 pParams->m_pGraphics->SetLineWidth(fWidth);
484 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); 483 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix);
485 return TRUE; 484 return TRUE;
486 } 485 }
487 return CFWL_EditTP::DrawBackground(pParams); 486 return CFWL_EditTP::DrawBackground(pParams);
488 } 487 }
OLDNEW
« xfa/fwl/core/ifwl_widget.h ('K') | « xfa/fxfa/app/xfa_fwladapter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698