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

Unified Diff: xfa/fwl/core/cfwl_notedriver.h

Issue 2520063002: Split fwl/core class pt II. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_eventtarget.cpp ('k') | xfa/fwl/core/cfwl_notedriver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/cfwl_notedriver.h
diff --git a/xfa/fwl/core/fwl_noteimp.h b/xfa/fwl/core/cfwl_notedriver.h
similarity index 71%
rename from xfa/fwl/core/fwl_noteimp.h
rename to xfa/fwl/core/cfwl_notedriver.h
index 5a530ed9afbc5fd6e7649863c3dbdc4ec4ca591f..a9b2c715dbaae10c0549695eb299bd7e884fa406 100644
--- a/xfa/fwl/core/fwl_noteimp.h
+++ b/xfa/fwl/core/cfwl_notedriver.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_FWL_CORE_FWL_NOTEIMP_H_
-#define XFA_FWL_CORE_FWL_NOTEIMP_H_
+#ifndef XFA_FWL_CORE_CFWL_NOTEDRIVER_H_
+#define XFA_FWL_CORE_CFWL_NOTEDRIVER_H_
#include <deque>
#include <memory>
@@ -17,25 +17,11 @@
#include "xfa/fxgraphics/cfx_graphics.h"
class CFWL_EventTarget;
+class CFWL_NoteLoop;
class CFWL_TargetImp;
class IFWL_ToolTip;
class IFWL_Widget;
-class CFWL_NoteLoop {
- public:
- CFWL_NoteLoop();
- ~CFWL_NoteLoop() {}
-
- IFWL_Widget* GetForm() const { return m_pForm; }
- bool ContinueModal() const { return m_bContinueModal; }
- void EndModalLoop() { m_bContinueModal = false; }
- void SetMainForm(IFWL_Widget* pForm) { m_pForm = pForm; }
-
- private:
- IFWL_Widget* m_pForm;
- bool m_bContinueModal;
-};
-
class CFWL_NoteDriver {
public:
CFWL_NoteDriver();
@@ -93,24 +79,4 @@ class CFWL_NoteDriver {
std::unique_ptr<CFWL_NoteLoop> m_pNoteLoop;
};
-class CFWL_EventTarget {
- public:
- explicit CFWL_EventTarget(IFWL_Widget* pListener);
- ~CFWL_EventTarget();
-
- int32_t SetEventSource(IFWL_Widget* pSource,
- uint32_t dwFilter = FWL_EVENT_ALL_MASK);
- bool ProcessEvent(CFWL_Event* pEvent);
-
- bool IsInvalid() const { return m_bInvalid; }
- void FlagInvalid() { m_bInvalid = true; }
-
- private:
- bool IsFilterEvent(CFWL_Event* pEvent, uint32_t dwFilter) const;
-
- CFX_MapPtrTemplate<void*, uint32_t> m_eventSources;
- IFWL_Widget* m_pListener;
- bool m_bInvalid;
-};
-
-#endif // XFA_FWL_CORE_FWL_NOTEIMP_H_
+#endif // XFA_FWL_CORE_CFWL_NOTEDRIVER_H_
« no previous file with comments | « xfa/fwl/core/cfwl_eventtarget.cpp ('k') | xfa/fwl/core/cfwl_notedriver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698