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

Side by Side Diff: xfa/fwl/core/fwl_formimp.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 unified diff | Download patch
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 #include "xfa/fwl/core/fwl_formimp.h" 7 #include "xfa/fwl/core/fwl_formimp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 CFWL_FormImp::~CFWL_FormImp() { 97 CFWL_FormImp::~CFWL_FormImp() {
98 RemoveSysButtons(); 98 RemoveSysButtons();
99 delete m_pNoteLoop; 99 delete m_pNoteLoop;
100 } 100 }
101 101
102 FWL_Error CFWL_FormImp::GetClassName(CFX_WideString& wsClass) const { 102 FWL_Error CFWL_FormImp::GetClassName(CFX_WideString& wsClass) const {
103 wsClass = FWL_CLASS_Form; 103 wsClass = FWL_CLASS_Form;
104 return FWL_Error::Succeeded; 104 return FWL_Error::Succeeded;
105 } 105 }
106 106
107 uint32_t CFWL_FormImp::GetClassID() const { 107 FWL_Type CFWL_FormImp::GetClassID() const {
108 return FWL_CLASSHASH_Form; 108 return FWL_Type::Form;
109 } 109 }
110 110
111 FX_BOOL CFWL_FormImp::IsInstance(const CFX_WideStringC& wsClass) const { 111 FX_BOOL CFWL_FormImp::IsInstance(const CFX_WideStringC& wsClass) const {
112 if (wsClass == CFX_WideStringC(FWL_CLASS_Form)) 112 if (wsClass == CFX_WideStringC(FWL_CLASS_Form))
113 return TRUE; 113 return TRUE;
114 return CFWL_WidgetImp::IsInstance(wsClass); 114 return CFWL_WidgetImp::IsInstance(wsClass);
115 } 115 }
116 116
117 FWL_Error CFWL_FormImp::Initialize() { 117 FWL_Error CFWL_FormImp::Initialize() {
118 if (CFWL_WidgetImp::Initialize() != FWL_Error::Succeeded) 118 if (CFWL_WidgetImp::Initialize() != FWL_Error::Succeeded)
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 } 1122 }
1123 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) { 1123 void CFWL_FormImpDelegate::OnWindowMove(CFWL_MsgWindowMove* pMsg) {
1124 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx; 1124 m_pOwner->m_pProperties->m_rtWidget.left = pMsg->m_fx;
1125 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy; 1125 m_pOwner->m_pProperties->m_rtWidget.top = pMsg->m_fy;
1126 } 1126 }
1127 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) { 1127 void CFWL_FormImpDelegate::OnClose(CFWL_MsgClose* pMsg) {
1128 CFWL_EvtClose eClose; 1128 CFWL_EvtClose eClose;
1129 eClose.m_pSrcTarget = m_pOwner->m_pInterface; 1129 eClose.m_pSrcTarget = m_pOwner->m_pInterface;
1130 m_pOwner->DispatchEvent(&eClose); 1130 m_pOwner->DispatchEvent(&eClose);
1131 } 1131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698