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

Side by Side Diff: xfa/fwl/basewidget/fwl_tooltipctrlimp.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/basewidget/fwl_tooltipctrlimp.h" 7 #include "xfa/fwl/basewidget/fwl_tooltipctrlimp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/basewidget/ifwl_tooltip.h" 10 #include "xfa/fwl/basewidget/ifwl_tooltip.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 CFWL_ToolTipImp::~CFWL_ToolTipImp() { 55 CFWL_ToolTipImp::~CFWL_ToolTipImp() {
56 if (m_pTimer) { 56 if (m_pTimer) {
57 delete m_pTimer; 57 delete m_pTimer;
58 m_pTimer = NULL; 58 m_pTimer = NULL;
59 } 59 }
60 } 60 }
61 FWL_ERR CFWL_ToolTipImp::GetClassName(CFX_WideString& wsClass) const { 61 FWL_ERR CFWL_ToolTipImp::GetClassName(CFX_WideString& wsClass) const {
62 wsClass = FWL_CLASS_ToolTip; 62 wsClass = FWL_CLASS_ToolTip;
63 return FWL_ERR_Succeeded; 63 return FWL_ERR_Succeeded;
64 } 64 }
65 uint32_t CFWL_ToolTipImp::GetClassID() const { 65
66 return FWL_CLASSHASH_ToolTip;
67 }
68 FWL_ERR CFWL_ToolTipImp::Initialize() { 66 FWL_ERR CFWL_ToolTipImp::Initialize() {
69 m_pProperties->m_dwStyles |= FWL_WGTSTYLE_Popup; 67 m_pProperties->m_dwStyles |= FWL_WGTSTYLE_Popup;
70 m_pProperties->m_dwStyles &= ~FWL_WGTSTYLE_Child; 68 m_pProperties->m_dwStyles &= ~FWL_WGTSTYLE_Child;
71 if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded) 69 if (CFWL_WidgetImp::Initialize() != FWL_ERR_Succeeded)
72 return FWL_ERR_Indefinite; 70 return FWL_ERR_Indefinite;
73 m_pDelegate = new CFWL_ToolTipImpDelegate(this); 71 m_pDelegate = new CFWL_ToolTipImpDelegate(this);
74 return FWL_ERR_Succeeded; 72 return FWL_ERR_Succeeded;
75 } 73 }
76 FWL_ERR CFWL_ToolTipImp::Finalize() { 74 FWL_ERR CFWL_ToolTipImp::Finalize() {
77 delete m_pDelegate; 75 delete m_pDelegate;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 int32_t CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { 285 int32_t CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {
288 return CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); 286 return CFWL_WidgetImpDelegate::OnProcessMessage(pMessage);
289 } 287 }
290 FWL_ERR CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) { 288 FWL_ERR CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {
291 return FWL_ERR_Succeeded; 289 return FWL_ERR_Succeeded;
292 } 290 }
293 FWL_ERR CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, 291 FWL_ERR CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
294 const CFX_Matrix* pMatrix) { 292 const CFX_Matrix* pMatrix) {
295 return m_pOwner->DrawWidget(pGraphics, pMatrix); 293 return m_pOwner->DrawWidget(pGraphics, pMatrix);
296 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698