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

Side by Side Diff: xfa/include/fwl/adapter/fwl_sdadapterimp.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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 | « fpdfsdk/src/jsapi/fxjs_v8.cpp ('k') | xfa/include/fwl/core/fwl_grid.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 _FWL_SDAPATER_IMP_H 7 #ifndef _FWL_SDAPATER_IMP_H
8 #define _FWL_SDAPATER_IMP_H 8 #define _FWL_SDAPATER_IMP_H
9 class IFWL_AdapterNative; 9 class IFWL_AdapterNative;
10 class IFWL_AdapterWidgetMgr; 10 class IFWL_AdapterWidgetMgr;
11 class IFWL_AdapterThreadMgr; 11 class IFWL_AdapterThreadMgr;
12 class IFWL_AdapterTimerMgr; 12 class IFWL_AdapterTimerMgr;
13 class IFWL_WidgetMgrDelegate; 13 class IFWL_WidgetMgrDelegate;
14 class CFWL_SDAdatperNative; 14 class CFWL_SDAdatperNative;
15 class CFWL_SDAdapterWidgetMgr; 15 class CFWL_SDAdapterWidgetMgr;
16 class CFWL_SDAdapterTimerMgr; 16 class CFWL_SDAdapterTimerMgr;
17 class CFWL_SDAdapterWidgetMgr : public IFWL_AdapterWidgetMgr, public CFX_Object 17 class CFWL_SDAdapterWidgetMgr : public IFWL_AdapterWidgetMgr
18 { 18 {
19 public: 19 public:
20 CFWL_SDAdapterWidgetMgr(); 20 CFWL_SDAdapterWidgetMgr();
21 ~CFWL_SDAdapterWidgetMgr(); 21 ~CFWL_SDAdapterWidgetMgr();
22 virtual FWL_ERR CreateWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent = NU LL); 22 virtual FWL_ERR CreateWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent = NU LL);
23 virtual FWL_ERR DestroyWidget(IFWL_Widget *pWidget); 23 virtual FWL_ERR DestroyWidget(IFWL_Widget *pWidget);
24 virtual FWL_ERR SetWidgetRect(IFWL_Widget *pWidget, const CFX_RectF &rect); 24 virtual FWL_ERR SetWidgetRect(IFWL_Widget *pWidget, const CFX_RectF &rect);
25 virtual FWL_ERR SetWidgetPosition(IFWL_Widget *pWidget, FX_FLOAT fx, FX_FLOA T fy); 25 virtual FWL_ERR SetWidgetPosition(IFWL_Widget *pWidget, FX_FLOAT fx, FX_FLOA T fy);
26 virtual FWL_ERR SetParentWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent); 26 virtual FWL_ERR SetParentWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent);
27 virtual FWL_ERR ShowWidget(IFWL_Widget *pWidget); 27 virtual FWL_ERR ShowWidget(IFWL_Widget *pWidget);
(...skipping 21 matching lines...) Expand all
49 virtual FX_LPVOID GetWindow(IFWL_Widget *pWidget); 49 virtual FX_LPVOID GetWindow(IFWL_Widget *pWidget);
50 virtual FX_DWORD GetKeyState(FX_DWORD dwVirtKey); 50 virtual FX_DWORD GetKeyState(FX_DWORD dwVirtKey);
51 virtual FWL_ERR RunLoop(IFWL_Widget *widget); 51 virtual FWL_ERR RunLoop(IFWL_Widget *widget);
52 virtual FWL_ERR EndLoop(); 52 virtual FWL_ERR EndLoop();
53 virtual FWL_ERR InitMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData); 53 virtual FWL_ERR InitMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData);
54 virtual FWL_ERR UpdateMenu(IFWL_Menu *pMenu, FX_LPCVOID hItem, FX_INT32 iTy pe); 54 virtual FWL_ERR UpdateMenu(IFWL_Menu *pMenu, FX_LPCVOID hItem, FX_INT32 iTy pe);
55 virtual FX_INT32 TrackPopupMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData); 55 virtual FX_INT32 TrackPopupMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData);
56 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook *hook); 56 virtual FWL_ERR SetMessageHook(IFWL_AdapterMessageHook *hook);
57 virtual FWL_ERR GetSystemBorder(FX_FLOAT &l, FX_FLOAT &t, FX_FLOAT &r, FX_F LOAT &b); 57 virtual FWL_ERR GetSystemBorder(FX_FLOAT &l, FX_FLOAT &t, FX_FLOAT &r, FX_F LOAT &b);
58 }; 58 };
59 class CFWL_SDAdapterThreadMgr : public IFWL_AdapterThreadMgr, public CFX_Object 59 class CFWL_SDAdapterThreadMgr : public IFWL_AdapterThreadMgr
60 { 60 {
61 public: 61 public:
62 CFWL_SDAdapterThreadMgr(); 62 CFWL_SDAdapterThreadMgr();
63 ~CFWL_SDAdapterThreadMgr(); 63 ~CFWL_SDAdapterThreadMgr();
64 public: 64 public:
65 virtual FWL_ERR Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread , FX_BOOL bSuspended = FALSE); 65 virtual FWL_ERR Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread , FX_BOOL bSuspended = FALSE);
66 virtual FWL_ERR Resume(FWL_HTHREAD hThread); 66 virtual FWL_ERR Resume(FWL_HTHREAD hThread);
67 virtual FWL_ERR Suspend(FWL_HTHREAD hThread); 67 virtual FWL_ERR Suspend(FWL_HTHREAD hThread);
68 virtual FWL_ERR Kill(FWL_HTHREAD hThread, FX_INT32 iExitCode); 68 virtual FWL_ERR Kill(FWL_HTHREAD hThread, FX_INT32 iExitCode);
69 virtual FWL_ERR Stop(FWL_HTHREAD hThread, FX_INT32 iExitCode); 69 virtual FWL_ERR Stop(FWL_HTHREAD hThread, FX_INT32 iExitCode);
70 virtual IFWL_Thread* GetCurrentThread(); 70 virtual IFWL_Thread* GetCurrentThread();
71 }; 71 };
72 #endif 72 #endif
OLDNEW
« no previous file with comments | « fpdfsdk/src/jsapi/fxjs_v8.cpp ('k') | xfa/include/fwl/core/fwl_grid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698