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

Unified Diff: fpdfsdk/fpdfxfa/fpdfxfa_util.cpp

Issue 2385423004: Rename fpdfsdk/fpdfxfa files to match contents (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_util.h ('k') | fpdfsdk/fsdk_define.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/fpdfxfa/fpdfxfa_util.cpp
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_util.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_util.cpp
deleted file mode 100644
index b4e44c834e9441d210bda4e06097b4ea6715a193..0000000000000000000000000000000000000000
--- a/fpdfsdk/fpdfxfa/fpdfxfa_util.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#include "fpdfsdk/fpdfxfa/fpdfxfa_util.h"
-
-#include <vector>
-
-#include "fpdfsdk/cpdfsdk_environment.h"
-#include "fpdfsdk/fsdk_define.h"
-
-std::vector<CFWL_TimerInfo*>* CXFA_FWLAdapterTimerMgr::s_TimerArray = nullptr;
-
-FWL_Error CXFA_FWLAdapterTimerMgr::Start(IFWL_Timer* pTimer,
- uint32_t dwElapse,
- bool bImmediately,
- IFWL_TimerInfo** pTimerInfo) {
- if (!m_pEnv)
- return FWL_Error::Indefinite;
-
- int32_t id_event = m_pEnv->SetTimer(dwElapse, TimerProc);
- if (!s_TimerArray)
- s_TimerArray = new std::vector<CFWL_TimerInfo*>;
-
- s_TimerArray->push_back(new CFWL_TimerInfo(id_event, pTimer));
- *pTimerInfo = s_TimerArray->back();
- return FWL_Error::Succeeded;
-}
-
-FWL_Error CXFA_FWLAdapterTimerMgr::Stop(IFWL_TimerInfo* pTimerInfo) {
- if (!pTimerInfo || !m_pEnv)
- return FWL_Error::Indefinite;
-
- CFWL_TimerInfo* pInfo = static_cast<CFWL_TimerInfo*>(pTimerInfo);
- m_pEnv->KillTimer(pInfo->idEvent);
- if (s_TimerArray) {
- auto it = std::find(s_TimerArray->begin(), s_TimerArray->end(), pInfo);
- if (it != s_TimerArray->end()) {
- s_TimerArray->erase(it);
- delete pInfo;
- }
- }
- return FWL_Error::Succeeded;
-}
-
-// static
-void CXFA_FWLAdapterTimerMgr::TimerProc(int32_t idEvent) {
- if (!s_TimerArray)
- return;
-
- for (CFWL_TimerInfo* pInfo : *s_TimerArray) {
- if (pInfo->idEvent == idEvent) {
- pInfo->pTimer->Run(pInfo);
- break;
- }
- }
-}
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_util.h ('k') | fpdfsdk/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698