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

Side by Side Diff: Source/core/css/CSSRuleList.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSMatrix.h ('k') | Source/core/css/CSSStyleDeclaration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2012 Apple Computer, Inc. 4 * Copyright (C) 2002, 2006, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 16 matching lines...) Expand all
27 #include "wtf/PassRefPtr.h" 27 #include "wtf/PassRefPtr.h"
28 #include "wtf/RefPtr.h" 28 #include "wtf/RefPtr.h"
29 #include "wtf/Vector.h" 29 #include "wtf/Vector.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class CSSRule; 33 class CSSRule;
34 class CSSStyleSheet; 34 class CSSStyleSheet;
35 35
36 class CSSRuleList : public NoBaseWillBeGarbageCollectedFinalized<CSSRuleList>, p ublic ScriptWrappable { 36 class CSSRuleList : public NoBaseWillBeGarbageCollectedFinalized<CSSRuleList>, p ublic ScriptWrappable {
37 DEFINE_WRAPPERTYPEINFO();
38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
37 WTF_MAKE_NONCOPYABLE(CSSRuleList); 39 WTF_MAKE_NONCOPYABLE(CSSRuleList);
38 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
39 public: 40 public:
40 virtual ~CSSRuleList(); 41 virtual ~CSSRuleList();
41 42
42 #if !ENABLE(OILPAN) 43 #if !ENABLE(OILPAN)
43 virtual void ref() = 0; 44 virtual void ref() = 0;
44 virtual void deref() = 0; 45 virtual void deref() = 0;
45 #endif 46 #endif
46 47
47 virtual unsigned length() const = 0; 48 virtual unsigned length() const = 0;
48 virtual CSSRule* item(unsigned index) const = 0; 49 virtual CSSRule* item(unsigned index) const = 0;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual unsigned length() const OVERRIDE { return m_rule->length(); } 112 virtual unsigned length() const OVERRIDE { return m_rule->length(); }
112 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(i ndex); } 113 virtual CSSRule* item(unsigned index) const OVERRIDE { return m_rule->item(i ndex); }
113 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentSt yleSheet(); } 114 virtual CSSStyleSheet* styleSheet() const OVERRIDE { return m_rule->parentSt yleSheet(); }
114 115
115 RawPtrWillBeMember<Rule> m_rule; 116 RawPtrWillBeMember<Rule> m_rule;
116 }; 117 };
117 118
118 } // namespace blink 119 } // namespace blink
119 120
120 #endif // CSSRuleList_h 121 #endif // CSSRuleList_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSMatrix.h ('k') | Source/core/css/CSSStyleDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698