| 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 30 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 static PassRefPtrWillBeRawPtr<MediaQueryList> create(PassRefPtrWillBeRawPtr<
MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); | 42 static PassRefPtrWillBeRawPtr<MediaQueryList> create(PassRefPtrWillBeRawPtr<
MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); |
| 43 virtual ~MediaQueryList(); | 43 virtual ~MediaQueryList(); |
| 44 | 44 |
| 45 String media() const; | 45 String media() const; |
| 46 bool matches(); | 46 bool matches(); |
| 47 | 47 |
| 48 void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); | 48 void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); |
| 49 void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); | 49 void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); |
| 50 | 50 |
| 51 void mediaFeaturesChanged(WillBeHeapVector<RefPtrWillBeMember<MediaQueryList
Listener> >* listenersToNotify); | 51 void mediaFeaturesChanged(WillBeHeapVector<RefPtrWillBeMember<MediaQueryList
Listener> >* toNotify); |
| 52 | 52 |
| 53 void trace(Visitor*); | 53 void trace(Visitor*); |
| 54 | 54 |
| 55 void documentDetached(); | 55 void documentDetached(); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRa
wPtr<MediaQuerySet>); | 58 MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRa
wPtr<MediaQuerySet>); |
| 59 | 59 |
| 60 bool updateMatches(); | 60 bool updateMatches(); |
| 61 | 61 |
| 62 RefPtrWillBeMember<MediaQueryMatcher> m_matcher; | 62 RefPtrWillBeMember<MediaQueryMatcher> m_matcher; |
| 63 RefPtrWillBeMember<MediaQuerySet> m_media; | 63 RefPtrWillBeMember<MediaQuerySet> m_media; |
| 64 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L
istenerList; | 64 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L
istenerList; |
| 65 ListenerList m_listeners; | 65 ListenerList m_listeners; |
| 66 bool m_matchesDirty; | 66 bool m_matchesDirty; |
| 67 bool m_matches; | 67 bool m_matches; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } | 70 } |
| 71 | 71 |
| 72 #endif // MediaQueryList_h | 72 #endif // MediaQueryList_h |
| OLD | NEW |