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

Side by Side Diff: xfa/fxfa/parser/cxfa_layoutitem.cpp

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « xfa/fxfa/parser/cxfa_layoutitem.h ('k') | xfa/fxfa/parser/cxfa_layoutpagemgr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/fxfa/parser/cxfa_layoutitem.h" 7 #include "xfa/fxfa/parser/cxfa_layoutitem.h"
8 8
9 #include "xfa/fxfa/app/xfa_ffnotify.h" 9 #include "xfa/fxfa/app/xfa_ffnotify.h"
10 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h" 10 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h"
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); 27 pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem);
28 if (pLayoutItem->m_pFormNode->GetElementType() == XFA_Element::PageArea) { 28 if (pLayoutItem->m_pFormNode->GetElementType() == XFA_Element::PageArea) {
29 pNotify->OnPageEvent(static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem), 29 pNotify->OnPageEvent(static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem),
30 XFA_PAGEVIEWEVENT_PostRemoved); 30 XFA_PAGEVIEWEVENT_PostRemoved);
31 } 31 }
32 delete pLayoutItem; 32 delete pLayoutItem;
33 } 33 }
34 34
35 CXFA_LayoutItem::CXFA_LayoutItem(CXFA_Node* pNode, FX_BOOL bIsContentLayoutItem) 35 CXFA_LayoutItem::CXFA_LayoutItem(CXFA_Node* pNode, bool bIsContentLayoutItem)
36 : m_pFormNode(pNode), 36 : m_pFormNode(pNode),
37 m_pParent(nullptr), 37 m_pParent(nullptr),
38 m_pNextSibling(nullptr), 38 m_pNextSibling(nullptr),
39 m_pFirstChild(nullptr), 39 m_pFirstChild(nullptr),
40 m_bIsContentLayoutItem(bIsContentLayoutItem) {} 40 m_bIsContentLayoutItem(bIsContentLayoutItem) {}
41 41
42 CXFA_LayoutItem::~CXFA_LayoutItem() {} 42 CXFA_LayoutItem::~CXFA_LayoutItem() {}
43 43
44 CXFA_ContainerLayoutItem* CXFA_LayoutItem::AsContainerLayoutItem() { 44 CXFA_ContainerLayoutItem* CXFA_LayoutItem::AsContainerLayoutItem() {
45 return IsContainerLayoutItem() ? static_cast<CXFA_ContainerLayoutItem*>(this) 45 return IsContainerLayoutItem() ? static_cast<CXFA_ContainerLayoutItem*>(this)
46 : nullptr; 46 : nullptr;
47 } 47 }
48 CXFA_ContentLayoutItem* CXFA_LayoutItem::AsContentLayoutItem() { 48 CXFA_ContentLayoutItem* CXFA_LayoutItem::AsContentLayoutItem() {
49 return IsContentLayoutItem() ? static_cast<CXFA_ContentLayoutItem*>(this) 49 return IsContentLayoutItem() ? static_cast<CXFA_ContentLayoutItem*>(this)
50 : nullptr; 50 : nullptr;
51 } 51 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_layoutitem.h ('k') | xfa/fxfa/parser/cxfa_layoutpagemgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698