| 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 12 matching lines...) Expand all Loading... |
| 23 #include "bindings/core/v8/ScriptWrappable.h" | 23 #include "bindings/core/v8/ScriptWrappable.h" |
| 24 #include "core/dom/ActiveDOMObject.h" | 24 #include "core/dom/ActiveDOMObject.h" |
| 25 #include "core/events/EventTarget.h" | 25 #include "core/events/EventTarget.h" |
| 26 #include "platform/heap/Handle.h" | 26 #include "platform/heap/Handle.h" |
| 27 #include "wtf/Forward.h" | 27 #include "wtf/Forward.h" |
| 28 #include "wtf/RefCounted.h" | 28 #include "wtf/RefCounted.h" |
| 29 #include "wtf/RefPtr.h" | 29 #include "wtf/RefPtr.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class Document; | |
| 34 class ExecutionContext; | 33 class ExecutionContext; |
| 35 class MediaQueryListListener; | 34 class MediaQueryListListener; |
| 36 class MediaQueryEvaluator; | |
| 37 class MediaQueryMatcher; | 35 class MediaQueryMatcher; |
| 38 class MediaQuerySet; | 36 class MediaQuerySet; |
| 39 | 37 |
| 40 // MediaQueryList interface is specified at http://dev.w3.org/csswg/cssom-view/#
the-mediaquerylist-interface | 38 // MediaQueryList interface is specified at http://dev.w3.org/csswg/cssom-view/#
the-mediaquerylist-interface |
| 41 // The objects of this class are returned by window.matchMedia. They may be used
to | 39 // The objects of this class are returned by window.matchMedia. They may be used
to |
| 42 // retrieve the current value of the given media query and to add/remove listene
rs that | 40 // retrieve the current value of the given media query and to add/remove listene
rs that |
| 43 // will be called whenever the value of the query changes. | 41 // will be called whenever the value of the query changes. |
| 44 | 42 |
| 45 class MediaQueryList FINAL : public RefCountedWillBeGarbageCollectedFinalized<Me
diaQueryList>, public EventTargetWithInlineData, public ActiveDOMObject { | 43 class MediaQueryList FINAL : public RefCountedWillBeGarbageCollectedFinalized<Me
diaQueryList>, public EventTargetWithInlineData, public ActiveDOMObject { |
| 46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>); | 44 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 RefPtrWillBeMember<MediaQuerySet> m_media; | 83 RefPtrWillBeMember<MediaQuerySet> m_media; |
| 86 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L
istenerList; | 84 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L
istenerList; |
| 87 ListenerList m_listeners; | 85 ListenerList m_listeners; |
| 88 bool m_matchesDirty; | 86 bool m_matchesDirty; |
| 89 bool m_matches; | 87 bool m_matches; |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 } // namespace blink | 90 } // namespace blink |
| 93 | 91 |
| 94 #endif // MediaQueryList_h | 92 #endif // MediaQueryList_h |
| OLD | NEW |