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

Side by Side Diff: xfa/fwl/core/ifwl_widgetmgr.h

Issue 2004213002: Remove IWFL_WidgetMgr in favor of CFWL_WidgetMgr (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Explicit ctor Created 4 years, 7 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/fwl/core/ifwl_app.h ('k') | xfa/fwl/lightwidget/cfwl_widget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef XFA_FWL_CORE_IFWL_WIDGETMGR_H_
8 #define XFA_FWL_CORE_IFWL_WIDGETMGR_H_
9
10 #include "core/fxcrt/include/fx_system.h"
11 #include "xfa/fwl/core/fwl_error.h"
12 #include "core/fxcrt/include/fx_coordinates.h"
13
14 class CFX_WideString;
15 class CFX_Matrix;
16 class IFWL_Widget;
17
18 enum FWL_WGTRELATION {
19 FWL_WGTRELATION_Parent = 0,
20 FWL_WGTRELATION_Owner,
21 FWL_WGTRELATION_FirstSibling,
22 FWL_WGTRELATION_PriorSibling,
23 FWL_WGTRELATION_NextSibling,
24 FWL_WGTRELATION_LastSibling,
25 FWL_WGTRELATION_FirstChild,
26 FWL_WGTRELATION_LastChild,
27 FWL_WGTRELATION_SystemForm
28 };
29
30 class IFWL_WidgetMgr {
31 public:
32 virtual ~IFWL_WidgetMgr() {}
33 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0;
34 virtual IFWL_Widget* GetWidget(int32_t nIndex,
35 IFWL_Widget* pParent = NULL) = 0;
36 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget,
37 FWL_WGTRELATION eRelation) = 0;
38 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0;
39 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0;
40 virtual FWL_Error RepaintWidget(IFWL_Widget* pWidget,
41 const CFX_RectF* pRect = NULL) = 0;
42 virtual uint32_t GetCapability() = 0;
43 };
44
45 IFWL_WidgetMgr* FWL_GetWidgetMgr();
46
47 #endif // XFA_FWL_CORE_IFWL_WIDGETMGR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_app.h ('k') | xfa/fwl/lightwidget/cfwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698