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

Unified Diff: xfa/fwl/lightwidget/cfwl_scrollbar.cpp

Issue 1834323003: Move xfa/include/fwl/{theme,lightwidget} to xfa/fwl (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 side-by-side diff with in-line comments
Download patch
Index: xfa/fwl/lightwidget/cfwl_scrollbar.cpp
diff --git a/xfa/fwl/lightwidget/scrollbar.cpp b/xfa/fwl/lightwidget/cfwl_scrollbar.cpp
similarity index 97%
rename from xfa/fwl/lightwidget/scrollbar.cpp
rename to xfa/fwl/lightwidget/cfwl_scrollbar.cpp
index 62f2ffd1e54338a446f05d09647f9d73e3b8b940..0c02314733018dde770a70d3780fc69d5781171e 100644
--- a/xfa/fwl/lightwidget/scrollbar.cpp
+++ b/xfa/fwl/lightwidget/cfwl_scrollbar.cpp
@@ -4,7 +4,7 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "xfa/include/fwl/lightwidget/scrollbar.h"
+#include "xfa/fwl/lightwidget/cfwl_scrollbar.h"
#include <memory>
@@ -13,6 +13,11 @@
CFWL_ScrollBar* CFWL_ScrollBar::Create() {
return new CFWL_ScrollBar;
}
+
+CFWL_ScrollBar::CFWL_ScrollBar() {}
+
+CFWL_ScrollBar::~CFWL_ScrollBar() {}
+
FWL_ERR CFWL_ScrollBar::Initialize(const CFWL_WidgetProperties* pProperties) {
if (m_pIface)
return FWL_ERR_Indefinite;
@@ -29,65 +34,75 @@ FWL_ERR CFWL_ScrollBar::Initialize(const CFWL_WidgetProperties* pProperties) {
CFWL_Widget::Initialize();
return FWL_ERR_Succeeded;
}
+
FX_BOOL CFWL_ScrollBar::IsVertical() {
if (!m_pIface)
return FALSE;
return static_cast<IFWL_ScrollBar*>(m_pIface)->IsVertical();
}
+
FWL_ERR CFWL_ScrollBar::GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax) {
if (!m_pIface)
return FWL_ERR_Indefinite;
return static_cast<IFWL_ScrollBar*>(m_pIface)->GetRange(fMin, fMax);
}
+
FWL_ERR CFWL_ScrollBar::SetRange(FX_FLOAT fMin, FX_FLOAT fMax) {
if (!m_pIface)
return FWL_ERR_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_ERR CFWL_ScrollBar::SetPageSize(FX_FLOAT fPageSize) {
if (!m_pIface)
return FWL_ERR_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_ERR CFWL_ScrollBar::SetStepSize(FX_FLOAT fStepSize) {
if (!m_pIface)
return FWL_ERR_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_ERR CFWL_ScrollBar::SetPos(FX_FLOAT fPos) {
if (!m_pIface)
return FWL_ERR_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_ERR CFWL_ScrollBar::SetTrackPos(FX_FLOAT fTrackPos) {
if (!m_pIface)
return FWL_ERR_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);
}
-CFWL_ScrollBar::CFWL_ScrollBar() {}
-CFWL_ScrollBar::~CFWL_ScrollBar() {}

Powered by Google App Engine
This is Rietveld 408576698