mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-03 11:00:54 +08:00
Updates old-style copyright headers to the new style, by removing "All rights reserved." Also inserts "The" before "PDFium Authors", which is required by both styles. Mechanically generated by this command: PATTERN='Copyright \([0-9]\+\) \(The \)\?PDFium Authors. All rights reserved.' git grep -l "$PATTERN" \ | xargs sed "s/$PATTERN/Copyright \1 The PDFium Authors/" -i'' Fixed: pdfium:1884 Change-Id: I6f781d811df8839e2e21b85f716529b813828bcd Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/100371 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: K. Moon <kmoon@chromium.org>
33 lines
897 B
C++
33 lines
897 B
C++
// Copyright 2017 The PDFium Authors
|
|
// 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 "fxjs/cjs_timerobj.h"
|
|
|
|
#include "fxjs/global_timer.h"
|
|
#include "fxjs/js_define.h"
|
|
|
|
uint32_t CJS_TimerObj::ObjDefnID = 0;
|
|
|
|
// static
|
|
uint32_t CJS_TimerObj::GetObjDefnID() {
|
|
return ObjDefnID;
|
|
}
|
|
|
|
// static
|
|
void CJS_TimerObj::DefineJSObjects(CFXJS_Engine* pEngine) {
|
|
ObjDefnID = pEngine->DefineObj("TimerObj", FXJSOBJTYPE_DYNAMIC,
|
|
JSConstructor<CJS_TimerObj>, JSDestructor);
|
|
}
|
|
|
|
CJS_TimerObj::CJS_TimerObj(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
|
|
: CJS_Object(pObject, pRuntime) {}
|
|
|
|
CJS_TimerObj::~CJS_TimerObj() = default;
|
|
|
|
void CJS_TimerObj::SetTimer(GlobalTimer* pTimer) {
|
|
m_nTimerID = pTimer->GetTimerID();
|
|
}
|