• 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 XFA_FDE_CSS_CFDE_CSSSTYLERULE_H_
8 #define XFA_FDE_CSS_CFDE_CSSSTYLERULE_H_
9 
10 #include <memory>
11 #include <vector>
12 
13 #include "xfa/fde/css/cfde_cssdeclaration.h"
14 #include "xfa/fde/css/cfde_cssselector.h"
15 
16 class CFDE_CSSStyleRule {
17  public:
18   CFDE_CSSStyleRule();
19   ~CFDE_CSSStyleRule();
20 
21   size_t CountSelectorLists() const;
22   CFDE_CSSSelector* GetSelectorList(int32_t index) const;
23   CFDE_CSSDeclaration* GetDeclaration();
24 
25   void SetSelector(std::vector<std::unique_ptr<CFDE_CSSSelector>>* list);
26 
27  private:
28   CFDE_CSSDeclaration m_Declaration;
29   std::vector<std::unique_ptr<CFDE_CSSSelector>> m_ppSelector;
30 };
31 
32 #endif  // XFA_FDE_CSS_CFDE_CSSSTYLERULE_H_
33