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

Side by Side Diff: fpdfsdk/cpdfsdk_xfaannothandler.cpp

Issue 2276953003: Remove unused IPDFSDK_AnnotHandler::GetName(). (Closed)
Patch Set: Created 4 years, 4 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 | « fpdfsdk/cpdfsdk_bfannothandler.cpp ('k') | fpdfsdk/include/cpdfsdk_bfannothandler.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 "fpdfsdk/include/cpdfsdk_xfaannothandler.h" 7 #include "fpdfsdk/include/cpdfsdk_xfaannothandler.h"
8 8
9 #include "core/fpdfdoc/include/cpdf_interform.h" 9 #include "core/fpdfdoc/include/cpdf_interform.h"
10 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 10 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
(...skipping 11 matching lines...) Expand all
22 22
23 CPDFSDK_XFAAnnotHandler::CPDFSDK_XFAAnnotHandler(CPDFDoc_Environment* pApp) 23 CPDFSDK_XFAAnnotHandler::CPDFSDK_XFAAnnotHandler(CPDFDoc_Environment* pApp)
24 : m_pApp(pApp) {} 24 : m_pApp(pApp) {}
25 25
26 CPDFSDK_XFAAnnotHandler::~CPDFSDK_XFAAnnotHandler() {} 26 CPDFSDK_XFAAnnotHandler::~CPDFSDK_XFAAnnotHandler() {}
27 27
28 CFX_ByteString CPDFSDK_XFAAnnotHandler::GetType() { 28 CFX_ByteString CPDFSDK_XFAAnnotHandler::GetType() {
29 return FSDK_XFAWIDGET_TYPENAME; 29 return FSDK_XFAWIDGET_TYPENAME;
30 } 30 }
31 31
32 CFX_ByteString CPDFSDK_XFAAnnotHandler::GetName() {
33 return "XFAWidgetHandler";
34 }
35
36 FX_BOOL CPDFSDK_XFAAnnotHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { 32 FX_BOOL CPDFSDK_XFAAnnotHandler::CanAnswer(CPDFSDK_Annot* pAnnot) {
37 return !!pAnnot->GetXFAWidget(); 33 return !!pAnnot->GetXFAWidget();
38 } 34 }
39 35
40 CPDFSDK_Annot* CPDFSDK_XFAAnnotHandler::NewAnnot(CPDF_Annot* pAnnot, 36 CPDFSDK_Annot* CPDFSDK_XFAAnnotHandler::NewAnnot(CPDF_Annot* pAnnot,
41 CPDFSDK_PageView* pPage) { 37 CPDFSDK_PageView* pPage) {
42 return nullptr; 38 return nullptr;
43 } 39 }
44 40
45 CPDFSDK_Annot* CPDFSDK_XFAAnnotHandler::NewAnnot(CXFA_FFWidget* pAnnot, 41 CPDFSDK_Annot* CPDFSDK_XFAAnnotHandler::NewAnnot(CXFA_FFWidget* pAnnot,
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 dwFWLFlag |= FWL_KEYFLAG_MButton; 377 dwFWLFlag |= FWL_KEYFLAG_MButton;
382 if (dwFlag & FWL_EVENTFLAG_RightButtonDown) 378 if (dwFlag & FWL_EVENTFLAG_RightButtonDown)
383 dwFWLFlag |= FWL_KEYFLAG_RButton; 379 dwFWLFlag |= FWL_KEYFLAG_RButton;
384 if (dwFlag & FWL_EVENTFLAG_ShiftKey) 380 if (dwFlag & FWL_EVENTFLAG_ShiftKey)
385 dwFWLFlag |= FWL_KEYFLAG_Shift; 381 dwFWLFlag |= FWL_KEYFLAG_Shift;
386 if (dwFlag & FWL_EVENTFLAG_AltKey) 382 if (dwFlag & FWL_EVENTFLAG_AltKey)
387 dwFWLFlag |= FWL_KEYFLAG_Alt; 383 dwFWLFlag |= FWL_KEYFLAG_Alt;
388 384
389 return dwFWLFlag; 385 return dwFWLFlag;
390 } 386 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_bfannothandler.cpp ('k') | fpdfsdk/include/cpdfsdk_bfannothandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698