| 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/include/fxfa/xfa_ffpageview.h" | 7 #include "xfa/fxfa/include/xfa_ffpageview.h" | 
| 8 | 8 | 
| 9 #include "xfa/fde/fde_render.h" | 9 #include "xfa/fde/fde_render.h" | 
| 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" | 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" | 
| 11 #include "xfa/fxfa/app/xfa_ffchoicelist.h" | 11 #include "xfa/fxfa/app/xfa_ffchoicelist.h" | 
| 12 #include "xfa/fxfa/app/xfa_fffield.h" | 12 #include "xfa/fxfa/app/xfa_fffield.h" | 
| 13 #include "xfa/fxfa/app/xfa_ffimageedit.h" | 13 #include "xfa/fxfa/app/xfa_ffimageedit.h" | 
| 14 #include "xfa/fxfa/app/xfa_ffpushbutton.h" | 14 #include "xfa/fxfa/app/xfa_ffpushbutton.h" | 
| 15 #include "xfa/fxfa/app/xfa_fftextedit.h" | 15 #include "xfa/fxfa/app/xfa_fftextedit.h" | 
| 16 #include "xfa/fxfa/app/xfa_fwladapter.h" | 16 #include "xfa/fxfa/app/xfa_fwladapter.h" | 
| 17 #include "xfa/include/fxfa/xfa_ffdoc.h" | 17 #include "xfa/fxfa/include/xfa_ffdoc.h" | 
| 18 #include "xfa/include/fxfa/xfa_ffdocview.h" | 18 #include "xfa/fxfa/include/xfa_ffdocview.h" | 
| 19 #include "xfa/include/fxfa/xfa_ffwidget.h" | 19 #include "xfa/fxfa/include/xfa_ffwidget.h" | 
| 20 | 20 | 
| 21 CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea) | 21 CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea) | 
| 22     : CXFA_ContainerLayoutItem(pPageArea), | 22     : CXFA_ContainerLayoutItem(pPageArea), | 
| 23       m_pDocView(pDocView), | 23       m_pDocView(pDocView), | 
| 24       m_bLoaded(FALSE) {} | 24       m_bLoaded(FALSE) {} | 
| 25 CXFA_FFPageView::~CXFA_FFPageView() {} | 25 CXFA_FFPageView::~CXFA_FFPageView() {} | 
| 26 CXFA_FFDocView* CXFA_FFPageView::GetDocView() { | 26 CXFA_FFDocView* CXFA_FFPageView::GetDocView() { | 
| 27   return m_pDocView; | 27   return m_pDocView; | 
| 28 } | 28 } | 
| 29 int32_t CXFA_FFPageView::GetPageViewIndex() { | 29 int32_t CXFA_FFPageView::GetPageViewIndex() { | 
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 413     CXFA_LayoutItem* pLayoutItem) { | 413     CXFA_LayoutItem* pLayoutItem) { | 
| 414   if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) { | 414   if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) { | 
| 415     if (!pWidget->IsLoaded() && | 415     if (!pWidget->IsLoaded() && | 
| 416         (pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) { | 416         (pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) { | 
| 417       pWidget->LoadWidget(); | 417       pWidget->LoadWidget(); | 
| 418     } | 418     } | 
| 419     return pWidget; | 419     return pWidget; | 
| 420   } | 420   } | 
| 421   return NULL; | 421   return NULL; | 
| 422 } | 422 } | 
| OLD | NEW | 
|---|