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/fwl/core/ifwl_checkbox.h" | 7 #include "xfa/fwl/core/ifwl_checkbox.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "third_party/base/ptr_util.h" | 11 #include "third_party/base/ptr_util.h" |
12 #include "xfa/fde/tto/fde_textout.h" | 12 #include "xfa/fde/tto/fde_textout.h" |
13 #include "xfa/fwl/core/cfwl_message.h" | 13 #include "xfa/fwl/core/cfwl_message.h" |
14 #include "xfa/fwl/core/cfwl_themebackground.h" | 14 #include "xfa/fwl/core/cfwl_themebackground.h" |
15 #include "xfa/fwl/core/cfwl_themetext.h" | 15 #include "xfa/fwl/core/cfwl_themetext.h" |
16 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 16 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 17 #include "xfa/fwl/core/fwl_noteimp.h" |
17 #include "xfa/fwl/core/ifwl_app.h" | 18 #include "xfa/fwl/core/ifwl_app.h" |
18 #include "xfa/fwl/core/fwl_noteimp.h" | |
19 #include "xfa/fwl/core/ifwl_checkbox.h" | 19 #include "xfa/fwl/core/ifwl_checkbox.h" |
20 #include "xfa/fwl/core/ifwl_themeprovider.h" | 20 #include "xfa/fwl/core/ifwl_themeprovider.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const int kCaptionMargin = 5; | 24 const int kCaptionMargin = 5; |
25 | 25 |
26 } // namespace | 26 } // namespace |
27 | 27 |
28 IFWL_CheckBox::IFWL_CheckBox(const IFWL_App* app, | 28 IFWL_CheckBox::IFWL_CheckBox(const IFWL_App* app, |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 void CFWL_CheckBoxImpDelegate::OnKeyDown(CFWL_MsgKey* pMsg) { | 544 void CFWL_CheckBoxImpDelegate::OnKeyDown(CFWL_MsgKey* pMsg) { |
545 if (pMsg->m_dwKeyCode == FWL_VKEY_Tab) { | 545 if (pMsg->m_dwKeyCode == FWL_VKEY_Tab) { |
546 m_pOwner->DispatchKeyEvent(pMsg); | 546 m_pOwner->DispatchKeyEvent(pMsg); |
547 return; | 547 return; |
548 } | 548 } |
549 if (pMsg->m_dwKeyCode == FWL_VKEY_Return || | 549 if (pMsg->m_dwKeyCode == FWL_VKEY_Return || |
550 pMsg->m_dwKeyCode == FWL_VKEY_Space) { | 550 pMsg->m_dwKeyCode == FWL_VKEY_Space) { |
551 m_pOwner->NextStates(); | 551 m_pOwner->NextStates(); |
552 } | 552 } |
553 } | 553 } |
OLD | NEW |