| 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_IFWL_TARGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_TARGET_H_ |
| 8 #define XFA_FWL_CORE_IFWL_TARGET_H_ | 8 #define XFA_FWL_CORE_IFWL_TARGET_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class CFWL_TargetImp; | 28 class CFWL_TargetImp; |
| 29 | 29 |
| 30 class IFWL_Target { | 30 class IFWL_Target { |
| 31 public: | 31 public: |
| 32 IFWL_Target() : m_pImpl(nullptr) {} | 32 IFWL_Target() : m_pImpl(nullptr) {} |
| 33 virtual ~IFWL_Target(); | 33 virtual ~IFWL_Target(); |
| 34 | 34 |
| 35 // These call into equivalent polymorphic methods of m_pImpl. There | 35 // These call into equivalent polymorphic methods of m_pImpl. There |
| 36 // should be no need to override these in subclasses. | 36 // should be no need to override these in subclasses. |
| 37 FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 37 FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
| 38 FX_DWORD GetClassID() const; | 38 uint32_t GetClassID() const; |
| 39 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; | 39 FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; |
| 40 FWL_ERR Initialize(); | 40 FWL_ERR Initialize(); |
| 41 FWL_ERR Finalize(); | 41 FWL_ERR Finalize(); |
| 42 | 42 |
| 43 CFWL_TargetImp* GetImpl() const { return m_pImpl; } | 43 CFWL_TargetImp* GetImpl() const { return m_pImpl; } |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 void SetImpl(CFWL_TargetImp* pImpl) { m_pImpl = pImpl; } | 46 void SetImpl(CFWL_TargetImp* pImpl) { m_pImpl = pImpl; } |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 CFWL_TargetImp* m_pImpl; | 49 CFWL_TargetImp* m_pImpl; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // XFA_FWL_CORE_IFWL_TARGET_H_ | 52 #endif // XFA_FWL_CORE_IFWL_TARGET_H_ |
| OLD | NEW |