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

Unified Diff: xfa/fwl/basewidget/ifwl_listbox.h

Issue 1827923002: Move xfa/include/fwl/{core,basewidget} to xfa/fwl/{core,basewidget}. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/basewidget/ifwl_edit.h ('k') | xfa/fwl/basewidget/ifwl_monthcalendar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/basewidget/ifwl_listbox.h
diff --git a/xfa/include/fwl/basewidget/fwl_listbox.h b/xfa/fwl/basewidget/ifwl_listbox.h
similarity index 94%
rename from xfa/include/fwl/basewidget/fwl_listbox.h
rename to xfa/fwl/basewidget/ifwl_listbox.h
index 4cf5c654d40891f8f9cfc5d2b5d8f8d3c19494b0..7bec4edd18cda26bb518865107cc444c852cc4bf 100644
--- a/xfa/include/fwl/basewidget/fwl_listbox.h
+++ b/xfa/fwl/basewidget/ifwl_listbox.h
@@ -4,13 +4,13 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
-#define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
+#ifndef XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
+#define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
-#include "xfa/include/fwl/core/fwl_note.h"
-#include "xfa/include/fwl/core/fwl_widget.h"
-
-class IFWL_ListBoxDP;
+#include "xfa/fwl/core/ifwl_widget.h"
+#include "xfa/fwl/core/ifwl_dataprovider.h"
+#include "xfa/fwl/core/cfwl_event.h"
+#include "xfa/fwl/core/cfwl_widgetimpproperties.h"
#define FWL_CLASS_ListBox L"FWL_LISTBOX"
#define FWL_CLASSHASH_ListBox 1777358317
@@ -51,6 +51,16 @@ class IFWL_ListBoxDP;
#define FWL_EVTHASH_LTB_SelChanged 1701781688
#define FWL_EVTHASH_LTB_DrawItem 1050853991
+typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM;
+
+class CFX_DIBitmap;
+class IFWL_ListBoxDP;
+
+struct FWL_ListBoxItemData {
+ IFWL_ListBoxDP* pDataProvider;
+ int32_t iIndex;
+};
+
BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, FWL_EVTHASH_LTB_SelChanged)
CFX_Int32Array iarraySels;
END_FWL_EVENT_DEF
@@ -62,12 +72,6 @@ int32_t m_index;
CFX_RectF m_rect;
END_FWL_EVENT_DEF
-typedef struct FWL_HLISTITEM_ { void* pData; } * FWL_HLISTITEM;
-struct FWL_ListBoxItemData {
- IFWL_ListBoxDP* pDataProvider;
- int32_t iIndex;
-};
-
class IFWL_ListBoxDP : public IFWL_DataProvider {
public:
virtual int32_t CountItems(IFWL_Widget* pWidget) = 0;
@@ -108,11 +112,13 @@ class IFWL_ListBoxDP : public IFWL_DataProvider {
FWL_HLISTITEM hItem,
FX_DWORD dwCheckState) = 0;
};
+
class IFWL_ListBoxCompare {
public:
virtual ~IFWL_ListBoxCompare() {}
virtual int32_t Compare(FWL_HLISTITEM hLeft, FWL_HLISTITEM hRight) = 0;
};
+
class IFWL_ListBox : public IFWL_Widget {
public:
static IFWL_ListBox* Create(const CFWL_WidgetImpProperties& properties,
@@ -133,4 +139,4 @@ class IFWL_ListBox : public IFWL_Widget {
IFWL_ListBox();
};
-#endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
+#endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
« no previous file with comments | « xfa/fwl/basewidget/ifwl_edit.h ('k') | xfa/fwl/basewidget/ifwl_monthcalendar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698