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

Unified Diff: xfa/fwl/basewidget/fwl_editimp.cpp

Issue 1946213003: Remove CLASSHASH defines in favour of an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: xfa/fwl/basewidget/fwl_editimp.cpp
diff --git a/xfa/fwl/basewidget/fwl_editimp.cpp b/xfa/fwl/basewidget/fwl_editimp.cpp
index 8b4dd39321cd95cbe771494d31d6f5c5e0a2b1e3..a70c3129985c2bbb40638bceb0cd3e1a6d019d25 100644
--- a/xfa/fwl/basewidget/fwl_editimp.cpp
+++ b/xfa/fwl/basewidget/fwl_editimp.cpp
@@ -231,9 +231,7 @@ FWL_ERR CFWL_EditImp::GetClassName(CFX_WideString& wsClass) const {
wsClass = FWL_CLASS_Edit;
return FWL_ERR_Succeeded;
}
-uint32_t CFWL_EditImp::GetClassID() const {
- return FWL_CLASSHASH_Edit;
-}
+
FWL_ERR CFWL_EditImp::Initialize() {
if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded)
return FWL_ERR_Indefinite;
@@ -1456,7 +1454,7 @@ void CFWL_EditImp::Layout() {
m_rtEngine.Deflate(pUIMargin->left, pUIMargin->top, pUIMargin->width,
pUIMargin->height);
}
- } else if (m_pOuter->GetClassID() == FWL_CLASSHASH_DateTimePicker) {
+ } else if (m_pOuter->GetClassID() == FWL_Type::DateTimePicker) {
CFWL_ThemePart part;
part.m_pWidget = m_pOuter;
CFX_RectF* pUIMargin =

Powered by Google App Engine
This is Rietveld 408576698