Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fwl / src / core / fwl_sdadapterimp.cpp
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #include "../../../foxitlib.h"\r
8 #include "include/fwl_targetimp.h"\r
9 #include "include/fwl_threadimp.h"\r
10 #include "include/fwl_noteimp.h"\r
11 #include "include/fwl_widgetmgrimp.h"\r
12 CFWL_SDAdapterWidgetMgr::CFWL_SDAdapterWidgetMgr()\r
13 {\r
14 }\r
15 CFWL_SDAdapterWidgetMgr::~CFWL_SDAdapterWidgetMgr()\r
16 {\r
17 }\r
18 FWL_ERR CFWL_SDAdapterWidgetMgr::CreateWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent )\r
19 {\r
20     return FWL_ERR_Succeeded;\r
21 }\r
22 FWL_ERR CFWL_SDAdapterWidgetMgr::DestroyWidget(IFWL_Widget *pWidget)\r
23 {\r
24     return FWL_ERR_Succeeded;\r
25 }\r
26 FWL_ERR CFWL_SDAdapterWidgetMgr::SetWidgetRect(IFWL_Widget *pWidget, const CFX_RectF &rect)\r
27 {\r
28     return FWL_ERR_Succeeded;\r
29 }\r
30 FWL_ERR CFWL_SDAdapterWidgetMgr::SetWidgetPosition(IFWL_Widget *pWidget, FX_FLOAT fx, FX_FLOAT fy)\r
31 {\r
32     return FWL_ERR_Succeeded;\r
33 }\r
34 FWL_ERR CFWL_SDAdapterWidgetMgr::SetParentWidget(IFWL_Widget *pWidget, IFWL_Widget *pParent)\r
35 {\r
36     return FWL_ERR_Succeeded;\r
37 }\r
38 FWL_ERR CFWL_SDAdapterWidgetMgr::ShowWidget(IFWL_Widget *pWidget)\r
39 {\r
40     return FWL_ERR_Succeeded;\r
41 }\r
42 FWL_ERR CFWL_SDAdapterWidgetMgr::HideWidget(IFWL_Widget *pWidget)\r
43 {\r
44     return FWL_ERR_Succeeded;\r
45 }\r
46 FWL_ERR CFWL_SDAdapterWidgetMgr::SetNormal(IFWL_Widget *pWidget)\r
47 {\r
48     return FWL_ERR_Succeeded;\r
49 }\r
50 FWL_ERR CFWL_SDAdapterWidgetMgr::SetMaximize(IFWL_Widget *pWidget)\r
51 {\r
52     return FWL_ERR_Succeeded;\r
53 }\r
54 FWL_ERR CFWL_SDAdapterWidgetMgr::SetMinimize(IFWL_Widget *pWidget)\r
55 {\r
56     return FWL_ERR_Succeeded;\r
57 }\r
58 FWL_ERR CFWL_SDAdapterWidgetMgr::RunWidget(IFWL_Widget *pWidget)\r
59 {\r
60     return FWL_ERR_Succeeded;\r
61 }\r
62 FWL_ERR CFWL_SDAdapterWidgetMgr::RepaintWidget(IFWL_Widget *pWidget, const CFX_RectF *pRect)\r
63 {\r
64     return FWL_ERR_Succeeded;\r
65 }\r
66 FWL_ERR CFWL_SDAdapterWidgetMgr::Exit(FX_INT32 iExitCode)\r
67 {\r
68     return FWL_ERR_Succeeded;\r
69 }\r
70 FWL_ERR CFWL_SDAdapterWidgetMgr::CreateWidgetWithNativeId(IFWL_Widget *pWidget, void *vp)\r
71 {\r
72     return FWL_ERR_Succeeded;\r
73 }\r
74 FWL_ERR         CFWL_SDAdapterWidgetMgr::GetWidgetRect(IFWL_Widget *pWidget, CFX_RectF &rect)\r
75 {\r
76     return FWL_ERR_Succeeded;\r
77 }\r
78 FWL_ERR         CFWL_SDAdapterWidgetMgr::SetWidgetIcon(IFWL_Widget *pWidget, const CFX_DIBitmap *pIcon, FX_BOOL bBig)\r
79 {\r
80     return FWL_ERR_Succeeded;\r
81 }\r
82 FWL_ERR         CFWL_SDAdapterWidgetMgr::SetWidgetCaption(IFWL_Widget *pWidget, FX_WSTR wsCaption)\r
83 {\r
84     return FWL_ERR_Succeeded;\r
85 }\r
86 FWL_ERR         CFWL_SDAdapterWidgetMgr::SetBorderRegion(IFWL_Widget *pWidget, CFX_Path *pPath)\r
87 {\r
88     return FWL_ERR_Succeeded;\r
89 }\r
90 FWL_ERR         CFWL_SDAdapterWidgetMgr::SetTransparent(IFWL_Widget *pWidget, FX_DWORD dwAlpha)\r
91 {\r
92     return FWL_ERR_Succeeded;\r
93 }\r
94 FWL_ERR         CFWL_SDAdapterWidgetMgr::SetFullScreen(IFWL_Widget *pWidget, FX_BOOL bFullScreen)\r
95 {\r
96     return FWL_ERR_Succeeded;\r
97 }\r
98 FX_BOOL         CFWL_SDAdapterWidgetMgr::CheckMessage()\r
99 {\r
100     return TRUE;\r
101 }\r
102 FX_BOOL         CFWL_SDAdapterWidgetMgr::IsIdleMessage()\r
103 {\r
104     return TRUE;\r
105 }\r
106 FWL_ERR         CFWL_SDAdapterWidgetMgr::DispatchMessage()\r
107 {\r
108     return FWL_ERR_Succeeded;\r
109 }\r
110 FWL_ERR         CFWL_SDAdapterWidgetMgr::GetWidgetDC(IFWL_Widget *pWidget, FX_LPVOID &pDC)\r
111 {\r
112     return FWL_ERR_Succeeded;\r
113 }\r
114 FWL_ERR         CFWL_SDAdapterWidgetMgr::ReleaseWidgetDC(IFWL_Widget *pWidget, FX_LPVOID pDC, CFX_RectF *pClip)\r
115 {\r
116     return FWL_ERR_Succeeded;\r
117 }\r
118 FX_LPVOID       CFWL_SDAdapterWidgetMgr::GetWindow(IFWL_Widget *pWidget)\r
119 {\r
120     return NULL;\r
121 }\r
122 FX_DWORD        CFWL_SDAdapterWidgetMgr::GetKeyState(FX_DWORD dwVirtKey)\r
123 {\r
124     return 0;\r
125 }\r
126 FWL_ERR         CFWL_SDAdapterWidgetMgr::RunLoop(IFWL_Widget *widget)\r
127 {\r
128     return FWL_ERR_Succeeded;\r
129 }\r
130 FWL_ERR         CFWL_SDAdapterWidgetMgr::EndLoop()\r
131 {\r
132     return FWL_ERR_Succeeded;\r
133 }\r
134 FWL_ERR         CFWL_SDAdapterWidgetMgr::InitMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData)\r
135 {\r
136     return FWL_ERR_Succeeded;\r
137 }\r
138 FWL_ERR         CFWL_SDAdapterWidgetMgr::UpdateMenu(IFWL_Menu *pMenu, FX_LPCVOID hItem, FX_INT32 iType)\r
139 {\r
140     return FWL_ERR_Succeeded;\r
141 }\r
142 FX_INT32        CFWL_SDAdapterWidgetMgr::TrackPopupMenu(IFWL_Menu *pMenu, IFWL_MenuDP *pMenuData)\r
143 {\r
144     return 0;\r
145 }\r
146 FWL_ERR         CFWL_SDAdapterWidgetMgr::SetMessageHook(IFWL_AdapterMessageHook *hook)\r
147 {\r
148     return FWL_ERR_Succeeded;\r
149 }\r
150 FWL_ERR         CFWL_SDAdapterWidgetMgr::GetSystemBorder(FX_FLOAT &l, FX_FLOAT &t, FX_FLOAT &r, FX_FLOAT &b)\r
151 {\r
152     return FWL_ERR_Succeeded;\r
153 }\r
154 FX_BOOL         CFWL_SDAdapterWidgetMgr::GetPopupPos(IFWL_Widget* pWidget, FX_FLOAT fMinHeight, FX_FLOAT fMaxHeight, const CFX_RectF &rtAnchor, CFX_RectF &rtPopup)\r
155 {\r
156     return FWL_ERR_Succeeded;\r
157 }\r
158 CFWL_SDAdapterThreadMgr::CFWL_SDAdapterThreadMgr()\r
159 {\r
160 }\r
161 CFWL_SDAdapterThreadMgr::~CFWL_SDAdapterThreadMgr()\r
162 {\r
163 }\r
164 FWL_ERR CFWL_SDAdapterThreadMgr::Start(IFWL_Thread *pThread, FWL_HTHREAD &hThread, FX_BOOL bSuspended)\r
165 {\r
166     return FWL_ERR_Succeeded;\r
167 }\r
168 FWL_ERR CFWL_SDAdapterThreadMgr::Resume(FWL_HTHREAD hThread)\r
169 {\r
170     return FWL_ERR_Succeeded;\r
171 }\r
172 FWL_ERR CFWL_SDAdapterThreadMgr::Suspend(FWL_HTHREAD hThread)\r
173 {\r
174     return FWL_ERR_Succeeded;\r
175 }\r
176 FWL_ERR CFWL_SDAdapterThreadMgr::Kill(FWL_HTHREAD hThread, FX_INT32 iExitCode)\r
177 {\r
178     return FWL_ERR_Succeeded;\r
179 }\r
180 FWL_ERR CFWL_SDAdapterThreadMgr::Stop(FWL_HTHREAD hThread, FX_INT32 iExitCode)\r
181 {\r
182     return FWL_ERR_Succeeded;\r
183 }\r
184 IFWL_Thread* CFWL_SDAdapterThreadMgr::GetCurrentThread()\r
185 {\r
186     return FWL_GetApp();\r
187 }\r