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 #ifndef XFA_FWL_CORE_CFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_WIDGET_H_ |
8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "xfa/fwl/core/cfwl_event.h" | 12 #include "xfa/fwl/core/cfwl_event.h" |
13 #include "xfa/fwl/core/cfwl_widgetproperties.h" | |
14 #include "xfa/fwl/core/ifwl_widget.h" | 13 #include "xfa/fwl/core/ifwl_widget.h" |
15 | 14 |
16 class CFWL_Event; | 15 class CFWL_Event; |
17 class CFWL_Message; | 16 class CFWL_Message; |
18 class CFWL_Widget; | 17 class CFWL_Widget; |
19 class CFWL_WidgetDelegate; | 18 class CFWL_WidgetDelegate; |
20 class CFWL_WidgetMgr; | 19 class CFWL_WidgetMgr; |
21 | 20 |
22 class CFWL_Widget { | 21 class CFWL_Widget { |
23 public: | 22 public: |
(...skipping 29 matching lines...) Expand all Loading... |
53 | 52 |
54 IFWL_WidgetDelegate* GetDelegate() const; | 53 IFWL_WidgetDelegate* GetDelegate() const; |
55 void SetDelegate(IFWL_WidgetDelegate*); | 54 void SetDelegate(IFWL_WidgetDelegate*); |
56 | 55 |
57 protected: | 56 protected: |
58 void Initialize(); | 57 void Initialize(); |
59 | 58 |
60 const IFWL_App* m_pApp; | 59 const IFWL_App* m_pApp; |
61 std::unique_ptr<IFWL_Widget> m_pIface; | 60 std::unique_ptr<IFWL_Widget> m_pIface; |
62 CFWL_WidgetMgr* const m_pWidgetMgr; | 61 CFWL_WidgetMgr* const m_pWidgetMgr; |
63 std::unique_ptr<CFWL_WidgetProperties> m_pProperties; | |
64 }; | 62 }; |
65 | 63 |
66 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ | 64 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ |
OLD | NEW |