OLD | NEW |
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/include/fwl/lightwidget/pushbutton.h" |
| 8 |
7 #include <memory> | 9 #include <memory> |
8 | 10 |
9 #include "xfa/src/foxitlib.h" | 11 #include "xfa/src/foxitlib.h" |
10 | 12 |
11 CFWL_PushButton* CFWL_PushButton::Create() { | 13 CFWL_PushButton* CFWL_PushButton::Create() { |
12 return new CFWL_PushButton; | 14 return new CFWL_PushButton; |
13 } | 15 } |
14 FWL_ERR CFWL_PushButton::Initialize(const CFWL_WidgetProperties* pProperties) { | 16 FWL_ERR CFWL_PushButton::Initialize(const CFWL_WidgetProperties* pProperties) { |
15 if (m_pIface) | 17 if (m_pIface) |
16 return FWL_ERR_Indefinite; | 18 return FWL_ERR_Indefinite; |
(...skipping 30 matching lines...) Expand all Loading... |
47 FWL_ERR CFWL_PushButton::CFWL_PushButtonDP::GetCaption( | 49 FWL_ERR CFWL_PushButton::CFWL_PushButtonDP::GetCaption( |
48 IFWL_Widget* pWidget, | 50 IFWL_Widget* pWidget, |
49 CFX_WideString& wsCaption) { | 51 CFX_WideString& wsCaption) { |
50 wsCaption = m_wsCaption; | 52 wsCaption = m_wsCaption; |
51 return FWL_ERR_Succeeded; | 53 return FWL_ERR_Succeeded; |
52 } | 54 } |
53 CFX_DIBitmap* CFWL_PushButton::CFWL_PushButtonDP::GetPicture( | 55 CFX_DIBitmap* CFWL_PushButton::CFWL_PushButtonDP::GetPicture( |
54 IFWL_Widget* pWidget) { | 56 IFWL_Widget* pWidget) { |
55 return m_pBitmap; | 57 return m_pBitmap; |
56 } | 58 } |
OLD | NEW |