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 "fpdfsdk/include/pdfwindow/PWL_Button.h" | 7 #include "fpdfsdk/pdfwindow/PWL_Button.h" |
8 #include "fpdfsdk/include/pdfwindow/PWL_SpecialButton.h" | 8 #include "fpdfsdk/pdfwindow/PWL_SpecialButton.h" |
9 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" | 9 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
10 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" | 10 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" |
11 | 11 |
12 CPWL_PushButton::CPWL_PushButton() {} | 12 CPWL_PushButton::CPWL_PushButton() {} |
13 | 13 |
14 CPWL_PushButton::~CPWL_PushButton() {} | 14 CPWL_PushButton::~CPWL_PushButton() {} |
15 | 15 |
16 CFX_ByteString CPWL_PushButton::GetClassName() const { | 16 CFX_ByteString CPWL_PushButton::GetClassName() const { |
17 return "CPWL_PushButton"; | 17 return "CPWL_PushButton"; |
18 } | 18 } |
19 | 19 |
20 CFX_FloatRect CPWL_PushButton::GetFocusRect() const { | 20 CFX_FloatRect CPWL_PushButton::GetFocusRect() const { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 | 74 |
75 bool CPWL_RadioButton::IsChecked() const { | 75 bool CPWL_RadioButton::IsChecked() const { |
76 return m_bChecked; | 76 return m_bChecked; |
77 } | 77 } |
78 | 78 |
79 FX_BOOL CPWL_RadioButton::OnChar(uint16_t nChar, FX_DWORD nFlag) { | 79 FX_BOOL CPWL_RadioButton::OnChar(uint16_t nChar, FX_DWORD nFlag) { |
80 SetCheck(TRUE); | 80 SetCheck(TRUE); |
81 return TRUE; | 81 return TRUE; |
82 } | 82 } |
OLD | NEW |