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/src/fwl/basewidget/fwl_pushbuttonimp.h" | 7 #include "xfa/fwl/basewidget/fwl_pushbuttonimp.h" |
8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/core/fwl_noteimp.h" |
| 11 #include "xfa/fwl/core/fwl_targetimp.h" |
| 12 #include "xfa/fwl/core/fwl_widgetimp.h" |
9 #include "xfa/include/fwl/basewidget/fwl_pushbutton.h" | 13 #include "xfa/include/fwl/basewidget/fwl_pushbutton.h" |
10 #include "xfa/src/fde/tto/fde_textout.h" | |
11 #include "xfa/src/fwl/core/fwl_noteimp.h" | |
12 #include "xfa/src/fwl/core/fwl_targetimp.h" | |
13 #include "xfa/src/fwl/core/fwl_widgetimp.h" | |
14 | 14 |
15 // static | 15 // static |
16 IFWL_PushButton* IFWL_PushButton::Create( | 16 IFWL_PushButton* IFWL_PushButton::Create( |
17 const CFWL_WidgetImpProperties& properties, | 17 const CFWL_WidgetImpProperties& properties, |
18 IFWL_Widget* pOuter) { | 18 IFWL_Widget* pOuter) { |
19 IFWL_PushButton* pPushButton = new IFWL_PushButton; | 19 IFWL_PushButton* pPushButton = new IFWL_PushButton; |
20 CFWL_PushButtonImp* pPushButtonImpl = | 20 CFWL_PushButtonImp* pPushButtonImpl = |
21 new CFWL_PushButtonImp(properties, pOuter); | 21 new CFWL_PushButtonImp(properties, pOuter); |
22 pPushButton->SetImpl(pPushButtonImpl); | 22 pPushButton->SetImpl(pPushButtonImpl); |
23 pPushButtonImpl->SetInterface(pPushButton); | 23 pPushButtonImpl->SetInterface(pPushButton); |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 CFWL_EvtClick wmClick; | 541 CFWL_EvtClick wmClick; |
542 wmClick.m_pSrcTarget = m_pOwner->m_pInterface; | 542 wmClick.m_pSrcTarget = m_pOwner->m_pInterface; |
543 m_pOwner->DispatchEvent(&wmClick); | 543 m_pOwner->DispatchEvent(&wmClick); |
544 return; | 544 return; |
545 } | 545 } |
546 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) { | 546 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) { |
547 return; | 547 return; |
548 } | 548 } |
549 m_pOwner->DispatchKeyEvent(pMsg); | 549 m_pOwner->DispatchKeyEvent(pMsg); |
550 } | 550 } |
OLD | NEW |