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

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

Issue 1921853006: More FWL interface cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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/fwl/basewidget/fwl_pushbuttonimp.h" 7 #include "xfa/fwl/basewidget/fwl_pushbuttonimp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/basewidget/ifwl_pushbutton.h" 10 #include "xfa/fwl/basewidget/ifwl_pushbutton.h"
11 #include "xfa/fwl/core/cfwl_message.h" 11 #include "xfa/fwl/core/cfwl_message.h"
12 #include "xfa/fwl/core/cfwl_themebackground.h" 12 #include "xfa/fwl/core/cfwl_themebackground.h"
13 #include "xfa/fwl/core/cfwl_themetext.h" 13 #include "xfa/fwl/core/cfwl_themetext.h"
14 #include "xfa/fwl/core/fwl_noteimp.h" 14 #include "xfa/fwl/core/fwl_noteimp.h"
15 #include "xfa/fwl/core/fwl_targetimp.h"
16 #include "xfa/fwl/core/fwl_widgetimp.h" 15 #include "xfa/fwl/core/fwl_widgetimp.h"
17 #include "xfa/fwl/core/ifwl_themeprovider.h" 16 #include "xfa/fwl/core/ifwl_themeprovider.h"
18 17
19 // static 18 // static
20 IFWL_PushButton* IFWL_PushButton::Create( 19 IFWL_PushButton* IFWL_PushButton::Create(
21 const CFWL_WidgetImpProperties& properties, 20 const CFWL_WidgetImpProperties& properties,
22 IFWL_Widget* pOuter) { 21 IFWL_Widget* pOuter) {
23 IFWL_PushButton* pPushButton = new IFWL_PushButton; 22 IFWL_PushButton* pPushButton = new IFWL_PushButton;
24 CFWL_PushButtonImp* pPushButtonImpl = 23 CFWL_PushButtonImp* pPushButtonImpl =
25 new CFWL_PushButtonImp(properties, pOuter); 24 new CFWL_PushButtonImp(properties, pOuter);
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 CFWL_EvtClick wmClick; 549 CFWL_EvtClick wmClick;
551 wmClick.m_pSrcTarget = m_pOwner->m_pInterface; 550 wmClick.m_pSrcTarget = m_pOwner->m_pInterface;
552 m_pOwner->DispatchEvent(&wmClick); 551 m_pOwner->DispatchEvent(&wmClick);
553 return; 552 return;
554 } 553 }
555 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) { 554 if (pMsg->m_dwKeyCode != FWL_VKEY_Tab) {
556 return; 555 return;
557 } 556 }
558 m_pOwner->DispatchKeyEvent(pMsg); 557 m_pOwner->DispatchKeyEvent(pMsg);
559 } 558 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698