OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 21 matching lines...) Expand all Loading... |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class CSSRule; | 34 class CSSRule; |
35 class CSSStyleSheet; | 35 class CSSStyleSheet; |
36 class Document; | 36 class Document; |
37 class ExceptionState; | 37 class ExceptionState; |
38 class MediaList; | 38 class MediaList; |
39 class MediaQuery; | 39 class MediaQuery; |
40 | 40 |
41 class MediaQuerySet : public RefCountedWillBeGarbageCollected<MediaQuerySet> { | 41 class MediaQuerySet : public RefCountedWillBeGarbageCollected<MediaQuerySet> { |
| 42 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQuerySet); |
42 public: | 43 public: |
43 static PassRefPtrWillBeRawPtr<MediaQuerySet> create() | 44 static PassRefPtrWillBeRawPtr<MediaQuerySet> create() |
44 { | 45 { |
45 return adoptRefWillBeNoop(new MediaQuerySet()); | 46 return adoptRefWillBeNoop(new MediaQuerySet()); |
46 } | 47 } |
47 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin
g); | 48 static PassRefPtrWillBeRawPtr<MediaQuerySet> create(const String& mediaStrin
g); |
48 ~MediaQuerySet(); | |
49 | 49 |
50 bool set(const String&); | 50 bool set(const String&); |
51 bool add(const String&); | 51 bool add(const String&); |
52 bool remove(const String&); | 52 bool remove(const String&); |
53 | 53 |
54 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); | 54 void addMediaQuery(PassOwnPtrWillBeRawPtr<MediaQuery>); |
55 | 55 |
56 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const
{ return m_queries; } | 56 const WillBeHeapVector<OwnPtrWillBeMember<MediaQuery> >& queryVector() const
{ return m_queries; } |
57 | 57 |
58 String mediaText() const; | 58 String mediaText() const; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i
s not enabled. | 115 // Cleared in the ~CSSMediaRule and ~CSSImportRule destructors when oilpan i
s not enabled. |
116 RawPtrWillBeMember<CSSRule> m_parentRule; | 116 RawPtrWillBeMember<CSSRule> m_parentRule; |
117 }; | 117 }; |
118 | 118 |
119 // Adds message to inspector console whenever dpi or dpcm values are used for "s
creen" media. | 119 // Adds message to inspector console whenever dpi or dpcm values are used for "s
creen" media. |
120 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); | 120 void reportMediaQueryWarningIfNeeded(Document*, const MediaQuerySet*); |
121 | 121 |
122 } // namespace | 122 } // namespace |
123 | 123 |
124 #endif | 124 #endif |
OLD | NEW |