| 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_msgkey.h" |
| 14 #include "xfa/fwl/core/cfwl_msgmouse.h" |
| 14 #include "xfa/fwl/core/cfwl_themebackground.h" | 15 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 15 #include "xfa/fwl/core/cfwl_themetext.h" | 16 #include "xfa/fwl/core/cfwl_themetext.h" |
| 16 #include "xfa/fwl/core/cfwl_widgetmgr.h" | 17 #include "xfa/fwl/core/cfwl_widgetmgr.h" |
| 17 #include "xfa/fwl/core/fwl_noteimp.h" | 18 #include "xfa/fwl/core/fwl_noteimp.h" |
| 18 #include "xfa/fwl/core/ifwl_app.h" | 19 #include "xfa/fwl/core/ifwl_app.h" |
| 19 #include "xfa/fwl/core/ifwl_checkbox.h" | 20 #include "xfa/fwl/core/ifwl_checkbox.h" |
| 20 #include "xfa/fwl/core/ifwl_themeprovider.h" | 21 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 21 | 22 |
| 22 namespace { | 23 namespace { |
| 23 | 24 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 void IFWL_CheckBox::OnKeyDown(CFWL_MsgKey* pMsg) { | 499 void IFWL_CheckBox::OnKeyDown(CFWL_MsgKey* pMsg) { |
| 499 if (pMsg->m_dwKeyCode == FWL_VKEY_Tab) { | 500 if (pMsg->m_dwKeyCode == FWL_VKEY_Tab) { |
| 500 DispatchKeyEvent(pMsg); | 501 DispatchKeyEvent(pMsg); |
| 501 return; | 502 return; |
| 502 } | 503 } |
| 503 if (pMsg->m_dwKeyCode == FWL_VKEY_Return || | 504 if (pMsg->m_dwKeyCode == FWL_VKEY_Return || |
| 504 pMsg->m_dwKeyCode == FWL_VKEY_Space) { | 505 pMsg->m_dwKeyCode == FWL_VKEY_Space) { |
| 505 NextStates(); | 506 NextStates(); |
| 506 } | 507 } |
| 507 } | 508 } |
| OLD | NEW |