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

Side by Side Diff: xfa/src/fwl/basewidget/fwl_tooltipctrlimp.cpp

Issue 1770953004: Remove xfa/src/fwl/src and move code up a level. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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 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/src/fwl/src/basewidget/fwl_tooltipctrlimp.h" 7 #include "xfa/src/fwl/basewidget/fwl_tooltipctrlimp.h"
8 8
9 #include "xfa/include/fwl/basewidget/fwl_tooltipctrl.h" 9 #include "xfa/include/fwl/basewidget/fwl_tooltipctrl.h"
10 #include "xfa/include/fwl/core/fwl_theme.h" 10 #include "xfa/include/fwl/core/fwl_theme.h"
11 #include "xfa/src/fdp/include/fde_tto.h" 11 #include "xfa/src/fdp/include/fde_tto.h"
12 #include "xfa/src/fwl/src/core/fwl_formimp.h" 12 #include "xfa/src/fwl/core/fwl_formimp.h"
13 #include "xfa/src/fwl/src/core/fwl_noteimp.h" 13 #include "xfa/src/fwl/core/fwl_noteimp.h"
14 #include "xfa/src/fwl/src/core/fwl_panelimp.h" 14 #include "xfa/src/fwl/core/fwl_panelimp.h"
15 #include "xfa/src/fwl/src/core/fwl_targetimp.h" 15 #include "xfa/src/fwl/core/fwl_targetimp.h"
16 #include "xfa/src/fwl/src/core/fwl_widgetimp.h" 16 #include "xfa/src/fwl/core/fwl_widgetimp.h"
17 17
18 // static 18 // static
19 IFWL_ToolTip* IFWL_ToolTip::Create(const CFWL_WidgetImpProperties& properties, 19 IFWL_ToolTip* IFWL_ToolTip::Create(const CFWL_WidgetImpProperties& properties,
20 IFWL_Widget* pOuter) { 20 IFWL_Widget* pOuter) {
21 IFWL_ToolTip* pToolTip = new IFWL_ToolTip; 21 IFWL_ToolTip* pToolTip = new IFWL_ToolTip;
22 CFWL_ToolTipImp* pToolTipImpl = new CFWL_ToolTipImp(properties, pOuter); 22 CFWL_ToolTipImp* pToolTipImpl = new CFWL_ToolTipImp(properties, pOuter);
23 pToolTip->SetImpl(pToolTipImpl); 23 pToolTip->SetImpl(pToolTipImpl);
24 pToolTipImpl->SetInterface(pToolTip); 24 pToolTipImpl->SetInterface(pToolTip);
25 return pToolTip; 25 return pToolTip;
26 } 26 }
27 FWL_ERR IFWL_ToolTip::SetAnchor(const CFX_RectF& rtAnchor) { 27 FWL_ERR IFWL_ToolTip::SetAnchor(const CFX_RectF& rtAnchor) {
28 return static_cast<CFWL_ToolTipImp*>(GetImpl())->SetAnchor(rtAnchor); 28 return static_cast<CFWL_ToolTipImp*>(GetImpl())->SetAnchor(rtAnchor);
29 } 29 }
30 FWL_ERR IFWL_ToolTip::Show() { 30 FWL_ERR IFWL_ToolTip::Show() {
31 return static_cast<CFWL_ToolTipImp*>(GetImpl())->Show(); 31 return static_cast<CFWL_ToolTipImp*>(GetImpl())->Show();
32 } 32 }
33 FWL_ERR IFWL_ToolTip::Hide() { 33 FWL_ERR IFWL_ToolTip::Hide() {
34 return static_cast<CFWL_ToolTipImp*>(GetImpl())->Hide(); 34 return static_cast<CFWL_ToolTipImp*>(GetImpl())->Hide();
35 } 35 }
36 IFWL_ToolTip::IFWL_ToolTip() { 36 IFWL_ToolTip::IFWL_ToolTip() {}
37 }
38 CFWL_ToolTipImp::CFWL_ToolTipImp(const CFWL_WidgetImpProperties& properties, 37 CFWL_ToolTipImp::CFWL_ToolTipImp(const CFWL_WidgetImpProperties& properties,
39 IFWL_Widget* pOuter) 38 IFWL_Widget* pOuter)
40 : CFWL_FormImp(properties, pOuter), 39 : CFWL_FormImp(properties, pOuter),
41 m_bBtnDown(FALSE), 40 m_bBtnDown(FALSE),
42 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), 41 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine),
43 m_iTTOAlign(FDE_TTOALIGNMENT_Center), 42 m_iTTOAlign(FDE_TTOALIGNMENT_Center),
44 m_hTimerShow(NULL), 43 m_hTimerShow(NULL),
45 m_hTimerHide(NULL), 44 m_hTimerHide(NULL),
46 m_pTimer(NULL) { 45 m_pTimer(NULL) {
47 m_rtClient.Set(0, 0, 0, 0); 46 m_rtClient.Set(0, 0, 0, 0);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 int32_t CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { 284 int32_t CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {
286 return CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); 285 return CFWL_WidgetImpDelegate::OnProcessMessage(pMessage);
287 } 286 }
288 FWL_ERR CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) { 287 FWL_ERR CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {
289 return FWL_ERR_Succeeded; 288 return FWL_ERR_Succeeded;
290 } 289 }
291 FWL_ERR CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, 290 FWL_ERR CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
292 const CFX_Matrix* pMatrix) { 291 const CFX_Matrix* pMatrix) {
293 return m_pOwner->DrawWidget(pGraphics, pMatrix); 292 return m_pOwner->DrawWidget(pGraphics, pMatrix);
294 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698