Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: xfa/src/fwl/basewidget/fwl_pushbuttonimp.cpp

Issue 1770953004: Remove xfa/src/fwl/src and move code up a level. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/fwl_pushbuttonimp.h" 7 #include "xfa/src/fwl/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/fwl_noteimp.h" 11 #include "xfa/src/fwl/core/fwl_noteimp.h"
12 #include "xfa/src/fwl/src/core/fwl_targetimp.h" 12 #include "xfa/src/fwl/core/fwl_targetimp.h"
13 #include "xfa/src/fwl/src/core/fwl_widgetimp.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);
24 return pPushButton; 24 return pPushButton;
25 } 25 }
26 IFWL_PushButton::IFWL_PushButton() { 26 IFWL_PushButton::IFWL_PushButton() {}
27 }
28 27
29 CFWL_PushButtonImp::CFWL_PushButtonImp( 28 CFWL_PushButtonImp::CFWL_PushButtonImp(
30 const CFWL_WidgetImpProperties& properties, 29 const CFWL_WidgetImpProperties& properties,
31 IFWL_Widget* pOuter) 30 IFWL_Widget* pOuter)
32 : CFWL_WidgetImp(properties, pOuter), 31 : CFWL_WidgetImp(properties, pOuter),
33 m_bBtnDown(FALSE), 32 m_bBtnDown(FALSE),
34 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), 33 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine),
35 m_iTTOAlign(FDE_TTOALIGNMENT_Center) { 34 m_iTTOAlign(FDE_TTOALIGNMENT_Center) {
36 m_rtClient.Set(0, 0, 0, 0); 35 m_rtClient.Set(0, 0, 0, 0);
37 m_rtCaption.Set(0, 0, 0, 0); 36 m_rtCaption.Set(0, 0, 0, 0);
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 CFWL_EvtClick wmClick; 541 CFWL_EvtClick wmClick;
543 wmClick.m_pSrcTarget = m_pOwner->m_pInterface; 542 wmClick.m_pSrcTarget = m_pOwner->m_pInterface;
544 m_pOwner->DispatchEvent(&wmClick); 543 m_pOwner->DispatchEvent(&wmClick);
545 return; 544 return;
546 } 545 }
547 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) { 546 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) {
548 return; 547 return;
549 } 548 }
550 m_pOwner->DispatchKeyEvent(pMsg); 549 m_pOwner->DispatchKeyEvent(pMsg);
551 } 550 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698