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

Side by Side Diff: xfa/fwl/core/ifwl_tooltip.cpp

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: review cleanup Created 4 years, 1 month 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/core/ifwl_tooltip.h ('k') | xfa/fwl/core/ifwl_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/core/ifwl_tooltip.h" 7 #include "xfa/fwl/core/ifwl_tooltip.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fde/tto/fde_textout.h" 10 #include "xfa/fde/tto/fde_textout.h"
11 #include "xfa/fwl/core/cfwl_themebackground.h" 11 #include "xfa/fwl/core/cfwl_themebackground.h"
12 #include "xfa/fwl/core/cfwl_themepart.h" 12 #include "xfa/fwl/core/cfwl_themepart.h"
13 #include "xfa/fwl/core/cfwl_themetext.h" 13 #include "xfa/fwl/core/cfwl_themetext.h"
14 #include "xfa/fwl/core/fwl_noteimp.h" 14 #include "xfa/fwl/core/fwl_noteimp.h"
15 #include "xfa/fwl/core/ifwl_themeprovider.h" 15 #include "xfa/fwl/core/ifwl_themeprovider.h"
16 #include "xfa/fwl/core/ifwl_tooltip.h" 16 #include "xfa/fwl/core/ifwl_tooltip.h"
17 #include "xfa/fwl/theme/cfwl_widgettp.h" 17 #include "xfa/fwl/theme/cfwl_widgettp.h"
18 18
19 IFWL_ToolTip::IFWL_ToolTip(const IFWL_App* app, 19 IFWL_ToolTip::IFWL_ToolTip(const IFWL_App* app,
20 const CFWL_WidgetImpProperties& properties, 20 std::unique_ptr<CFWL_WidgetProperties> properties,
21 IFWL_Widget* pOuter) 21 IFWL_Widget* pOuter)
22 : IFWL_Form(app, properties, pOuter), 22 : IFWL_Form(app, std::move(properties), pOuter),
23 m_bBtnDown(false), 23 m_bBtnDown(false),
24 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), 24 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine),
25 m_iTTOAlign(FDE_TTOALIGNMENT_Center), 25 m_iTTOAlign(FDE_TTOALIGNMENT_Center),
26 m_pTimerInfoShow(nullptr), 26 m_pTimerInfoShow(nullptr),
27 m_pTimerInfoHide(nullptr), 27 m_pTimerInfoHide(nullptr),
28 m_TimerShow(this), 28 m_TimerShow(this),
29 m_TimerHide(this) { 29 m_TimerHide(this) {
30 m_rtClient.Set(0, 0, 0, 0); 30 m_rtClient.Set(0, 0, 0, 0);
31 m_rtCaption.Set(0, 0, 0, 0); 31 m_rtCaption.Set(0, 0, 0, 0);
32 m_rtAnchor.Set(0, 0, 0, 0); 32 m_rtAnchor.Set(0, 0, 0, 0);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 pToolTip->m_pTimerInfoShow = nullptr; 244 pToolTip->m_pTimerInfoShow = nullptr;
245 return; 245 return;
246 } 246 }
247 } 247 }
248 if (pToolTip->m_pTimerInfoHide == pTimerInfo && pToolTip->m_pTimerInfoHide) { 248 if (pToolTip->m_pTimerInfoHide == pTimerInfo && pToolTip->m_pTimerInfoHide) {
249 pToolTip->SetStates(FWL_WGTSTATE_Invisible, true); 249 pToolTip->SetStates(FWL_WGTSTATE_Invisible, true);
250 pToolTip->m_pTimerInfoHide->StopTimer(); 250 pToolTip->m_pTimerInfoHide->StopTimer();
251 pToolTip->m_pTimerInfoHide = nullptr; 251 pToolTip->m_pTimerInfoHide = nullptr;
252 } 252 }
253 } 253 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_tooltip.h ('k') | xfa/fwl/core/ifwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698