Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Side by Side Diff: xfa/include/fwl/core/fwl_thread.h

Issue 1735833003: Remove include only fwl.h and IWYU. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/include/fwl/core/fwl_theme.h ('k') | xfa/include/fwl/core/fwl_widgetmgr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_THREAD_H_ 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_THREAD_H_
8 #define XFA_INCLUDE_FWL_CORE_FWL_THREAD_H_ 8 #define XFA_INCLUDE_FWL_CORE_FWL_THREAD_H_
9 9
10 // The FWL thread/app code contains three parallel inheritance hierarchies, 10 // The FWL thread/app code contains three parallel inheritance hierarchies,
11 // which reference each other via pointers as follows: 11 // which reference each other via pointers as follows:
12 // 12 //
13 // m_pImpl 13 // m_pImpl
14 // (nonesuch) IFWL_Thread ----------> CFWL_ThreadImp 14 // (nonesuch) IFWL_Thread ----------> CFWL_ThreadImp
15 // | <---------- | 15 // | <---------- |
16 // A m_pIface A 16 // A m_pIface A
17 // | | 17 // | |
18 // (nonesuch) IFWL_NoteThread CFWL_NoteThreadImp 18 // (nonesuch) IFWL_NoteThread CFWL_NoteThreadImp
19 // | | 19 // | |
20 // A A 20 // A A
21 // m_pIface | | 21 // m_pIface | |
22 // CFWL_App --------------> IFWL_App CFWL_AppImp 22 // CFWL_App --------------> IFWL_App CFWL_AppImp
23 // 23 //
24 24
25 #include "xfa/include/fwl/core/fwl_error.h"
26
25 class CFWL_ThreadImp; 27 class CFWL_ThreadImp;
26 class IFWL_NoteDriver; 28 class IFWL_NoteDriver;
27 29
28 typedef struct FWL_HTHREAD_ { void* pData; } * FWL_HTHREAD; 30 typedef struct FWL_HTHREAD_ { void* pData; } * FWL_HTHREAD;
29 31
30 class IFWL_Thread { 32 class IFWL_Thread {
31 public: 33 public:
32 // These call into polymorphic methods in the impl; no need to override. 34 // These call into polymorphic methods in the impl; no need to override.
33 void Release(); 35 void Release();
34 FWL_ERR Run(FWL_HTHREAD hThread); 36 FWL_ERR Run(FWL_HTHREAD hThread);
35 37
36 CFWL_ThreadImp* GetImpl() const { return m_pImpl; } 38 CFWL_ThreadImp* GetImpl() const { return m_pImpl; }
37 void SetImpl(CFWL_ThreadImp* pImpl) { m_pImpl = pImpl; } 39 void SetImpl(CFWL_ThreadImp* pImpl) { m_pImpl = pImpl; }
38 40
39 protected: 41 protected:
40 virtual ~IFWL_Thread() {} 42 virtual ~IFWL_Thread() {}
41 43
42 private: 44 private:
43 CFWL_ThreadImp* m_pImpl; 45 CFWL_ThreadImp* m_pImpl;
44 }; 46 };
45 47
46 class IFWL_NoteThread : public IFWL_Thread { 48 class IFWL_NoteThread : public IFWL_Thread {
47 public: 49 public:
48 IFWL_NoteDriver* GetNoteDriver(); 50 IFWL_NoteDriver* GetNoteDriver();
49 }; 51 };
50 52
51 #endif // XFA_INCLUDE_FWL_CORE_FWL_THREAD_H_ 53 #endif // XFA_INCLUDE_FWL_CORE_FWL_THREAD_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_theme.h ('k') | xfa/include/fwl/core/fwl_widgetmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698