OLD | NEW |
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" |
11 #include "xfa/fwl/basewidget/fwl_tooltipctrlimp.h" | 11 #include "xfa/fwl/basewidget/fwl_tooltipctrlimp.h" |
12 #include "xfa/fwl/basewidget/ifwl_tooltip.h" | 12 #include "xfa/fwl/basewidget/ifwl_tooltip.h" |
13 #include "xfa/fwl/core/cfwl_message.h" | 13 #include "xfa/fwl/core/cfwl_message.h" |
14 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 14 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
15 #include "xfa/fwl/core/fwl_appimp.h" | |
16 #include "xfa/fwl/core/fwl_formimp.h" | 15 #include "xfa/fwl/core/fwl_formimp.h" |
17 #include "xfa/fwl/core/fwl_widgetimp.h" | 16 #include "xfa/fwl/core/fwl_widgetimp.h" |
18 #include "xfa/fwl/core/ifwl_app.h" | 17 #include "xfa/fwl/core/ifwl_app.h" |
19 | 18 |
20 CFWL_NoteLoop::CFWL_NoteLoop(CFWL_WidgetImp* pForm) | 19 CFWL_NoteLoop::CFWL_NoteLoop(CFWL_WidgetImp* pForm) |
21 : m_pForm(pForm), m_bContinueModal(TRUE) {} | 20 : m_pForm(pForm), m_bContinueModal(TRUE) {} |
22 | 21 |
23 FWL_Error CFWL_NoteLoop::Idle(int32_t count) { | 22 FWL_Error CFWL_NoteLoop::Idle(int32_t count) { |
24 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) | 23 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) |
25 if (count <= 0) { | 24 if (count <= 0) { |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 if (!s_pInstance) | 789 if (!s_pInstance) |
791 s_pInstance = new CFWL_ToolTipContainer; | 790 s_pInstance = new CFWL_ToolTipContainer; |
792 return s_pInstance; | 791 return s_pInstance; |
793 } | 792 } |
794 | 793 |
795 // static | 794 // static |
796 void CFWL_ToolTipContainer::DeleteInstance() { | 795 void CFWL_ToolTipContainer::DeleteInstance() { |
797 delete s_pInstance; | 796 delete s_pInstance; |
798 s_pInstance = nullptr; | 797 s_pInstance = nullptr; |
799 } | 798 } |
OLD | NEW |