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

Side by Side Diff: sky/engine/core/css/MediaQueryList.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/MediaQueryExp.h ('k') | sky/engine/core/css/RuleSet.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 29 matching lines...) Expand all
40 class MediaQuerySet; 40 class MediaQuerySet;
41 41
42 // MediaQueryList interface is specified at http://dev.w3.org/csswg/cssom-view/# the-mediaquerylist-interface 42 // MediaQueryList interface is specified at http://dev.w3.org/csswg/cssom-view/# the-mediaquerylist-interface
43 // The objects of this class are returned by window.matchMedia. They may be used to 43 // The objects of this class are returned by window.matchMedia. They may be used to
44 // retrieve the current value of the given media query and to add/remove listene rs that 44 // retrieve the current value of the given media query and to add/remove listene rs that
45 // will be called whenever the value of the query changes. 45 // will be called whenever the value of the query changes.
46 46
47 class MediaQueryList final : public RefCounted<MediaQueryList>, public EventTarg etWithInlineData, public ActiveDOMObject { 47 class MediaQueryList final : public RefCounted<MediaQueryList>, public EventTarg etWithInlineData, public ActiveDOMObject {
48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>); 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>);
49 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList);
51 public: 50 public:
52 static PassRefPtr<MediaQueryList> create(ExecutionContext*, PassRefPtr<Media QueryMatcher>, PassRefPtr<MediaQuerySet>); 51 static PassRefPtr<MediaQueryList> create(ExecutionContext*, PassRefPtr<Media QueryMatcher>, PassRefPtr<MediaQuerySet>);
53 virtual ~MediaQueryList(); 52 virtual ~MediaQueryList();
54 53
55 String media() const; 54 String media() const;
56 bool matches(); 55 bool matches();
57 56
58 // These two functions are provided for compatibility with JS code 57 // These two functions are provided for compatibility with JS code
59 // written before the change listener became a DOM event. 58 // written before the change listener became a DOM event.
60 void addDeprecatedListener(PassRefPtr<EventListener>); 59 void addDeprecatedListener(PassRefPtr<EventListener>);
(...skipping 24 matching lines...) Expand all
85 RefPtr<MediaQuerySet> m_media; 84 RefPtr<MediaQuerySet> m_media;
86 typedef ListHashSet<RefPtr<MediaQueryListListener> > ListenerList; 85 typedef ListHashSet<RefPtr<MediaQueryListListener> > ListenerList;
87 ListenerList m_listeners; 86 ListenerList m_listeners;
88 bool m_matchesDirty; 87 bool m_matchesDirty;
89 bool m_matches; 88 bool m_matches;
90 }; 89 };
91 90
92 } // namespace blink 91 } // namespace blink
93 92
94 #endif // MediaQueryList_h 93 #endif // MediaQueryList_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/MediaQueryExp.h ('k') | sky/engine/core/css/RuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698