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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/FontFaceSet.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 class MediaQueryListListener; 35 class MediaQueryListListener;
36 class MediaQueryMatcher; 36 class MediaQueryMatcher;
37 class MediaQuerySet; 37 class MediaQuerySet;
38 38
39 // MediaQueryList interface is specified at http://dev.w3.org/csswg/cssom-view/# the-mediaquerylist-interface 39 // MediaQueryList interface is specified at http://dev.w3.org/csswg/cssom-view/# the-mediaquerylist-interface
40 // The objects of this class are returned by window.matchMedia. They may be used to 40 // The objects of this class are returned by window.matchMedia. They may be used to
41 // retrieve the current value of the given media query and to add/remove listene rs that 41 // retrieve the current value of the given media query and to add/remove listene rs that
42 // will be called whenever the value of the query changes. 42 // will be called whenever the value of the query changes.
43 43
44 class CORE_EXPORT MediaQueryList final : public EventTargetWithInlineData, publi c RefCountedWillBeNoBase<MediaQueryList>, public ActiveDOMObject { 44 class CORE_EXPORT MediaQueryList final : public EventTargetWithInlineData, publi c RefCountedWillBeNoBase<MediaQueryList>, public ActiveDOMObject {
45 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>); 45 REFCOUNTED_EVENT_TARGET(MediaQueryList);
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList); 47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList);
48 public: 48 public:
49 static PassRefPtrWillBeRawPtr<MediaQueryList> create(ExecutionContext*, Pass RefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); 49 static PassRefPtrWillBeRawPtr<MediaQueryList> create(ExecutionContext*, Pass RefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>);
50 virtual ~MediaQueryList(); 50 virtual ~MediaQueryList();
51 51
52 String media() const; 52 String media() const;
53 bool matches(); 53 bool matches();
54 54
55 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); 55 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
(...skipping 28 matching lines...) Expand all
84 RefPtrWillBeMember<MediaQuerySet> m_media; 84 RefPtrWillBeMember<MediaQuerySet> m_media;
85 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener>> Li stenerList; 85 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener>> Li stenerList;
86 ListenerList m_listeners; 86 ListenerList m_listeners;
87 bool m_matchesDirty; 87 bool m_matchesDirty;
88 bool m_matches; 88 bool m_matches;
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // MediaQueryList_h 93 #endif // MediaQueryList_h
OLDNEW
« no previous file with comments | « Source/core/css/FontFaceSet.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698