1 // Copyright 2014 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.
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
7 #include "../../include/javascript/JavaScript.h"
8 #include "../../include/javascript/IJavaScript.h"
9 #include "../../include/javascript/JS_Define.h"
10 #include "../../include/javascript/JS_Object.h"
11 #include "../../include/javascript/JS_Value.h"
12 #include "../../include/javascript/Icon.h"
14 /* ---------------------- Icon ---------------------- */
16 BEGIN_JS_STATIC_CONST(CJS_Icon)
19 BEGIN_JS_STATIC_PROP(CJS_Icon)
20 JS_STATIC_PROP_ENTRY(name)
23 BEGIN_JS_STATIC_METHOD(CJS_Icon)
24 END_JS_STATIC_METHOD()
26 IMPLEMENT_JS_CLASS(CJS_Icon,Icon)
28 Icon::Icon(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject),
39 void Icon::SetStream(CPDF_Stream* pIconStream)
42 m_pIconStream = pIconStream;
45 CPDF_Stream* Icon::GetStream()
50 void Icon::SetIconName(CFX_WideString name)
55 CFX_WideString Icon::GetIconName()
60 FX_BOOL Icon::name(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError)
62 if(!vp.IsGetting())return FALSE;