OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #include "xfa/fwl/core/fwl_sdadapterimp.h" | |
8 | |
9 #include "core/fxcrt/include/fx_system.h" | |
10 #include "xfa/fwl/core/fwl_noteimp.h" | |
11 #include "xfa/fwl/core/fwl_widgetmgrimp.h" | |
12 #include "xfa/fwl/core/ifwl_adapterthreadmgr.h" | |
13 #include "xfa/fwl/core/ifwl_adapterwidgetmgr.h" | |
14 #include "xfa/fwl/core/ifwl_app.h" | |
15 | |
16 CFWL_SDAdapterWidgetMgr::CFWL_SDAdapterWidgetMgr() {} | |
17 CFWL_SDAdapterWidgetMgr::~CFWL_SDAdapterWidgetMgr() {} | |
18 | |
19 FWL_ERR CFWL_SDAdapterWidgetMgr::CreateWidget(IFWL_Widget* pWidget, | |
20 IFWL_Widget* pParent) { | |
21 return FWL_ERR_Succeeded; | |
22 } | |
23 FWL_ERR CFWL_SDAdapterWidgetMgr::DestroyWidget(IFWL_Widget* pWidget) { | |
24 return FWL_ERR_Succeeded; | |
25 } | |
26 FWL_ERR CFWL_SDAdapterWidgetMgr::SetWidgetRect(IFWL_Widget* pWidget, | |
27 const CFX_RectF& rect) { | |
28 return FWL_ERR_Succeeded; | |
29 } | |
30 FWL_ERR CFWL_SDAdapterWidgetMgr::SetWidgetPosition(IFWL_Widget* pWidget, | |
31 FX_FLOAT fx, | |
32 FX_FLOAT fy) { | |
33 return FWL_ERR_Succeeded; | |
34 } | |
35 FWL_ERR CFWL_SDAdapterWidgetMgr::SetParentWidget(IFWL_Widget* pWidget, | |
36 IFWL_Widget* pParent) { | |
37 return FWL_ERR_Succeeded; | |
38 } | |
39 FWL_ERR CFWL_SDAdapterWidgetMgr::ShowWidget(IFWL_Widget* pWidget) { | |
40 return FWL_ERR_Succeeded; | |
41 } | |
42 FWL_ERR CFWL_SDAdapterWidgetMgr::HideWidget(IFWL_Widget* pWidget) { | |
43 return FWL_ERR_Succeeded; | |
44 } | |
45 FWL_ERR CFWL_SDAdapterWidgetMgr::SetNormal(IFWL_Widget* pWidget) { | |
46 return FWL_ERR_Succeeded; | |
47 } | |
48 FWL_ERR CFWL_SDAdapterWidgetMgr::SetMaximize(IFWL_Widget* pWidget) { | |
49 return FWL_ERR_Succeeded; | |
50 } | |
51 FWL_ERR CFWL_SDAdapterWidgetMgr::SetMinimize(IFWL_Widget* pWidget) { | |
52 return FWL_ERR_Succeeded; | |
53 } | |
54 FWL_ERR CFWL_SDAdapterWidgetMgr::RunWidget(IFWL_Widget* pWidget) { | |
55 return FWL_ERR_Succeeded; | |
56 } | |
57 FWL_ERR CFWL_SDAdapterWidgetMgr::RepaintWidget(IFWL_Widget* pWidget, | |
58 const CFX_RectF* pRect) { | |
59 return FWL_ERR_Succeeded; | |
60 } | |
61 FWL_ERR CFWL_SDAdapterWidgetMgr::Exit(int32_t iExitCode) { | |
62 return FWL_ERR_Succeeded; | |
63 } | |
64 FWL_ERR CFWL_SDAdapterWidgetMgr::CreateWidgetWithNativeId(IFWL_Widget* pWidget, | |
65 void* vp) { | |
66 return FWL_ERR_Succeeded; | |
67 } | |
68 FWL_ERR CFWL_SDAdapterWidgetMgr::GetWidgetRect(IFWL_Widget* pWidget, | |
69 CFX_RectF& rect) { | |
70 return FWL_ERR_Succeeded; | |
71 } | |
72 FWL_ERR CFWL_SDAdapterWidgetMgr::SetWidgetIcon(IFWL_Widget* pWidget, | |
73 const CFX_DIBitmap* pIcon, | |
74 FX_BOOL bBig) { | |
75 return FWL_ERR_Succeeded; | |
76 } | |
77 FWL_ERR CFWL_SDAdapterWidgetMgr::SetWidgetCaption( | |
78 IFWL_Widget* pWidget, | |
79 const CFX_WideStringC& wsCaption) { | |
80 return FWL_ERR_Succeeded; | |
81 } | |
82 FWL_ERR CFWL_SDAdapterWidgetMgr::SetBorderRegion(IFWL_Widget* pWidget, | |
83 CFX_Path* pPath) { | |
84 return FWL_ERR_Succeeded; | |
85 } | |
86 FWL_ERR CFWL_SDAdapterWidgetMgr::SetTransparent(IFWL_Widget* pWidget, | |
87 uint32_t dwAlpha) { | |
88 return FWL_ERR_Succeeded; | |
89 } | |
90 FX_BOOL CFWL_SDAdapterWidgetMgr::CheckMessage() { | |
91 return TRUE; | |
92 } | |
93 FX_BOOL CFWL_SDAdapterWidgetMgr::IsIdleMessage() { | |
94 return TRUE; | |
95 } | |
96 FWL_ERR CFWL_SDAdapterWidgetMgr::DispatchMessage() { | |
97 return FWL_ERR_Succeeded; | |
98 } | |
99 FWL_ERR CFWL_SDAdapterWidgetMgr::GetWidgetDC(IFWL_Widget* pWidget, void*& pDC) { | |
100 return FWL_ERR_Succeeded; | |
101 } | |
102 FWL_ERR CFWL_SDAdapterWidgetMgr::ReleaseWidgetDC(IFWL_Widget* pWidget, | |
103 void* pDC, | |
104 CFX_RectF* pClip) { | |
105 return FWL_ERR_Succeeded; | |
106 } | |
107 void* CFWL_SDAdapterWidgetMgr::GetWindow(IFWL_Widget* pWidget) { | |
108 return NULL; | |
109 } | |
110 uint32_t CFWL_SDAdapterWidgetMgr::GetKeyState(uint32_t dwVirtKey) { | |
111 return 0; | |
112 } | |
113 FWL_ERR CFWL_SDAdapterWidgetMgr::RunLoop(IFWL_Widget* widget) { | |
114 return FWL_ERR_Succeeded; | |
115 } | |
116 FWL_ERR CFWL_SDAdapterWidgetMgr::EndLoop() { | |
117 return FWL_ERR_Succeeded; | |
118 } | |
119 FWL_ERR CFWL_SDAdapterWidgetMgr::InitMenu(IFWL_Menu* pMenu, | |
120 IFWL_MenuDP* pMenuData) { | |
121 return FWL_ERR_Succeeded; | |
122 } | |
123 FWL_ERR CFWL_SDAdapterWidgetMgr::UpdateMenu(IFWL_Menu* pMenu, | |
124 const void* hItem, | |
125 int32_t iType) { | |
126 return FWL_ERR_Succeeded; | |
127 } | |
128 FWL_ERR CFWL_SDAdapterWidgetMgr::SetMessageHook(IFWL_AdapterMessageHook* hook) { | |
129 return FWL_ERR_Succeeded; | |
130 } | |
131 FWL_ERR CFWL_SDAdapterWidgetMgr::GetSystemBorder(FX_FLOAT& l, | |
132 FX_FLOAT& t, | |
133 FX_FLOAT& r, | |
134 FX_FLOAT& b) { | |
135 return FWL_ERR_Succeeded; | |
136 } | |
137 FX_BOOL CFWL_SDAdapterWidgetMgr::GetPopupPos(IFWL_Widget* pWidget, | |
138 FX_FLOAT fMinHeight, | |
139 FX_FLOAT fMaxHeight, | |
140 const CFX_RectF& rtAnchor, | |
141 CFX_RectF& rtPopup) { | |
142 return FWL_ERR_Succeeded; | |
143 } | |
144 | |
145 CFWL_SDAdapterThreadMgr::CFWL_SDAdapterThreadMgr() {} | |
146 | |
147 CFWL_SDAdapterThreadMgr::~CFWL_SDAdapterThreadMgr() {} | |
148 | |
149 IFWL_App* CFWL_SDAdapterThreadMgr::GetCurrentThread() { | |
150 return FWL_GetApp(); | |
151 } | |
OLD | NEW |