summaryrefslogtreecommitdiff
path: root/xfa/fwl/lightwidget
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/lightwidget')
-rw-r--r--xfa/fwl/lightwidget/cfwl_scrollbar.cpp108
-rw-r--r--xfa/fwl/lightwidget/cfwl_scrollbar.h32
-rw-r--r--xfa/fwl/lightwidget/cfwl_theme.cpp140
-rw-r--r--xfa/fwl/lightwidget/cfwl_theme.h60
-rw-r--r--xfa/fwl/lightwidget/cfwl_tooltip.cpp125
-rw-r--r--xfa/fwl/lightwidget/cfwl_tooltip.h60
-rw-r--r--xfa/fwl/lightwidget/cfwl_widgetdelegate.cpp21
-rw-r--r--xfa/fwl/lightwidget/cfwl_widgetdelegate.h31
8 files changed, 0 insertions, 577 deletions
diff --git a/xfa/fwl/lightwidget/cfwl_scrollbar.cpp b/xfa/fwl/lightwidget/cfwl_scrollbar.cpp
deleted file mode 100644
index eb4276c2d1..0000000000
--- a/xfa/fwl/lightwidget/cfwl_scrollbar.cpp
+++ /dev/null
@@ -1,108 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#include "xfa/fwl/lightwidget/cfwl_scrollbar.h"
-
-#include <memory>
-
-#include "xfa/fwl/basewidget/ifwl_scrollbar.h"
-
-CFWL_ScrollBar* CFWL_ScrollBar::Create() {
- return new CFWL_ScrollBar;
-}
-
-CFWL_ScrollBar::CFWL_ScrollBar() {}
-
-CFWL_ScrollBar::~CFWL_ScrollBar() {}
-
-FWL_Error CFWL_ScrollBar::Initialize(const CFWL_WidgetProperties* pProperties) {
- if (m_pIface)
- return FWL_Error::Indefinite;
- if (pProperties) {
- *m_pProperties = *pProperties;
- }
- std::unique_ptr<IFWL_ScrollBar> pScrollBar(IFWL_ScrollBar::Create(
- m_pProperties->MakeWidgetImpProperties(nullptr), nullptr));
- FWL_Error ret = pScrollBar->Initialize();
- if (ret != FWL_Error::Succeeded) {
- return ret;
- }
- m_pIface = pScrollBar.release();
- CFWL_Widget::Initialize();
- return FWL_Error::Succeeded;
-}
-
-FX_BOOL CFWL_ScrollBar::IsVertical() {
- if (!m_pIface)
- return FALSE;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->IsVertical();
-}
-
-FWL_Error CFWL_ScrollBar::GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax) {
- if (!m_pIface)
- return FWL_Error::Indefinite;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->GetRange(fMin, fMax);
-}
-
-FWL_Error CFWL_ScrollBar::SetRange(FX_FLOAT fMin, FX_FLOAT fMax) {
- if (!m_pIface)
- return FWL_Error::Indefinite;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->SetRange(fMin, fMax);
-}
-
-FX_FLOAT CFWL_ScrollBar::GetPageSize() {
- if (!m_pIface)
- return 0;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->GetPageSize();
-}
-
-FWL_Error CFWL_ScrollBar::SetPageSize(FX_FLOAT fPageSize) {
- if (!m_pIface)
- return FWL_Error::Indefinite;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->SetPageSize(fPageSize);
-}
-
-FX_FLOAT CFWL_ScrollBar::GetStepSize() {
- if (!m_pIface)
- return 0;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->GetStepSize();
-}
-
-FWL_Error CFWL_ScrollBar::SetStepSize(FX_FLOAT fStepSize) {
- if (!m_pIface)
- return FWL_Error::Indefinite;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->SetStepSize(fStepSize);
-}
-
-FX_FLOAT CFWL_ScrollBar::GetPos() {
- if (!m_pIface)
- return -1;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->GetPos();
-}
-
-FWL_Error CFWL_ScrollBar::SetPos(FX_FLOAT fPos) {
- if (!m_pIface)
- return FWL_Error::Indefinite;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->SetPos(fPos);
-}
-
-FX_FLOAT CFWL_ScrollBar::GetTrackPos() {
- if (!m_pIface)
- return -1;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->GetTrackPos();
-}
-
-FWL_Error CFWL_ScrollBar::SetTrackPos(FX_FLOAT fTrackPos) {
- if (!m_pIface)
- return FWL_Error::Indefinite;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->SetTrackPos(fTrackPos);
-}
-
-FX_BOOL CFWL_ScrollBar::DoScroll(uint32_t dwCode, FX_FLOAT fPos) {
- if (!m_pIface)
- return FALSE;
- return static_cast<IFWL_ScrollBar*>(m_pIface)->DoScroll(dwCode, fPos);
-}
diff --git a/xfa/fwl/lightwidget/cfwl_scrollbar.h b/xfa/fwl/lightwidget/cfwl_scrollbar.h
deleted file mode 100644
index fd80e8b8ab..0000000000
--- a/xfa/fwl/lightwidget/cfwl_scrollbar.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_
-#define XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_
-
-#include "xfa/fwl/lightwidget/cfwl_widget.h"
-
-class CFWL_ScrollBar : public CFWL_Widget {
- public:
- static CFWL_ScrollBar* Create();
- FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL);
- FX_BOOL IsVertical();
- FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
- FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
- FX_FLOAT GetPageSize();
- FWL_Error SetPageSize(FX_FLOAT fPageSize);
- FX_FLOAT GetStepSize();
- FWL_Error SetStepSize(FX_FLOAT fStepSize);
- FX_FLOAT GetPos();
- FWL_Error SetPos(FX_FLOAT fPos);
- FX_FLOAT GetTrackPos();
- FWL_Error SetTrackPos(FX_FLOAT fTrackPos);
- FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f);
- CFWL_ScrollBar();
- virtual ~CFWL_ScrollBar();
-};
-
-#endif // XFA_FWL_LIGHTWIDGET_CFWL_SCROLLBAR_H_
diff --git a/xfa/fwl/lightwidget/cfwl_theme.cpp b/xfa/fwl/lightwidget/cfwl_theme.cpp
deleted file mode 100644
index 4824667080..0000000000
--- a/xfa/fwl/lightwidget/cfwl_theme.cpp
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#include "xfa/fwl/lightwidget/cfwl_theme.h"
-
-#include <algorithm>
-
-#include "xfa/fwl/core/cfwl_themebackground.h"
-#include "xfa/fwl/core/cfwl_themepart.h"
-#include "xfa/fwl/core/cfwl_themetext.h"
-#include "xfa/fwl/theme/cfwl_barcodetp.h"
-#include "xfa/fwl/theme/cfwl_carettp.h"
-#include "xfa/fwl/theme/cfwl_checkboxtp.h"
-#include "xfa/fwl/theme/cfwl_comboboxtp.h"
-#include "xfa/fwl/theme/cfwl_datetimepickertp.h"
-#include "xfa/fwl/theme/cfwl_edittp.h"
-#include "xfa/fwl/theme/cfwl_formtp.h"
-#include "xfa/fwl/theme/cfwl_listboxtp.h"
-#include "xfa/fwl/theme/cfwl_monthcalendartp.h"
-#include "xfa/fwl/theme/cfwl_pictureboxtp.h"
-#include "xfa/fwl/theme/cfwl_pushbuttontp.h"
-#include "xfa/fwl/theme/cfwl_scrollbartp.h"
-
-CFWL_Theme::CFWL_Theme() {
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_FormTP));
- m_ThemesArray.push_back(
- std::unique_ptr<CFWL_WidgetTP>(new CFWL_PushButtonTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_CheckBoxTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_ListBoxTP));
- m_ThemesArray.push_back(
- std::unique_ptr<CFWL_WidgetTP>(new CFWL_PictureBoxTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_ScrollBarTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_EditTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_ComboBoxTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_BarcodeTP));
- m_ThemesArray.push_back(
- std::unique_ptr<CFWL_WidgetTP>(new CFWL_DateTimePickerTP));
- m_ThemesArray.push_back(
- std::unique_ptr<CFWL_WidgetTP>(new CFWL_MonthCalendarTP));
- m_ThemesArray.push_back(std::unique_ptr<CFWL_WidgetTP>(new CFWL_CaretTP));
-}
-
-CFWL_Theme::~CFWL_Theme() {}
-
-bool CFWL_Theme::IsValidWidget(IFWL_Widget* pWidget) {
- return !!GetTheme(pWidget);
-}
-
-uint32_t CFWL_Theme::GetThemeID(IFWL_Widget* pWidget) {
- return GetTheme(pWidget)->GetThemeID(pWidget);
-}
-
-uint32_t CFWL_Theme::SetThemeID(IFWL_Widget* pWidget,
- uint32_t dwThemeID,
- FX_BOOL bChildren) {
- uint32_t dwID = 0;
- for (const auto& pTheme : m_ThemesArray) {
- dwID = pTheme->GetThemeID(pWidget);
- pTheme->SetThemeID(pWidget, dwThemeID, FALSE);
- }
- return dwID;
-}
-
-FWL_Error CFWL_Theme::GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) {
- return FWL_Error::Succeeded;
-}
-
-FWL_Error CFWL_Theme::SetThemeMatrix(IFWL_Widget* pWidget,
- const CFX_Matrix& matrix) {
- return FWL_Error::Succeeded;
-}
-
-FX_BOOL CFWL_Theme::DrawBackground(CFWL_ThemeBackground* pParams) {
- return GetTheme(pParams->m_pWidget)->DrawBackground(pParams);
-}
-
-FX_BOOL CFWL_Theme::DrawText(CFWL_ThemeText* pParams) {
- return GetTheme(pParams->m_pWidget)->DrawText(pParams);
-}
-
-void* CFWL_Theme::GetCapacity(CFWL_ThemePart* pThemePart,
- CFWL_WidgetCapacity dwCapacity) {
- return GetTheme(pThemePart->m_pWidget)->GetCapacity(pThemePart, dwCapacity);
-}
-
-FX_BOOL CFWL_Theme::IsCustomizedLayout(IFWL_Widget* pWidget) {
- return GetTheme(pWidget)->IsCustomizedLayout(pWidget);
-}
-
-FWL_Error CFWL_Theme::GetPartRect(CFWL_ThemePart* pThemePart,
- CFX_RectF& rtPart) {
- return GetTheme(pThemePart->m_pWidget)->GetPartRect(pThemePart, rtPart);
-}
-
-FX_BOOL CFWL_Theme::IsInPart(CFWL_ThemePart* pThemePart,
- FX_FLOAT fx,
- FX_FLOAT fy) {
- return GetTheme(pThemePart->m_pWidget)->IsInPart(pThemePart, fx, fy);
-}
-
-FX_BOOL CFWL_Theme::CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) {
- return GetTheme(pParams->m_pWidget)->CalcTextRect(pParams, rect);
-}
-
-FWL_Error CFWL_Theme::Initialize() {
- for (const auto& pTheme : m_ThemesArray)
- pTheme->Initialize();
-
- FWLTHEME_Init();
- return FWL_Error::Succeeded;
-}
-
-FWL_Error CFWL_Theme::Finalize() {
- for (const auto& pTheme : m_ThemesArray)
- pTheme->Finalize();
-
- FWLTHEME_Release();
- return FWL_Error::Succeeded;
-}
-
-FWL_Error CFWL_Theme::SetFont(IFWL_Widget* pWidget,
- const FX_WCHAR* strFont,
- FX_FLOAT fFontSize,
- FX_ARGB rgbFont) {
- for (const auto& pTheme : m_ThemesArray)
- pTheme->SetFont(pWidget, strFont, fFontSize, rgbFont);
-
- return FWL_Error::Succeeded;
-}
-
-CFWL_WidgetTP* CFWL_Theme::GetTheme(IFWL_Widget* pWidget) {
- for (const auto& pTheme : m_ThemesArray) {
- if (pTheme->IsValidWidget(pWidget))
- return pTheme.get();
- }
- return nullptr;
-}
diff --git a/xfa/fwl/lightwidget/cfwl_theme.h b/xfa/fwl/lightwidget/cfwl_theme.h
deleted file mode 100644
index effb31b04e..0000000000
--- a/xfa/fwl/lightwidget/cfwl_theme.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_
-#define XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_
-
-#include <memory>
-#include <vector>
-
-#include "core/fxcrt/include/fx_coordinates.h"
-#include "core/fxcrt/include/fx_system.h"
-#include "core/fxge/include/fx_dib.h"
-#include "xfa/fwl/core/ifwl_themeprovider.h"
-
-class CFWL_WidgetTP;
-class IFWL_Widget;
-class CFWL_ThemePart;
-class CFWL_ThemeText;
-
-class CFWL_Theme final : public IFWL_ThemeProvider {
- public:
- CFWL_Theme();
- ~CFWL_Theme() override;
-
- // IFWL_ThemeProvider:
- bool IsValidWidget(IFWL_Widget* pWidget) override;
- uint32_t GetThemeID(IFWL_Widget* pWidget) override;
- uint32_t SetThemeID(IFWL_Widget* pWidget,
- uint32_t dwThemeID,
- FX_BOOL bChildren = TRUE) override;
- FWL_Error GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override;
- FWL_Error SetThemeMatrix(IFWL_Widget* pWidget,
- const CFX_Matrix& matrix) override;
- FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override;
- FX_BOOL DrawText(CFWL_ThemeText* pParams) override;
- void* GetCapacity(CFWL_ThemePart* pThemePart,
- CFWL_WidgetCapacity dwCapacity) override;
- FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) override;
- FWL_Error GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override;
- FX_BOOL IsInPart(CFWL_ThemePart* pThemePart,
- FX_FLOAT fx,
- FX_FLOAT fy) override;
- FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override;
-
- FWL_Error Initialize();
- FWL_Error Finalize();
- FWL_Error SetFont(IFWL_Widget* pWidget,
- const FX_WCHAR* strFont,
- FX_FLOAT fFontSize,
- FX_ARGB rgbFont);
- CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget);
-
- protected:
- std::vector<std::unique_ptr<CFWL_WidgetTP>> m_ThemesArray;
-};
-
-#endif // XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_
diff --git a/xfa/fwl/lightwidget/cfwl_tooltip.cpp b/xfa/fwl/lightwidget/cfwl_tooltip.cpp
deleted file mode 100644
index 7a9a26cf9e..0000000000
--- a/xfa/fwl/lightwidget/cfwl_tooltip.cpp
+++ /dev/null
@@ -1,125 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#include "xfa/fwl/lightwidget/cfwl_tooltip.h"
-
-#include <memory>
-
-#include "xfa/fwl/core/fwl_formimp.h"
-#include "xfa/fwl/core/fwl_noteimp.h"
-#include "xfa/fwl/core/fwl_widgetimp.h"
-
-CFWL_ToolTip* CFWL_ToolTip::Create() {
- return new CFWL_ToolTip;
-}
-
-FWL_Error CFWL_ToolTip::Initialize(const CFWL_WidgetProperties* pProperties) {
- if (m_pIface)
- return FWL_Error::Indefinite;
- if (pProperties) {
- *m_pProperties = *pProperties;
- }
- std::unique_ptr<IFWL_ToolTip> pToolTip(IFWL_ToolTip::Create(
- m_pProperties->MakeWidgetImpProperties(&m_tooltipData), nullptr));
- FWL_Error ret = pToolTip->Initialize();
- if (ret != FWL_Error::Succeeded) {
- return ret;
- }
- m_pIface = pToolTip.release();
- CFWL_Widget::Initialize();
- return FWL_Error::Succeeded;
-}
-
-void CFWL_ToolTip::GetCaption(CFX_WideString& wsCaption) {
- wsCaption = m_tooltipData.m_wsCaption;
-}
-
-void CFWL_ToolTip::SetCaption(const CFX_WideStringC& wsCaption) {
- m_tooltipData.m_wsCaption = wsCaption;
-}
-
-int32_t CFWL_ToolTip::GetInitialDelay() {
- return m_tooltipData.m_nInitDelayTime;
-}
-
-void CFWL_ToolTip::SetInitialDelay(int32_t nDelayTime) {
- m_tooltipData.m_nInitDelayTime = nDelayTime;
-}
-
-int32_t CFWL_ToolTip::GetAutoPopDelay() {
- return m_tooltipData.m_nAutoPopDelayTime;
-}
-
-void CFWL_ToolTip::SetAutoPopDelay(int32_t nDelayTime) {
- m_tooltipData.m_nAutoPopDelayTime = nDelayTime;
-}
-
-CFX_DIBitmap* CFWL_ToolTip::GetToolTipIcon() {
- return m_tooltipData.m_pBitmap;
-}
-
-void CFWL_ToolTip::SetToolTipIcon(CFX_DIBitmap* pBitmap) {
- m_tooltipData.m_pBitmap = pBitmap;
-}
-
-CFX_SizeF CFWL_ToolTip::GetToolTipIconSize() {
- return m_tooltipData.m_fIconSize;
-}
-
-void CFWL_ToolTip::SetToolTipIconSize(CFX_SizeF fSize) {
- m_tooltipData.m_fIconSize = fSize;
-}
-
-void CFWL_ToolTip::SetAnchor(const CFX_RectF& rtAnchor) {
- static_cast<IFWL_ToolTip*>(m_pIface)->SetAnchor(rtAnchor);
-}
-
-void CFWL_ToolTip::Show() {
- static_cast<IFWL_ToolTip*>(m_pIface)->Show();
-}
-
-void CFWL_ToolTip::Hide() {
- static_cast<IFWL_ToolTip*>(m_pIface)->Hide();
-}
-
-CFWL_ToolTip::CFWL_ToolTip() {}
-
-CFWL_ToolTip::~CFWL_ToolTip() {}
-
-CFWL_ToolTip::CFWL_ToolTipDP::CFWL_ToolTipDP() : m_pBitmap(NULL) {
- m_wsCaption = L"";
- m_nInitDelayTime = 500;
- m_nAutoPopDelayTime = 50000;
- m_fAnchor.Set(0.0, 0.0, 0.0, 0.0);
-}
-
-FWL_Error CFWL_ToolTip::CFWL_ToolTipDP::GetCaption(IFWL_Widget* pWidget,
- CFX_WideString& wsCaption) {
- wsCaption = m_wsCaption;
- return FWL_Error::Succeeded;
-}
-
-int32_t CFWL_ToolTip::CFWL_ToolTipDP::GetInitialDelay(IFWL_Widget* pWidget) {
- return m_nInitDelayTime;
-}
-
-int32_t CFWL_ToolTip::CFWL_ToolTipDP::GetAutoPopDelay(IFWL_Widget* pWidget) {
- return m_nAutoPopDelayTime;
-}
-
-CFX_DIBitmap* CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIcon(
- IFWL_Widget* pWidget) {
- return m_pBitmap;
-}
-
-CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize(
- IFWL_Widget* pWidget) {
- return m_fIconSize;
-}
-
-CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() {
- return m_fAnchor;
-}
diff --git a/xfa/fwl/lightwidget/cfwl_tooltip.h b/xfa/fwl/lightwidget/cfwl_tooltip.h
deleted file mode 100644
index 74f702849c..0000000000
--- a/xfa/fwl/lightwidget/cfwl_tooltip.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FWL_LIGHTWIDGET_CFWL_TOOLTIP_H_
-#define XFA_FWL_LIGHTWIDGET_CFWL_TOOLTIP_H_
-
-#include "xfa/fwl/basewidget/ifwl_tooltip.h"
-#include "xfa/fwl/lightwidget/cfwl_widget.h"
-
-class CFWL_ToolTip : public CFWL_Widget {
- public:
- static CFWL_ToolTip* Create();
-
- CFWL_ToolTip();
- virtual ~CFWL_ToolTip();
-
- FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr);
-
- void GetCaption(CFX_WideString& wsCaption);
- void SetCaption(const CFX_WideStringC& wsCaption);
-
- int32_t GetInitialDelay();
- void SetInitialDelay(int32_t nDelayTime);
-
- int32_t GetAutoPopDelay();
- void SetAutoPopDelay(int32_t nDelayTime);
-
- CFX_DIBitmap* GetToolTipIcon();
- void SetToolTipIcon(CFX_DIBitmap* pBitmap);
- CFX_SizeF GetToolTipIconSize();
- void SetToolTipIconSize(CFX_SizeF fSize);
-
- void SetAnchor(const CFX_RectF& rtAnchor);
- void Show();
- void Hide();
-
- protected:
- class CFWL_ToolTipDP : public IFWL_ToolTipDP {
- public:
- CFWL_ToolTipDP();
- FWL_Error GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption);
- int32_t GetInitialDelay(IFWL_Widget* pWidget);
- int32_t GetAutoPopDelay(IFWL_Widget* pWidget);
- CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget);
- CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget);
- CFX_RectF GetAnchor();
- CFX_WideString m_wsCaption;
- int32_t m_nInitDelayTime;
- int32_t m_nAutoPopDelayTime;
- CFX_DIBitmap* m_pBitmap;
- CFX_SizeF m_fIconSize;
- CFX_RectF m_fAnchor;
- };
- CFWL_ToolTipDP m_tooltipData;
-};
-
-#endif // XFA_FWL_LIGHTWIDGET_CFWL_TOOLTIP_H_
diff --git a/xfa/fwl/lightwidget/cfwl_widgetdelegate.cpp b/xfa/fwl/lightwidget/cfwl_widgetdelegate.cpp
deleted file mode 100644
index fcb7232622..0000000000
--- a/xfa/fwl/lightwidget/cfwl_widgetdelegate.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#include "xfa/fwl/lightwidget/cfwl_widgetdelegate.h"
-
-#include "xfa/fwl/core/cfwl_event.h"
-#include "xfa/fwl/core/cfwl_message.h"
-
-CFWL_WidgetDelegate::CFWL_WidgetDelegate() {}
-
-CFWL_WidgetDelegate::~CFWL_WidgetDelegate() {}
-
-void CFWL_WidgetDelegate::OnProcessMessage(CFWL_Message* pMessage) {}
-
-void CFWL_WidgetDelegate::OnProcessEvent(CFWL_Event* pEvent) {}
-
-void CFWL_WidgetDelegate::OnDrawWidget(CFX_Graphics* pGraphics,
- const CFX_Matrix* pMatrix) {}
diff --git a/xfa/fwl/lightwidget/cfwl_widgetdelegate.h b/xfa/fwl/lightwidget/cfwl_widgetdelegate.h
deleted file mode 100644
index 1f5cdab8f4..0000000000
--- a/xfa/fwl/lightwidget/cfwl_widgetdelegate.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FWL_LIGHTWIDGET_CFWL_WIDGETDELEGATE_H_
-#define XFA_FWL_LIGHTWIDGET_CFWL_WIDGETDELEGATE_H_
-
-#include <stdint.h>
-
-#include "xfa/fwl/core/fwl_error.h"
-#include "xfa/fwl/core/ifwl_widgetdelegate.h"
-
-class CFWL_Event;
-class CFWL_Message;
-class CFX_Graphics;
-class CFX_Matrix;
-
-class CFWL_WidgetDelegate : public IFWL_WidgetDelegate {
- public:
- CFWL_WidgetDelegate();
- virtual ~CFWL_WidgetDelegate();
-
- void OnProcessMessage(CFWL_Message* pMessage) override;
- void OnProcessEvent(CFWL_Event* pEvent) override;
- void OnDrawWidget(CFX_Graphics* pGraphics,
- const CFX_Matrix* pMatrix = nullptr) override;
-};
-
-#endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGETDELEGATE_H_