Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1137)

Side by Side Diff: xfa/fde/css/fde_css.h

Issue 2005933002: Rename IFX_Unknown to IFX_Retainable. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Alphabetical order. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxcrt/include/fx_ucd.h ('k') | xfa/fde/css/fde_csscache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FDE_CSS_FDE_CSS_H_ 7 #ifndef XFA_FDE_CSS_FDE_CSS_H_
8 #define XFA_FDE_CSS_FDE_CSS_H_ 8 #define XFA_FDE_CSS_FDE_CSS_H_
9 9
10 #include "core/fxge/include/fx_dib.h" 10 #include "core/fxge/include/fx_dib.h"
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 virtual int32_t CountRules() const = 0; 732 virtual int32_t CountRules() const = 0;
733 virtual IFDE_CSSRule* GetRule(int32_t index) = 0; 733 virtual IFDE_CSSRule* GetRule(int32_t index) = 0;
734 }; 734 };
735 735
736 class IFDE_CSSFontFaceRule : public IFDE_CSSRule { 736 class IFDE_CSSFontFaceRule : public IFDE_CSSRule {
737 public: 737 public:
738 virtual FDE_CSSRULETYPE GetType() const { return FDE_CSSRULETYPE_FontFace; } 738 virtual FDE_CSSRULETYPE GetType() const { return FDE_CSSRULETYPE_FontFace; }
739 virtual CFDE_CSSDeclaration* GetDeclaration() = 0; 739 virtual CFDE_CSSDeclaration* GetDeclaration() = 0;
740 }; 740 };
741 741
742 class IFDE_CSSStyleSheet : public IFX_Unknown { 742 class IFDE_CSSStyleSheet : public IFX_Retainable {
743 public: 743 public:
744 static IFDE_CSSStyleSheet* LoadHTMLStandardStyleSheet(); 744 static IFDE_CSSStyleSheet* LoadHTMLStandardStyleSheet();
745 static IFDE_CSSStyleSheet* LoadFromStream( 745 static IFDE_CSSStyleSheet* LoadFromStream(
746 const CFX_WideString& szUrl, 746 const CFX_WideString& szUrl,
747 IFX_Stream* pStream, 747 IFX_Stream* pStream,
748 uint16_t wCodePage, 748 uint16_t wCodePage,
749 uint32_t dwMediaList = FDE_CSSMEDIATYPE_ALL); 749 uint32_t dwMediaList = FDE_CSSMEDIATYPE_ALL);
750 static IFDE_CSSStyleSheet* LoadFromBuffer( 750 static IFDE_CSSStyleSheet* LoadFromBuffer(
751 const CFX_WideString& szUrl, 751 const CFX_WideString& szUrl,
752 const FX_WCHAR* pBuffer, 752 const FX_WCHAR* pBuffer,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 virtual uint32_t GetTextDecoration() const = 0; 875 virtual uint32_t GetTextDecoration() const = 0;
876 virtual const FDE_CSSLENGTH& GetLetterSpacing() const = 0; 876 virtual const FDE_CSSLENGTH& GetLetterSpacing() const = 0;
877 virtual void SetLineHeight(FX_FLOAT fLineHeight) = 0; 877 virtual void SetLineHeight(FX_FLOAT fLineHeight) = 0;
878 virtual void SetTextIndent(const FDE_CSSLENGTH& textIndent) = 0; 878 virtual void SetTextIndent(const FDE_CSSLENGTH& textIndent) = 0;
879 virtual void SetTextAlign(FDE_CSSTEXTALIGN eTextAlign) = 0; 879 virtual void SetTextAlign(FDE_CSSTEXTALIGN eTextAlign) = 0;
880 virtual void SetNumberVerticalAlign(FX_FLOAT fAlign) = 0; 880 virtual void SetNumberVerticalAlign(FX_FLOAT fAlign) = 0;
881 virtual void SetTextDecoration(uint32_t dwTextDecoration) = 0; 881 virtual void SetTextDecoration(uint32_t dwTextDecoration) = 0;
882 virtual void SetLetterSpacing(const FDE_CSSLENGTH& letterSpacing) = 0; 882 virtual void SetLetterSpacing(const FDE_CSSLENGTH& letterSpacing) = 0;
883 }; 883 };
884 884
885 class IFDE_CSSComputedStyle : public IFX_Unknown { 885 class IFDE_CSSComputedStyle : public IFX_Retainable {
886 public: 886 public:
887 virtual void Reset() = 0; 887 virtual void Reset() = 0;
888 virtual IFDE_CSSFontStyle* GetFontStyles() = 0; 888 virtual IFDE_CSSFontStyle* GetFontStyles() = 0;
889 virtual IFDE_CSSBoundaryStyle* GetBoundaryStyles() = 0; 889 virtual IFDE_CSSBoundaryStyle* GetBoundaryStyles() = 0;
890 virtual IFDE_CSSPositionStyle* GetPositionStyles() = 0; 890 virtual IFDE_CSSPositionStyle* GetPositionStyles() = 0;
891 virtual IFDE_CSSParagraphStyle* GetParagraphStyles() = 0; 891 virtual IFDE_CSSParagraphStyle* GetParagraphStyles() = 0;
892 virtual FX_BOOL GetCustomStyle(const CFX_WideStringC& wsName, 892 virtual FX_BOOL GetCustomStyle(const CFX_WideStringC& wsName,
893 CFX_WideString& wsValue) const = 0; 893 CFX_WideString& wsValue) const = 0;
894 }; 894 };
895 895
896 #endif // XFA_FDE_CSS_FDE_CSS_H_ 896 #endif // XFA_FDE_CSS_FDE_CSS_H_
OLDNEW
« no previous file with comments | « core/fxcrt/include/fx_ucd.h ('k') | xfa/fde/css/fde_csscache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698