OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef XFA_FWL_CORE_CFWL_NOTELOOP_H_ | 7 #ifndef XFA_FWL_CFWL_NOTELOOP_H_ |
8 #define XFA_FWL_CORE_CFWL_NOTELOOP_H_ | 8 #define XFA_FWL_CFWL_NOTELOOP_H_ |
9 | 9 |
10 class CFWL_Widget; | 10 class CFWL_Widget; |
11 | 11 |
12 class CFWL_NoteLoop { | 12 class CFWL_NoteLoop { |
13 public: | 13 public: |
14 CFWL_NoteLoop(); | 14 CFWL_NoteLoop(); |
15 ~CFWL_NoteLoop() {} | 15 ~CFWL_NoteLoop() {} |
16 | 16 |
17 CFWL_Widget* GetForm() const { return m_pForm; } | 17 CFWL_Widget* GetForm() const { return m_pForm; } |
18 bool ContinueModal() const { return m_bContinueModal; } | 18 bool ContinueModal() const { return m_bContinueModal; } |
19 void EndModalLoop() { m_bContinueModal = false; } | 19 void EndModalLoop() { m_bContinueModal = false; } |
20 void SetMainForm(CFWL_Widget* pForm) { m_pForm = pForm; } | 20 void SetMainForm(CFWL_Widget* pForm) { m_pForm = pForm; } |
21 | 21 |
22 private: | 22 private: |
23 CFWL_Widget* m_pForm; | 23 CFWL_Widget* m_pForm; |
24 bool m_bContinueModal; | 24 bool m_bContinueModal; |
25 }; | 25 }; |
26 | 26 |
27 #endif // XFA_FWL_CORE_CFWL_NOTELOOP_H_ | 27 #endif // XFA_FWL_CFWL_NOTELOOP_H_ |
OLD | NEW |