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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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_widget.h ('k') | xfa/include/fwl/lightwidget/app.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_WIDGETMGR_H 7 #ifndef _FWL_WIDGETMGR_H
8 #define _FWL_WIDGETMGR_H 8 #define _FWL_WIDGETMGR_H
9 class IFWL_Widget; 9 class IFWL_Widget;
10 class IFWL_WidgetMgr; 10 class IFWL_WidgetMgr;
11 class IFWL_WidgetMgrDelegate; 11 class IFWL_WidgetMgrDelegate;
12 enum FWL_WGTRELATION { 12 enum FWL_WGTRELATION {
13 FWL_WGTRELATION_Parent = 0, 13 FWL_WGTRELATION_Parent = 0,
14 FWL_WGTRELATION_Owner, 14 FWL_WGTRELATION_Owner,
15 FWL_WGTRELATION_FirstSibling, 15 FWL_WGTRELATION_FirstSibling,
16 FWL_WGTRELATION_PriorSibling, 16 FWL_WGTRELATION_PriorSibling,
17 FWL_WGTRELATION_NextSibling, 17 FWL_WGTRELATION_NextSibling,
18 FWL_WGTRELATION_LastSibling, 18 FWL_WGTRELATION_LastSibling,
19 FWL_WGTRELATION_FirstChild, 19 FWL_WGTRELATION_FirstChild,
20 FWL_WGTRELATION_LastChild, 20 FWL_WGTRELATION_LastChild,
21 FWL_WGTRELATION_SystemForm 21 FWL_WGTRELATION_SystemForm
22 }; 22 };
23 class IFWL_WidgetMgr 23 class IFWL_WidgetMgr
24 { 24 {
25 public: 25 public:
26 virtual FX_INT32» » CountWidgets(IFWL_Widget *pParent = NULL) = 0; 26 virtual int32_t» » CountWidgets(IFWL_Widget *pParent = NULL) = 0;
27 virtual IFWL_Widget*» GetWidget(FX_INT32 nIndex, IFWL_Widget *pParent = NULL) = 0; 27 virtual IFWL_Widget*» GetWidget(int32_t nIndex, IFWL_Widget *pParent = NULL) = 0;
28 virtual IFWL_Widget* GetWidget(IFWL_Widget *pWidget, FWL_WGTRELATION eRelation) = 0; 28 virtual IFWL_Widget* GetWidget(IFWL_Widget *pWidget, FWL_WGTRELATION eRelation) = 0;
29 virtual FX_INT32» » GetWidgetIndex(IFWL_Widget *pWidget) = 0; 29 virtual int32_t» » GetWidgetIndex(IFWL_Widget *pWidget) = 0;
30 virtual FX_BOOL» » » SetWidgetIndex(IFWL_Widget *pWidget, FX_ INT32 nIndex) = 0; 30 virtual FX_BOOL» » » SetWidgetIndex(IFWL_Widget *pWidget, int 32_t nIndex) = 0;
31 virtual FX_BOOL IsWidget(FX_LPVOID pObj) = 0; 31 virtual FX_BOOL IsWidget(FX_LPVOID pObj) = 0;
32 virtual FWL_ERR RepaintWidget(IFWL_Widget *pWidget, cons t CFX_RectF *pRect = NULL) = 0; 32 virtual FWL_ERR RepaintWidget(IFWL_Widget *pWidget, cons t CFX_RectF *pRect = NULL) = 0;
33 virtual FX_DWORD GetCapability() = 0; 33 virtual FX_DWORD GetCapability() = 0;
34 }; 34 };
35 IFWL_WidgetMgr* FWL_GetWidgetMgr(); 35 IFWL_WidgetMgr* FWL_GetWidgetMgr();
36 FX_BOOL FWL_WidgetIsChild(IFWL_Widget *parent, IFWL_Widget *find); 36 FX_BOOL FWL_WidgetIsChild(IFWL_Widget *parent, IFWL_Widget *find);
37 #define FWL_WGTMGR_DisableThread 0x00000001 37 #define FWL_WGTMGR_DisableThread 0x00000001
38 #define FWL_WGTMGR_DisableForm 0x00000002 38 #define FWL_WGTMGR_DisableForm 0x00000002
39 class IFWL_WidgetMgrDelegate 39 class IFWL_WidgetMgrDelegate
40 { 40 {
41 public: 41 public:
42 virtual FWL_ERR OnSetCapability(FX_DWORD dwCapability = FWL_WGTM GR_DisableThread) = 0; 42 virtual FWL_ERR OnSetCapability(FX_DWORD dwCapability = FWL_WGTM GR_DisableThread) = 0;
43 virtual FX_INT32 OnProcessMessageToForm(CFWL_Message *pMessage) = 0; 43 virtual int32_t OnProcessMessageToForm(CFWL_Message *pMessage) = 0;
44 virtual FWL_ERR OnDrawWidget(IFWL_Widget *pWidget, CFX_Graphics *pGraph ics, const CFX_Matrix *pMatrix = NULL) = 0; 44 virtual FWL_ERR OnDrawWidget(IFWL_Widget *pWidget, CFX_Graphics *pGraph ics, const CFX_Matrix *pMatrix = NULL) = 0;
45 }; 45 };
46 FWL_ERR FWL_WidgetMgrSnapshot(IFWL_Widget *pWidget, const CFX_WideString *saveFi le, const CFX_Matrix *pMatrix = NULL); 46 FWL_ERR FWL_WidgetMgrSnapshot(IFWL_Widget *pWidget, const CFX_WideString *saveFi le, const CFX_Matrix *pMatrix = NULL);
47 #endif 47 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_widget.h ('k') | xfa/include/fwl/lightwidget/app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698