| 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_IMP_H | 7 #ifndef _FWL_TARGET_IMP_H |
| 8 #define _FWL_TARGET_IMP_H | 8 #define _FWL_TARGET_IMP_H |
| 9 class IFWL_Target; | 9 class IFWL_Target; |
| 10 class CFWL_Target; | 10 class CFWL_Target |
| 11 class CFWL_Target : public CFX_Object | |
| 12 { | 11 { |
| 13 public: | 12 public: |
| 14 virtual FX_DWORD Release(); | 13 virtual FX_DWORD Release(); |
| 15 virtual IFWL_Target* Retain(); | 14 virtual IFWL_Target* Retain(); |
| 16 virtual FX_DWORD GetRefCount() const; | 15 virtual FX_DWORD GetRefCount() const; |
| 17 virtual FWL_ERR GetClassName(CFX_WideString &wsClass) co
nst; | 16 virtual FWL_ERR GetClassName(CFX_WideString &wsClass) co
nst; |
| 18 virtual FX_DWORD GetClassID() const; | 17 virtual FX_DWORD GetClassID() const; |
| 19 virtual FX_BOOL IsInstance(FX_WSTR wsClass) const; | 18 virtual FX_BOOL IsInstance(FX_WSTR wsClass) const; |
| 20 virtual FWL_ERR Initialize(); | 19 virtual FWL_ERR Initialize(); |
| 21 virtual FWL_ERR Finalize(); | 20 virtual FWL_ERR Finalize(); |
| 22 protected: | 21 protected: |
| 23 CFWL_Target(); | 22 CFWL_Target(); |
| 24 virtual ~CFWL_Target(); | 23 virtual ~CFWL_Target(); |
| 25 FX_DWORD m_dwRefCount; | 24 FX_DWORD m_dwRefCount; |
| 26 }; | 25 }; |
| 27 class IFWL_TargetData : public IFWL_Target | 26 class IFWL_TargetData : public IFWL_Target |
| 28 { | 27 { |
| 29 public: | 28 public: |
| 30 FX_LPVOID GetData(); | 29 FX_LPVOID GetData(); |
| 31 void SetData(FX_LPVOID pData); | 30 void SetData(FX_LPVOID pData); |
| 32 }; | 31 }; |
| 33 #endif | 32 #endif |
| OLD | NEW |