1 // Copyright 2016 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FWL_CFWL_NOTELOOP_H_ 8 #define XFA_FWL_CFWL_NOTELOOP_H_ 9 10 class CFWL_Widget; 11 12 class CFWL_NoteLoop { 13 public: 14 CFWL_NoteLoop(); ~CFWL_NoteLoop()15 ~CFWL_NoteLoop() {} 16 GetForm()17 CFWL_Widget* GetForm() const { return m_pForm; } ContinueModal()18 bool ContinueModal() const { return m_bContinueModal; } EndModalLoop()19 void EndModalLoop() { m_bContinueModal = false; } SetMainForm(CFWL_Widget * pForm)20 void SetMainForm(CFWL_Widget* pForm) { m_pForm = pForm; } 21 22 private: 23 CFWL_Widget* m_pForm; 24 bool m_bContinueModal; 25 }; 26 27 #endif // XFA_FWL_CFWL_NOTELOOP_H_ 28