OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&); | 50 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&); |
51 | 51 |
52 void mediaFeaturesChanged(); | 52 void mediaFeaturesChanged(); |
53 bool evaluate(const MediaQuerySet*); | 53 bool evaluate(const MediaQuerySet*); |
54 | 54 |
55 void trace(Visitor*); | 55 void trace(Visitor*); |
56 | 56 |
57 private: | 57 private: |
58 explicit MediaQueryMatcher(Document&); | 58 explicit MediaQueryMatcher(Document&); |
59 | 59 |
60 AtomicString mediaType() const; | |
61 | |
62 PassOwnPtr<MediaQueryEvaluator> createEvaluator() const; | 60 PassOwnPtr<MediaQueryEvaluator> createEvaluator() const; |
63 | 61 |
64 RawPtrWillBeMember<Document> m_document; | 62 RawPtrWillBeMember<Document> m_document; |
65 OwnPtr<MediaQueryEvaluator> m_evaluator; | 63 OwnPtr<MediaQueryEvaluator> m_evaluator; |
66 | 64 |
67 typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<MediaQueryList> > Med
iaQueryListSet; | 65 typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<MediaQueryList> > Med
iaQueryListSet; |
68 MediaQueryListSet m_mediaLists; | 66 MediaQueryListSet m_mediaLists; |
69 }; | 67 }; |
70 | 68 |
71 } | 69 } |
72 | 70 |
73 #endif // MediaQueryMatcher_h | 71 #endif // MediaQueryMatcher_h |
OLD | NEW |