• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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 
7 #ifndef FXJS_CJS_EMBEDOBJ_H_
8 #define FXJS_CJS_EMBEDOBJ_H_
9 
10 #include "core/fxcrt/unowned_ptr.h"
11 
12 class CJS_Object;
13 
14 class CJS_EmbedObj {
15  public:
16   explicit CJS_EmbedObj(CJS_Object* pJSObject);
17   virtual ~CJS_EmbedObj();
18 
GetJSObject()19   CJS_Object* GetJSObject() const { return m_pJSObject.Get(); }
20 
21  protected:
22   UnownedPtr<CJS_Object> const m_pJSObject;
23 };
24 
25 #endif  // FXJS_CJS_EMBEDOBJ_H_
26