| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual ~MediaQueryList(); | 46 virtual ~MediaQueryList(); |
| 47 | 47 |
| 48 String media() const; | 48 String media() const; |
| 49 bool matches(); | 49 bool matches(); |
| 50 | 50 |
| 51 void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); | 51 void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); |
| 52 void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); | 52 void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); |
| 53 | 53 |
| 54 void mediaFeaturesChanged(WillBeHeapVector<RefPtrWillBeMember<MediaQueryList
Listener> >* listenersToNotify); | 54 void mediaFeaturesChanged(WillBeHeapVector<RefPtrWillBeMember<MediaQueryList
Listener> >* listenersToNotify); |
| 55 | 55 |
| 56 void trace(Visitor*); | 56 virtual void trace(Visitor*); |
| 57 | 57 |
| 58 // From ActiveDOMObject | 58 // From ActiveDOMObject |
| 59 virtual bool hasPendingActivity() const OVERRIDE; | 59 virtual bool hasPendingActivity() const OVERRIDE; |
| 60 virtual void stop() OVERRIDE; | 60 virtual void stop() OVERRIDE; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 MediaQueryList(ExecutionContext*, PassRefPtrWillBeRawPtr<MediaQueryMatcher>,
PassRefPtrWillBeRawPtr<MediaQuerySet>); | 63 MediaQueryList(ExecutionContext*, PassRefPtrWillBeRawPtr<MediaQueryMatcher>,
PassRefPtrWillBeRawPtr<MediaQuerySet>); |
| 64 | 64 |
| 65 bool updateMatches(); | 65 bool updateMatches(); |
| 66 | 66 |
| 67 RefPtrWillBeMember<MediaQueryMatcher> m_matcher; | 67 RefPtrWillBeMember<MediaQueryMatcher> m_matcher; |
| 68 RefPtrWillBeMember<MediaQuerySet> m_media; | 68 RefPtrWillBeMember<MediaQuerySet> m_media; |
| 69 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L
istenerList; | 69 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L
istenerList; |
| 70 ListenerList m_listeners; | 70 ListenerList m_listeners; |
| 71 bool m_matchesDirty; | 71 bool m_matchesDirty; |
| 72 bool m_matches; | 72 bool m_matches; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } | 75 } |
| 76 | 76 |
| 77 #endif // MediaQueryList_h | 77 #endif // MediaQueryList_h |
| OLD | NEW |