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

Side by Side Diff: xfa/fwl/core/cfwl_app.h

Issue 2521303002: Rename IFWL_App to CFWL_App (Closed)
Patch Set: Rebase to master Created 4 years 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
« no previous file with comments | « fpdfsdk/cpdfsdk_xfawidgethandler.cpp ('k') | xfa/fwl/core/cfwl_app.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef XFA_FWL_CORE_IFWL_APP_H_ 7 #ifndef XFA_FWL_CORE_CFWL_APP_H_
8 #define XFA_FWL_CORE_IFWL_APP_H_ 8 #define XFA_FWL_CORE_CFWL_APP_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "core/fxcrt/fx_string.h" 12 #include "core/fxcrt/fx_string.h"
13 13
14 class CFWL_NoteDriver; 14 class CFWL_NoteDriver;
15 class CFWL_WidgetMgr; 15 class CFWL_WidgetMgr;
16 class CXFA_FFApp; 16 class CXFA_FFApp;
17 class CXFA_FWLAdapterWidgetMgr; 17 class CXFA_FWLAdapterWidgetMgr;
18 class IFWL_Widget; 18 class IFWL_Widget;
19 19
20 enum FWL_KeyFlag { 20 enum FWL_KeyFlag {
21 FWL_KEYFLAG_Ctrl = 1 << 0, 21 FWL_KEYFLAG_Ctrl = 1 << 0,
22 FWL_KEYFLAG_Alt = 1 << 1, 22 FWL_KEYFLAG_Alt = 1 << 1,
23 FWL_KEYFLAG_Shift = 1 << 2, 23 FWL_KEYFLAG_Shift = 1 << 2,
24 FWL_KEYFLAG_Command = 1 << 3, 24 FWL_KEYFLAG_Command = 1 << 3,
25 FWL_KEYFLAG_LButton = 1 << 4, 25 FWL_KEYFLAG_LButton = 1 << 4,
26 FWL_KEYFLAG_RButton = 1 << 5, 26 FWL_KEYFLAG_RButton = 1 << 5,
27 FWL_KEYFLAG_MButton = 1 << 6 27 FWL_KEYFLAG_MButton = 1 << 6
28 }; 28 };
29 29
30 class IFWL_App { 30 class CFWL_App {
31 public: 31 public:
32 explicit IFWL_App(CXFA_FFApp* pAdapter); 32 explicit CFWL_App(CXFA_FFApp* pAdapter);
33 ~IFWL_App(); 33 ~CFWL_App();
34 34
35 CXFA_FFApp* GetAdapterNative() const { return m_pAdapterNative; } 35 CXFA_FFApp* GetAdapterNative() const { return m_pAdapterNative; }
36 CFWL_WidgetMgr* GetWidgetMgr() const { return m_pWidgetMgr.get(); } 36 CFWL_WidgetMgr* GetWidgetMgr() const { return m_pWidgetMgr.get(); }
37 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); } 37 CFWL_NoteDriver* GetNoteDriver() const { return m_pNoteDriver.get(); }
38 38
39 private: 39 private:
40 CXFA_FFApp* const m_pAdapterNative; 40 CXFA_FFApp* const m_pAdapterNative;
41 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr; 41 std::unique_ptr<CFWL_WidgetMgr> m_pWidgetMgr;
42 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver; 42 std::unique_ptr<CFWL_NoteDriver> m_pNoteDriver;
43 }; 43 };
44 44
45 #endif // XFA_FWL_CORE_IFWL_APP_H_ 45 #endif // XFA_FWL_CORE_CFWL_APP_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_xfawidgethandler.cpp ('k') | xfa/fwl/core/cfwl_app.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698