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

Side by Side Diff: xfa/include/fwl/core/fwl_widgetmgr.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_thread.h ('k') | xfa/include/fwl/fwl.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_WIDGETMGR_H_ 7 #ifndef XFA_INCLUDE_FWL_CORE_FWL_WIDGETMGR_H_
8 #define XFA_INCLUDE_FWL_CORE_FWL_WIDGETMGR_H_ 8 #define XFA_INCLUDE_FWL_CORE_FWL_WIDGETMGR_H_
9 9
10 #include "xfa/include/fwl/core/fwl_note.h"
11
10 class IFWL_Widget; 12 class IFWL_Widget;
11 class IFWL_WidgetMgr; 13
12 class IFWL_WidgetMgrDelegate; 14 #define FWL_WGTMGR_DisableThread 0x00000001
15 #define FWL_WGTMGR_DisableForm 0x00000002
16
13 enum FWL_WGTRELATION { 17 enum FWL_WGTRELATION {
14 FWL_WGTRELATION_Parent = 0, 18 FWL_WGTRELATION_Parent = 0,
15 FWL_WGTRELATION_Owner, 19 FWL_WGTRELATION_Owner,
16 FWL_WGTRELATION_FirstSibling, 20 FWL_WGTRELATION_FirstSibling,
17 FWL_WGTRELATION_PriorSibling, 21 FWL_WGTRELATION_PriorSibling,
18 FWL_WGTRELATION_NextSibling, 22 FWL_WGTRELATION_NextSibling,
19 FWL_WGTRELATION_LastSibling, 23 FWL_WGTRELATION_LastSibling,
20 FWL_WGTRELATION_FirstChild, 24 FWL_WGTRELATION_FirstChild,
21 FWL_WGTRELATION_LastChild, 25 FWL_WGTRELATION_LastChild,
22 FWL_WGTRELATION_SystemForm 26 FWL_WGTRELATION_SystemForm
23 }; 27 };
28
24 class IFWL_WidgetMgr { 29 class IFWL_WidgetMgr {
25 public: 30 public:
26 virtual ~IFWL_WidgetMgr() {} 31 virtual ~IFWL_WidgetMgr() {}
27 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; 32 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0;
28 virtual IFWL_Widget* GetWidget(int32_t nIndex, 33 virtual IFWL_Widget* GetWidget(int32_t nIndex,
29 IFWL_Widget* pParent = NULL) = 0; 34 IFWL_Widget* pParent = NULL) = 0;
30 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, 35 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget,
31 FWL_WGTRELATION eRelation) = 0; 36 FWL_WGTRELATION eRelation) = 0;
32 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; 37 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0;
33 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; 38 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0;
34 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget, 39 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget,
35 const CFX_RectF* pRect = NULL) = 0; 40 const CFX_RectF* pRect = NULL) = 0;
36 virtual FX_DWORD GetCapability() = 0; 41 virtual FX_DWORD GetCapability() = 0;
37 }; 42 };
38 IFWL_WidgetMgr* FWL_GetWidgetMgr(); 43 IFWL_WidgetMgr* FWL_GetWidgetMgr();
39 FX_BOOL FWL_WidgetIsChild(IFWL_Widget* parent, IFWL_Widget* find); 44 FX_BOOL FWL_WidgetIsChild(IFWL_Widget* parent, IFWL_Widget* find);
40 #define FWL_WGTMGR_DisableThread 0x00000001 45
41 #define FWL_WGTMGR_DisableForm 0x00000002
42 class IFWL_WidgetMgrDelegate { 46 class IFWL_WidgetMgrDelegate {
43 public: 47 public:
44 virtual ~IFWL_WidgetMgrDelegate() {} 48 virtual ~IFWL_WidgetMgrDelegate() {}
45 virtual FWL_ERR OnSetCapability( 49 virtual FWL_ERR OnSetCapability(
46 FX_DWORD dwCapability = FWL_WGTMGR_DisableThread) = 0; 50 FX_DWORD dwCapability = FWL_WGTMGR_DisableThread) = 0;
47 virtual int32_t OnProcessMessageToForm(CFWL_Message* pMessage) = 0; 51 virtual int32_t OnProcessMessageToForm(CFWL_Message* pMessage) = 0;
48 virtual FWL_ERR OnDrawWidget(IFWL_Widget* pWidget, 52 virtual FWL_ERR OnDrawWidget(IFWL_Widget* pWidget,
49 CFX_Graphics* pGraphics, 53 CFX_Graphics* pGraphics,
50 const CFX_Matrix* pMatrix = NULL) = 0; 54 const CFX_Matrix* pMatrix = NULL) = 0;
51 }; 55 };
52 FWL_ERR FWL_WidgetMgrSnapshot(IFWL_Widget* pWidget, 56 FWL_ERR FWL_WidgetMgrSnapshot(IFWL_Widget* pWidget,
53 const CFX_WideString* saveFile, 57 const CFX_WideString* saveFile,
54 const CFX_Matrix* pMatrix = NULL); 58 const CFX_Matrix* pMatrix = NULL);
55 59
56 #endif // XFA_INCLUDE_FWL_CORE_FWL_WIDGETMGR_H_ 60 #endif // XFA_INCLUDE_FWL_CORE_FWL_WIDGETMGR_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_thread.h ('k') | xfa/include/fwl/fwl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698