| 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/src/basewidget/include/fwl_pushbuttonimp.h" | 7 #include "xfa/src/fwl/src/basewidget/fwl_pushbuttonimp.h" |
| 8 | 8 |
| 9 #include "xfa/include/fwl/basewidget/fwl_pushbutton.h" | 9 #include "xfa/include/fwl/basewidget/fwl_pushbutton.h" |
| 10 #include "xfa/src/fdp/include/fde_tto.h" | 10 #include "xfa/src/fdp/include/fde_tto.h" |
| 11 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h" | 11 #include "xfa/src/fwl/src/core/fwl_noteimp.h" |
| 12 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h" | 12 #include "xfa/src/fwl/src/core/fwl_targetimp.h" |
| 13 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h" | 13 #include "xfa/src/fwl/src/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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 CFWL_EvtClick wmClick; | 542 CFWL_EvtClick wmClick; |
| 543 wmClick.m_pSrcTarget = m_pOwner->m_pInterface; | 543 wmClick.m_pSrcTarget = m_pOwner->m_pInterface; |
| 544 m_pOwner->DispatchEvent(&wmClick); | 544 m_pOwner->DispatchEvent(&wmClick); |
| 545 return; | 545 return; |
| 546 } | 546 } |
| 547 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) { | 547 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) { |
| 548 return; | 548 return; |
| 549 } | 549 } |
| 550 m_pOwner->DispatchKeyEvent(pMsg); | 550 m_pOwner->DispatchKeyEvent(pMsg); |
| 551 } | 551 } |
| OLD | NEW |