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

Side by Side Diff: xfa/fwl/theme/cfwl_formtp.cpp

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
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
« no previous file with comments | « xfa/fwl/theme/cfwl_checkboxtp.h ('k') | xfa/fwl/theme/cfwl_listboxtp.h » ('j') | 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/fwl/theme/cfwl_formtp.h" 7 #include "xfa/fwl/theme/cfwl_formtp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/core/cfwl_themebackground.h" 10 #include "xfa/fwl/core/cfwl_themebackground.h"
(...skipping 13 matching lines...) Expand all
24 const int kFormBigIconSize = 32; 24 const int kFormBigIconSize = 32;
25 const int kFormSmallIconSize = 16; 25 const int kFormSmallIconSize = 16;
26 const uint32_t kFormTextColor = 0xFFFFFFFF; 26 const uint32_t kFormTextColor = 0xFFFFFFFF;
27 27
28 const int kButtonSize = 21; 28 const int kButtonSize = 21;
29 const int kButtonMargin = 5; 29 const int kButtonMargin = 5;
30 const int kButtonSpan = 2; 30 const int kButtonSpan = 2;
31 31
32 } // namespace 32 } // namespace
33 33
34 CFWL_FormTP::CFWL_FormTP() : m_pActiveBitmap(NULL), m_pDeactivebitmap(NULL) { 34 CFWL_FormTP::CFWL_FormTP()
35 : m_pActiveBitmap(nullptr), m_pDeactivebitmap(nullptr) {
35 m_pThemeData = new SBThemeData; 36 m_pThemeData = new SBThemeData;
36 SetThemeData(0); 37 SetThemeData(0);
37 m_rtDisLBorder.Reset(); 38 m_rtDisLBorder.Reset();
38 m_rtDisRBorder.Reset(); 39 m_rtDisRBorder.Reset();
39 m_rtDisBBorder.Reset(); 40 m_rtDisBBorder.Reset();
40 m_rtDisCaption.Reset(); 41 m_rtDisCaption.Reset();
41 } 42 }
42 43
43 CFWL_FormTP::~CFWL_FormTP() { 44 CFWL_FormTP::~CFWL_FormTP() {
44 delete m_pThemeData; 45 delete m_pThemeData;
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 path.Clear(); 866 path.Clear();
866 path.AddRectangle(0, 5, 1, 15); 867 path.AddRectangle(0, 5, 1, 15);
867 DrawAxialShading(&gs, 0, 5, 0, 20, m_pThemeData->clrHeadBK[1][1], 868 DrawAxialShading(&gs, 0, 5, 0, 20, m_pThemeData->clrHeadBK[1][1],
868 m_pThemeData->clrHeadBK[1][2], &path); 869 m_pThemeData->clrHeadBK[1][2], &path);
869 path.Clear(); 870 path.Clear();
870 path.AddRectangle(0, 20, 1, kCYCaption - 19); 871 path.AddRectangle(0, 20, 1, kCYCaption - 19);
871 DrawAxialShading(&gs, 0, 20, 0, kCYCaption, m_pThemeData->clrHeadBK[1][2], 872 DrawAxialShading(&gs, 0, 20, 0, kCYCaption, m_pThemeData->clrHeadBK[1][2],
872 m_pThemeData->clrHeadBK[1][3], &path); 873 m_pThemeData->clrHeadBK[1][3], &path);
873 } 874 }
874 } 875 }
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_checkboxtp.h ('k') | xfa/fwl/theme/cfwl_listboxtp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698