summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_pushbutton.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-15 12:33:06 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-15 12:33:06 -0800
commit38eaf4b11383e24a00192132b683cc07e38622a6 (patch)
tree169f9d48784035519ddee9191aa412cc817a4531 /xfa/fwl/core/cfwl_pushbutton.cpp
parent05b9a317d66c29f740e4b0e89ea87143a11d61fc (diff)
downloadpdfium-38eaf4b11383e24a00192132b683cc07e38622a6.tar.xz
Cleanup cfwl_* files.
This Cl cleans up the visibility, method usage and return values in the remaining CFWL files. Review-Url: https://codereview.chromium.org/2498163002
Diffstat (limited to 'xfa/fwl/core/cfwl_pushbutton.cpp')
-rw-r--r--xfa/fwl/core/cfwl_pushbutton.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/xfa/fwl/core/cfwl_pushbutton.cpp b/xfa/fwl/core/cfwl_pushbutton.cpp
index 1fc6191d3d..90c8ab4941 100644
--- a/xfa/fwl/core/cfwl_pushbutton.cpp
+++ b/xfa/fwl/core/cfwl_pushbutton.cpp
@@ -10,8 +10,7 @@
#include "third_party/base/ptr_util.h"
-CFWL_PushButton::CFWL_PushButton(const IFWL_App* app)
- : CFWL_Widget(app), m_pBitmap(nullptr) {}
+CFWL_PushButton::CFWL_PushButton(const IFWL_App* app) : CFWL_Widget(app) {}
CFWL_PushButton::~CFWL_PushButton() {}
@@ -24,25 +23,7 @@ void CFWL_PushButton::Initialize() {
CFWL_Widget::Initialize();
}
-FWL_Error CFWL_PushButton::SetCaption(const CFX_WideStringC& wsCaption) {
- m_wsCaption = wsCaption;
- return FWL_Error::Succeeded;
-}
-
-CFX_DIBitmap* CFWL_PushButton::GetPicture() {
- return m_pBitmap;
-}
-
-FWL_Error CFWL_PushButton::SetPicture(CFX_DIBitmap* pBitmap) {
- m_pBitmap = pBitmap;
- return FWL_Error::Succeeded;
-}
-
void CFWL_PushButton::GetCaption(IFWL_Widget* pWidget,
CFX_WideString& wsCaption) {
- wsCaption = m_wsCaption;
-}
-
-CFX_DIBitmap* CFWL_PushButton::GetPicture(IFWL_Widget* pWidget) {
- return m_pBitmap;
+ wsCaption = L"";
}