Remove trailing whitespaces in fpdfsdk.
[pdfium.git] / fpdfsdk / include / javascript / Icon.h
index 26fec2d..0298005 100644 (file)
@@ -1,42 +1,40 @@
-// Copyright 2014 PDFium Authors. All rights reserved.\r
-// Use of this source code is governed by a BSD-style license that can be\r
-// found in the LICENSE file.\r
\r
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
-\r
-#ifndef _ICON_H_\r
-#define _ICON_H_\r
-\r
-class Icon : public CJS_EmbedObj\r
-{\r
-public:\r
-       Icon(CJS_Object* pJSObject);\r
-       virtual ~Icon();\r
-\r
-public:\r
-       FX_BOOL name(OBJ_PROP_PARAMS);\r
-       \r
-public:\r
-       void                            SetStream(CPDF_Stream* pIconStream);\r
-       CPDF_Stream*            GetStream();\r
-       void                            SetIconName(CFX_WideString name);\r
-       CFX_WideString          GetIconName();\r
-private:\r
-       CPDF_Stream*            m_pIconStream;\r
-       CFX_WideString          m_swIconName;\r
-};\r
-\r
-class CJS_Icon : public CJS_Object\r
-{\r
-public:\r
-       CJS_Icon(JSFXObject pObject) : CJS_Object(pObject){};\r
-       virtual ~CJS_Icon(){};\r
-\r
-public:\r
-       DECLARE_JS_CLASS(CJS_Icon);\r
-\r
-       JS_STATIC_PROP(name, Icon);\r
-};\r
-\r
-#endif //_ICON_H_\r
-\r
+// 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
+
+#ifndef FPDFSDK_INCLUDE_JAVASCRIPT_ICON_H_
+#define FPDFSDK_INCLUDE_JAVASCRIPT_ICON_H_
+
+#include "JS_Define.h"
+
+class Icon : public CJS_EmbedObj
+{
+public:
+       Icon(CJS_Object* pJSObject);
+       virtual ~Icon();
+       FX_BOOL name(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       void                            SetStream(CPDF_Stream* pIconStream);
+       CPDF_Stream*            GetStream();
+       void                            SetIconName(CFX_WideString name);
+       CFX_WideString          GetIconName();
+
+private:
+       CPDF_Stream*            m_pIconStream;
+       CFX_WideString          m_swIconName;
+};
+
+class CJS_Icon : public CJS_Object
+{
+public:
+       CJS_Icon(JSFXObject pObject) : CJS_Object(pObject){};
+       virtual ~CJS_Icon(){};
+
+public:
+       DECLARE_JS_CLASS(CJS_Icon);
+
+       JS_STATIC_PROP(name, Icon);
+};
+
+#endif  // FPDFSDK_INCLUDE_JAVASCRIPT_ICON_H_