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

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

Issue 1570743002: XFA: Remove many relative includes in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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 "../../../foxitlib.h" 7 #include "xfa/src/foxitlib.h"
8 #include "../core/include/fwl_targetimp.h" 8 #include "xfa/src/fwl/src/core/include/fwl_targetimp.h"
9 #include "../core/include/fwl_noteimp.h" 9 #include "xfa/src/fwl/src/core/include/fwl_noteimp.h"
10 #include "../core/include/fwl_widgetimp.h" 10 #include "xfa/src/fwl/src/core/include/fwl_widgetimp.h"
11 #include "include/fwl_scrollbarimp.h" 11 #include "xfa/src/fwl/src/basewidget/include/fwl_scrollbarimp.h"
12 #include "include/fwl_listboximp.h" 12 #include "xfa/src/fwl/src/basewidget/include/fwl_listboximp.h"
13 #include "include/fwl_comboboximp.h" 13 #include "xfa/src/fwl/src/basewidget/include/fwl_comboboximp.h"
14 14
15 #define FWL_LISTBOX_ItemTextMargin 2 15 #define FWL_LISTBOX_ItemTextMargin 2
16 16
17 // static 17 // static
18 IFWL_ListBox* IFWL_ListBox::Create(const CFWL_WidgetImpProperties& properties, 18 IFWL_ListBox* IFWL_ListBox::Create(const CFWL_WidgetImpProperties& properties,
19 IFWL_Widget* pOuter) { 19 IFWL_Widget* pOuter) {
20 IFWL_ListBox* pListBox = new IFWL_ListBox; 20 IFWL_ListBox* pListBox = new IFWL_ListBox;
21 CFWL_ListBoxImp* pListBoxImpl = new CFWL_ListBoxImp(properties, pOuter); 21 CFWL_ListBoxImp* pListBoxImpl = new CFWL_ListBoxImp(properties, pOuter);
22 pListBox->SetImpl(pListBoxImpl); 22 pListBox->SetImpl(pListBoxImpl);
23 pListBoxImpl->SetInterface(pListBox); 23 pListBoxImpl->SetInterface(pListBox);
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 pScrollBar->SetTrackPos(fPos); 1231 pScrollBar->SetTrackPos(fPos);
1232 m_pOwner->Repaint(&m_pOwner->m_rtClient); 1232 m_pOwner->Repaint(&m_pOwner->m_rtClient);
1233 } 1233 }
1234 return TRUE; 1234 return TRUE;
1235 } 1235 }
1236 void CFWL_ListBoxImpDelegate::DispatchSelChangedEv() { 1236 void CFWL_ListBoxImpDelegate::DispatchSelChangedEv() {
1237 CFWL_EvtLtbSelChanged ev; 1237 CFWL_EvtLtbSelChanged ev;
1238 ev.m_pSrcTarget = m_pOwner->m_pInterface; 1238 ev.m_pSrcTarget = m_pOwner->m_pInterface;
1239 m_pOwner->DispatchEvent(&ev); 1239 m_pOwner->DispatchEvent(&ev);
1240 } 1240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698