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

Side by Side Diff: third_party/WebKit/Source/core/css/MediaQueryMatcher.h

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 years, 2 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 15 matching lines...) Expand all
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class Document; 29 class Document;
30 class MediaQueryList; 30 class MediaQueryList;
31 class MediaQueryListListener; 31 class MediaQueryListListener;
32 class MediaQueryEvaluator; 32 class MediaQueryEvaluator;
33 class MediaQuerySet; 33 class MediaQuerySet;
34 34
35 // MediaQueryMatcher class is responsible for keeping a vector of pairs 35 // MediaQueryMatcher class is responsible for keeping a vector of pairs
36 // MediaQueryList x MediaQueryListListener. It is responsible for evaluating the queries 36 // MediaQueryList x MediaQueryListListener. It is responsible for evaluating the
37 // whenever it is needed and to call the listeners if the corresponding query ha s changed. 37 // queries whenever it is needed and to call the listeners if the corresponding
38 // The listeners must be called in the very same order in which they have been a dded. 38 // query has changed. The listeners must be called in the very same order in
39 // which they have been added.
39 40
40 class CORE_EXPORT MediaQueryMatcher final 41 class CORE_EXPORT MediaQueryMatcher final
41 : public GarbageCollectedFinalized<MediaQueryMatcher> { 42 : public GarbageCollectedFinalized<MediaQueryMatcher> {
42 WTF_MAKE_NONCOPYABLE(MediaQueryMatcher); 43 WTF_MAKE_NONCOPYABLE(MediaQueryMatcher);
43 44
44 public: 45 public:
45 static MediaQueryMatcher* create(Document&); 46 static MediaQueryMatcher* create(Document&);
46 ~MediaQueryMatcher(); 47 ~MediaQueryMatcher();
47 48
48 void documentDetached(); 49 void documentDetached();
(...skipping 23 matching lines...) Expand all
72 using MediaQueryListSet = HeapLinkedHashSet<WeakMember<MediaQueryList>>; 73 using MediaQueryListSet = HeapLinkedHashSet<WeakMember<MediaQueryList>>;
73 MediaQueryListSet m_mediaLists; 74 MediaQueryListSet m_mediaLists;
74 75
75 using ViewportListenerSet = HeapLinkedHashSet<Member<MediaQueryListListener>>; 76 using ViewportListenerSet = HeapLinkedHashSet<Member<MediaQueryListListener>>;
76 ViewportListenerSet m_viewportListeners; 77 ViewportListenerSet m_viewportListeners;
77 }; 78 };
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif // MediaQueryMatcher_h 82 #endif // MediaQueryMatcher_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryList.h ('k') | third_party/WebKit/Source/core/css/MediaValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698