Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: Source/core/css/MediaQueryList.h

Issue 369423002: Have srcset respond to viewport changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: more oilpan Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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> >* listenersToNotify);
52 52
53 void trace(Visitor*); 53 void trace(Visitor*);
54 54
55 void documentDetached(); 55 void documentDetached();
56 void alwaysUpdate() { m_alwaysUpdate = true; }
56 57
57 private: 58 private:
58 MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRa wPtr<MediaQuerySet>); 59 MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRa wPtr<MediaQuerySet>);
59 60
60 bool updateMatches(); 61 bool updateMatches();
61 62
62 RefPtrWillBeMember<MediaQueryMatcher> m_matcher; 63 RefPtrWillBeMember<MediaQueryMatcher> m_matcher;
63 RefPtrWillBeMember<MediaQuerySet> m_media; 64 RefPtrWillBeMember<MediaQuerySet> m_media;
64 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L istenerList; 65 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L istenerList;
65 ListenerList m_listeners; 66 ListenerList m_listeners;
66 bool m_matchesDirty; 67 bool m_matchesDirty;
67 bool m_matches; 68 bool m_matches;
69 bool m_alwaysUpdate;
68 }; 70 };
69 71
70 } 72 }
71 73
72 #endif // MediaQueryList_h 74 #endif // MediaQueryList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698