| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #if !ENABLE(OILPAN) | 51 #if !ENABLE(OILPAN) |
| 52 m_matcher->removeMediaQueryList(this); | 52 m_matcher->removeMediaQueryList(this); |
| 53 #endif | 53 #endif |
| 54 } | 54 } |
| 55 | 55 |
| 56 String MediaQueryList::media() const | 56 String MediaQueryList::media() const |
| 57 { | 57 { |
| 58 return m_media->mediaText(); | 58 return m_media->mediaText(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void MediaQueryList::addDeprecatedListener(PassRefPtr<EventListener> listener) | 61 void MediaQueryList::addDeprecatedListener(PassRefPtrWillBeRawPtr<EventListener>
listener) |
| 62 { | 62 { |
| 63 if (!listener) | 63 if (!listener) |
| 64 return; | 64 return; |
| 65 | 65 |
| 66 addEventListener(EventTypeNames::change, listener, false); | 66 addEventListener(EventTypeNames::change, listener, false); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void MediaQueryList::removeDeprecatedListener(PassRefPtr<EventListener> listener
) | 69 void MediaQueryList::removeDeprecatedListener(PassRefPtrWillBeRawPtr<EventListen
er> listener) |
| 70 { | 70 { |
| 71 if (!listener) | 71 if (!listener) |
| 72 return; | 72 return; |
| 73 | 73 |
| 74 removeEventListener(EventTypeNames::change, listener, false); | 74 removeEventListener(EventTypeNames::change, listener, false); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) | 77 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>
listener) |
| 78 { | 78 { |
| 79 if (!listener) | 79 if (!listener) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 { | 146 { |
| 147 return EventTargetNames::MediaQueryList; | 147 return EventTargetNames::MediaQueryList; |
| 148 } | 148 } |
| 149 | 149 |
| 150 ExecutionContext* MediaQueryList::executionContext() const | 150 ExecutionContext* MediaQueryList::executionContext() const |
| 151 { | 151 { |
| 152 return ActiveDOMObject::executionContext(); | 152 return ActiveDOMObject::executionContext(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } | 155 } |
| OLD | NEW |