blob: bf3f1c799905cc04c8a7fb3fdb1a7bd527fec81c [file] [log] [blame]
weili9f515bc2016-07-24 08:08:24 -07001// Copyright 2016 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez269f2ae2019-08-20 19:31:17 +00007#include "fpdfsdk/cpdfsdk_pauseadapter.h"
weili9f515bc2016-07-24 08:08:24 -07008
Tom Sepez269f2ae2019-08-20 19:31:17 +00009CPDFSDK_PauseAdapter::CPDFSDK_PauseAdapter(IFSDK_PAUSE* IPause)
weili9f515bc2016-07-24 08:08:24 -070010 : m_IPause(IPause) {}
11
Tom Sepez269f2ae2019-08-20 19:31:17 +000012CPDFSDK_PauseAdapter::~CPDFSDK_PauseAdapter() = default;
weili9f515bc2016-07-24 08:08:24 -070013
Tom Sepez269f2ae2019-08-20 19:31:17 +000014bool CPDFSDK_PauseAdapter::NeedToPauseNow() {
Tom Sepez797ca5c2017-05-25 12:03:18 -070015 return m_IPause->NeedToPauseNow && m_IPause->NeedToPauseNow(m_IPause.Get());
weili9f515bc2016-07-24 08:08:24 -070016}