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_INCLUDE_FWL_CORE_FWL_TARGET_H_ | 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_TARGET_H_ |
8 #define XFA_INCLUDE_FWL_CORE_FWL_TARGET_H_ | 8 #define XFA_INCLUDE_FWL_CORE_FWL_TARGET_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 #include "xfa/include/fwl/core/fwl_error.h" |
11 | 12 |
12 // FWL contains three parallel inheritance hierarchies, which reference each | 13 // FWL contains three parallel inheritance hierarchies, which reference each |
13 // other via pointers as follows: | 14 // other via pointers as follows: |
14 // | 15 // |
15 // m_pImpl | 16 // m_pImpl |
16 // (nonesuch) IFWL_Target ----------> CFWL_TargetImp | 17 // (nonesuch) IFWL_Target ----------> CFWL_TargetImp |
17 // | | | 18 // | | |
18 // A A | 19 // A A |
19 // m_pIface | | | 20 // m_pIface | | |
20 // CFWL_Widget ----------> IFWL_Widget CFWL_WidgetImp | 21 // CFWL_Widget ----------> IFWL_Widget CFWL_WidgetImp |
(...skipping 21 matching lines...) Expand all Loading... |
42 CFWL_TargetImp* GetImpl() const { return m_pImpl; } | 43 CFWL_TargetImp* GetImpl() const { return m_pImpl; } |
43 | 44 |
44 protected: | 45 protected: |
45 void SetImpl(CFWL_TargetImp* pImpl) { m_pImpl = pImpl; } | 46 void SetImpl(CFWL_TargetImp* pImpl) { m_pImpl = pImpl; } |
46 | 47 |
47 private: | 48 private: |
48 CFWL_TargetImp* m_pImpl; | 49 CFWL_TargetImp* m_pImpl; |
49 }; | 50 }; |
50 | 51 |
51 #endif // XFA_INCLUDE_FWL_CORE_FWL_TARGET_H_ | 52 #endif // XFA_INCLUDE_FWL_CORE_FWL_TARGET_H_ |
OLD | NEW |