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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_tooltip.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/lightwidget/cfwl_scrollbar.h ('k') | xfa/fwl/lightwidget/cfwl_widget.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/lightwidget/cfwl_tooltip.h" 7 #include "xfa/fwl/lightwidget/cfwl_tooltip.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 void CFWL_ToolTip::Hide() { 84 void CFWL_ToolTip::Hide() {
85 static_cast<IFWL_ToolTip*>(m_pIface)->Hide(); 85 static_cast<IFWL_ToolTip*>(m_pIface)->Hide();
86 } 86 }
87 87
88 CFWL_ToolTip::CFWL_ToolTip() {} 88 CFWL_ToolTip::CFWL_ToolTip() {}
89 89
90 CFWL_ToolTip::~CFWL_ToolTip() {} 90 CFWL_ToolTip::~CFWL_ToolTip() {}
91 91
92 CFWL_ToolTip::CFWL_ToolTipDP::CFWL_ToolTipDP() : m_pBitmap(NULL) { 92 CFWL_ToolTip::CFWL_ToolTipDP::CFWL_ToolTipDP() : m_pBitmap(nullptr) {
93 m_wsCaption = L""; 93 m_wsCaption = L"";
94 m_nInitDelayTime = 500; 94 m_nInitDelayTime = 500;
95 m_nAutoPopDelayTime = 50000; 95 m_nAutoPopDelayTime = 50000;
96 m_fAnchor.Set(0.0, 0.0, 0.0, 0.0); 96 m_fAnchor.Set(0.0, 0.0, 0.0, 0.0);
97 } 97 }
98 98
99 FWL_Error CFWL_ToolTip::CFWL_ToolTipDP::GetCaption(IFWL_Widget* pWidget, 99 FWL_Error CFWL_ToolTip::CFWL_ToolTipDP::GetCaption(IFWL_Widget* pWidget,
100 CFX_WideString& wsCaption) { 100 CFX_WideString& wsCaption) {
101 wsCaption = m_wsCaption; 101 wsCaption = m_wsCaption;
102 return FWL_Error::Succeeded; 102 return FWL_Error::Succeeded;
(...skipping 13 matching lines...) Expand all
116 } 116 }
117 117
118 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( 118 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize(
119 IFWL_Widget* pWidget) { 119 IFWL_Widget* pWidget) {
120 return m_fIconSize; 120 return m_fIconSize;
121 } 121 }
122 122
123 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { 123 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() {
124 return m_fAnchor; 124 return m_fAnchor;
125 } 125 }
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_scrollbar.h ('k') | xfa/fwl/lightwidget/cfwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698