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

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

Issue 2488963005: Continue IFWL widget cleanup. (Closed)
Patch Set: Rebase to master 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
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/fwl_noteimp.h" 7 #include "xfa/fwl/core/fwl_noteimp.h"
8 8
9 #include "core/fxcrt/fx_ext.h" 9 #include "core/fxcrt/fx_ext.h"
10 #include "third_party/base/stl_util.h" 10 #include "third_party/base/stl_util.h"
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 706
707 CFWL_ToolTipContainer* CFWL_ToolTipContainer::s_pInstance = nullptr; 707 CFWL_ToolTipContainer* CFWL_ToolTipContainer::s_pInstance = nullptr;
708 708
709 CFWL_ToolTipContainer::CFWL_ToolTipContainer() 709 CFWL_ToolTipContainer::CFWL_ToolTipContainer()
710 : m_nInitDelayTime(0), m_nAutoPopDelayTime(2000) { 710 : m_nInitDelayTime(0), m_nAutoPopDelayTime(2000) {
711 m_fAnchor.Set(0.0, 0.0, 0.0, 0.0); 711 m_fAnchor.Set(0.0, 0.0, 0.0, 0.0);
712 } 712 }
713 713
714 CFWL_ToolTipContainer::~CFWL_ToolTipContainer() {} 714 CFWL_ToolTipContainer::~CFWL_ToolTipContainer() {}
715 715
716 FWL_Error CFWL_ToolTipContainer::GetCaption(IFWL_Widget* pWidget, 716 void CFWL_ToolTipContainer::GetCaption(IFWL_Widget* pWidget,
717 CFX_WideString& wsCaption) { 717 CFX_WideString& wsCaption) {
718 wsCaption = m_wsCaption; 718 wsCaption = m_wsCaption;
719 return FWL_Error::Succeeded;
720 } 719 }
721 720
722 int32_t CFWL_ToolTipContainer::GetInitialDelay(IFWL_Widget* pWidget) { 721 int32_t CFWL_ToolTipContainer::GetInitialDelay(IFWL_Widget* pWidget) {
723 return m_nInitDelayTime; 722 return m_nInitDelayTime;
724 } 723 }
725 724
726 int32_t CFWL_ToolTipContainer::GetAutoPopDelay(IFWL_Widget* pWidget) { 725 int32_t CFWL_ToolTipContainer::GetAutoPopDelay(IFWL_Widget* pWidget) {
727 return m_nAutoPopDelayTime; 726 return m_nAutoPopDelayTime;
728 } 727 }
729 728
(...skipping 14 matching lines...) Expand all
744 if (!s_pInstance) 743 if (!s_pInstance)
745 s_pInstance = new CFWL_ToolTipContainer; 744 s_pInstance = new CFWL_ToolTipContainer;
746 return s_pInstance; 745 return s_pInstance;
747 } 746 }
748 747
749 // static 748 // static
750 void CFWL_ToolTipContainer::DeleteInstance() { 749 void CFWL_ToolTipContainer::DeleteInstance() {
751 delete s_pInstance; 750 delete s_pInstance;
752 s_pInstance = nullptr; 751 s_pInstance = nullptr;
753 } 752 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698