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

Side by Side Diff: xfa/fxfa/app/xfa_ffsignature.cpp

Issue 2323523002: Remove unused code in CPDFXFA_Document (Closed)
Patch Set: Review feedback Created 4 years, 3 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 | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/app/xfa_fftextedit.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/fxfa/app/xfa_ffsignature.h" 7 #include "xfa/fxfa/app/xfa_ffsignature.h"
8 8
9 #include "xfa/fxfa/app/xfa_fffield.h" 9 #include "xfa/fxfa/app/xfa_fffield.h"
10 #include "xfa/fxfa/include/xfa_ffdoc.h" 10 #include "xfa/fxfa/include/xfa_ffdoc.h"
(...skipping 16 matching lines...) Expand all
27 CFX_Matrix mtRotate; 27 CFX_Matrix mtRotate;
28 GetRotateMatrix(mtRotate); 28 GetRotateMatrix(mtRotate);
29 if (pMatrix) { 29 if (pMatrix) {
30 mtRotate.Concat(*pMatrix); 30 mtRotate.Concat(*pMatrix);
31 } 31 }
32 CXFA_FFWidget::RenderWidget(pGS, &mtRotate, dwStatus); 32 CXFA_FFWidget::RenderWidget(pGS, &mtRotate, dwStatus);
33 CXFA_Border borderUI = m_pDataAcc->GetUIBorder(); 33 CXFA_Border borderUI = m_pDataAcc->GetUIBorder();
34 DrawBorder(pGS, borderUI, m_rtUI, &mtRotate); 34 DrawBorder(pGS, borderUI, m_rtUI, &mtRotate);
35 RenderCaption(pGS, &mtRotate); 35 RenderCaption(pGS, &mtRotate);
36 DrawHighlight(pGS, &mtRotate, dwStatus, FALSE); 36 DrawHighlight(pGS, &mtRotate, dwStatus, FALSE);
37 CFX_RectF rtWidget = m_rtUI;
38 IXFA_DocProvider* pDocProvider = m_pDataAcc->GetDoc()->GetDocProvider();
39 ASSERT(pDocProvider);
40 pDocProvider->RenderCustomWidget(this, pGS, &mtRotate, rtWidget);
41 } 37 }
38
42 FX_BOOL CXFA_FFSignature::OnMouseEnter() { 39 FX_BOOL CXFA_FFSignature::OnMouseEnter() {
43 return FALSE; 40 return FALSE;
44 } 41 }
45 FX_BOOL CXFA_FFSignature::OnMouseExit() { 42 FX_BOOL CXFA_FFSignature::OnMouseExit() {
46 return FALSE; 43 return FALSE;
47 } 44 }
48 FX_BOOL CXFA_FFSignature::OnLButtonDown(uint32_t dwFlags, 45 FX_BOOL CXFA_FFSignature::OnLButtonDown(uint32_t dwFlags,
49 FX_FLOAT fx, 46 FX_FLOAT fx,
50 FX_FLOAT fy) { 47 FX_FLOAT fy) {
51 return FALSE; 48 return FALSE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 GetRectWithoutRotate(rtBox); 103 GetRectWithoutRotate(rtBox);
107 if (!rtBox.Contains(fx, fy)) 104 if (!rtBox.Contains(fx, fy))
108 return FWL_WidgetHit::Unknown; 105 return FWL_WidgetHit::Unknown;
109 if (m_rtCaption.Contains(fx, fy)) 106 if (m_rtCaption.Contains(fx, fy))
110 return FWL_WidgetHit::Titlebar; 107 return FWL_WidgetHit::Titlebar;
111 return FWL_WidgetHit::Client; 108 return FWL_WidgetHit::Client;
112 } 109 }
113 FX_BOOL CXFA_FFSignature::OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) { 110 FX_BOOL CXFA_FFSignature::OnSetCursor(FX_FLOAT fx, FX_FLOAT fy) {
114 return FALSE; 111 return FALSE;
115 } 112 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdoc.cpp ('k') | xfa/fxfa/app/xfa_fftextedit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698