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

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

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 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
« no previous file with comments | « Source/core/css/MediaQueryListTest.cpp ('k') | Source/core/css/MediaValuesCached.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 19 matching lines...) Expand all
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 queries
37 // whenever it is needed and to call the listeners if the corresponding query ha s changed. 37 // whenever it is needed and to call the listeners if the corresponding query ha s changed.
38 // The listeners must be called in the very same order in which they have been a dded. 38 // The listeners must be called in the very same order in which they have been a dded.
39 39
40 class MediaQueryMatcher FINAL : public RefCountedWillBeGarbageCollectedFinalized <MediaQueryMatcher> { 40 class MediaQueryMatcher final : public RefCountedWillBeGarbageCollectedFinalized <MediaQueryMatcher> {
41 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryMatcher) 41 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryMatcher)
42 public: 42 public:
43 static PassRefPtrWillBeRawPtr<MediaQueryMatcher> create(Document&); 43 static PassRefPtrWillBeRawPtr<MediaQueryMatcher> create(Document&);
44 void documentDetached(); 44 void documentDetached();
45 45
46 void addMediaQueryList(MediaQueryList*); 46 void addMediaQueryList(MediaQueryList*);
47 void removeMediaQueryList(MediaQueryList*); 47 void removeMediaQueryList(MediaQueryList*);
48 48
49 void addViewportListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); 49 void addViewportListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>);
50 void removeViewportListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); 50 void removeViewportListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>);
(...skipping 17 matching lines...) Expand all
68 typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<MediaQueryList> > Med iaQueryListSet; 68 typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<MediaQueryList> > Med iaQueryListSet;
69 MediaQueryListSet m_mediaLists; 69 MediaQueryListSet m_mediaLists;
70 70
71 typedef WillBeHeapLinkedHashSet<RefPtrWillBeMember<MediaQueryListListener> > ViewportListenerSet; 71 typedef WillBeHeapLinkedHashSet<RefPtrWillBeMember<MediaQueryListListener> > ViewportListenerSet;
72 ViewportListenerSet m_viewportListeners; 72 ViewportListenerSet m_viewportListeners;
73 }; 73 };
74 74
75 } 75 }
76 76
77 #endif // MediaQueryMatcher_h 77 #endif // MediaQueryMatcher_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryListTest.cpp ('k') | Source/core/css/MediaValuesCached.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698