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