1 // Copyright 2019 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 CORE_FPDFDOC_CPDF_ICON_H_
8 #define CORE_FPDFDOC_CPDF_ICON_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_string.h"
12 #include "core/fxcrt/retain_ptr.h"
13 
14 class CPDF_Stream;
15 
16 class CPDF_Icon final {
17  public:
18   CPDF_Icon(CPDF_Stream* pStream);
19   ~CPDF_Icon();
20 
21   CFX_SizeF GetImageSize() const;
22   CFX_Matrix GetImageMatrix() const;
23   ByteString GetImageAlias() const;
24 
25  private:
26   RetainPtr<CPDF_Stream> const m_pStream;
27 };
28 
29 #endif  // CORE_FPDFDOC_CPDF_ICON_H_
30