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

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

Issue 2010923002: Add opaque "layout item" to widgets for caller's use. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Cast to FFWidget. Created 4 years, 6 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
« no previous file with comments | « no previous file | xfa/fwl/core/fwl_widgetimp.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 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_editimp.h" 7 #include "xfa/fwl/basewidget/fwl_editimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 1630
1631 void CFWL_EditImp::InitEngine() { 1631 void CFWL_EditImp::InitEngine() {
1632 if (!m_pEdtEngine) 1632 if (!m_pEdtEngine)
1633 m_pEdtEngine = new CFDE_TxtEdtEngine; 1633 m_pEdtEngine = new CFDE_TxtEdtEngine;
1634 } 1634 }
1635 1635
1636 FX_BOOL FWL_ShowCaret(IFWL_Widget* pWidget, 1636 FX_BOOL FWL_ShowCaret(IFWL_Widget* pWidget,
1637 FX_BOOL bVisible, 1637 FX_BOOL bVisible,
1638 const CFX_RectF* pRtAnchor) { 1638 const CFX_RectF* pRtAnchor) {
1639 CXFA_FFWidget* pXFAWidget = 1639 CXFA_FFWidget* pXFAWidget =
1640 static_cast<CXFA_FFWidget*>(pWidget->GetPrivateData(pWidget)); 1640 static_cast<CXFA_FFWidget*>(pWidget->GetLayoutItem());
1641 if (!pXFAWidget) 1641 if (!pXFAWidget)
1642 return FALSE; 1642 return FALSE;
1643 1643
1644 IXFA_DocProvider* pDocProvider = pXFAWidget->GetDoc()->GetDocProvider(); 1644 IXFA_DocProvider* pDocProvider = pXFAWidget->GetDoc()->GetDocProvider();
1645 if (!pDocProvider) 1645 if (!pDocProvider)
1646 return FALSE; 1646 return FALSE;
1647 1647
1648 if (bVisible) { 1648 if (bVisible) {
1649 CFX_Matrix mt; 1649 CFX_Matrix mt;
1650 pXFAWidget->GetRotateMatrix(mt); 1650 pXFAWidget->GetRotateMatrix(mt);
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 } 2186 }
2187 CFX_RectF rect; 2187 CFX_RectF rect;
2188 m_pOwner->GetWidgetRect(rect); 2188 m_pOwner->GetWidgetRect(rect);
2189 CFX_RectF rtInvalidate; 2189 CFX_RectF rtInvalidate;
2190 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2); 2190 rtInvalidate.Set(0, 0, rect.width + 2, rect.height + 2);
2191 m_pOwner->Repaint(&rtInvalidate); 2191 m_pOwner->Repaint(&rtInvalidate);
2192 } 2192 }
2193 return TRUE; 2193 return TRUE;
2194 } 2194 }
2195 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {} 2195 void CFWL_EditImpDelegate::DoCursor(CFWL_MsgMouse* pMsg) {}
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/core/fwl_widgetimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698