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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryList.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/MediaQueryList.h
diff --git a/third_party/WebKit/Source/core/css/MediaQueryList.h b/third_party/WebKit/Source/core/css/MediaQueryList.h
index 1e5645fef641d1339429bcb0296f47d58263affe..26bab243fb88190adb54f74e90479bfeec875686 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryList.h
+++ b/third_party/WebKit/Source/core/css/MediaQueryList.h
@@ -42,12 +42,12 @@ class MediaQuerySet;
// retrieve the current value of the given media query and to add/remove listeners that
// will be called whenever the value of the query changes.
-class CORE_EXPORT MediaQueryList final : public EventTargetWithInlineData, public RefCountedWillBeNoBase<MediaQueryList>, public ActiveScriptWrappable, public ActiveDOMObject {
+class CORE_EXPORT MediaQueryList final : public EventTargetWithInlineData, public ActiveScriptWrappable, public ActiveDOMObject {
REFCOUNTED_EVENT_TARGET(MediaQueryList);
DEFINE_WRAPPERTYPEINFO();
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList);
+ USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList);
public:
- static PassRefPtrWillBeRawPtr<MediaQueryList> create(ExecutionContext*, PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>);
+ static RawPtr<MediaQueryList> create(ExecutionContext*, RawPtr<MediaQueryMatcher>, RawPtr<MediaQuerySet>);
~MediaQueryList() override;
String media() const;
@@ -57,15 +57,15 @@ public:
// These two functions are provided for compatibility with JS code
// written before the change listener became a DOM event.
- void addDeprecatedListener(PassRefPtrWillBeRawPtr<EventListener>);
- void removeDeprecatedListener(PassRefPtrWillBeRawPtr<EventListener>);
+ void addDeprecatedListener(RawPtr<EventListener>);
+ void removeDeprecatedListener(RawPtr<EventListener>);
// C++ code can use these functions to listen to changes instead of having to use DOM event listeners.
- void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>);
- void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>);
+ void addListener(RawPtr<MediaQueryListListener>);
+ void removeListener(RawPtr<MediaQueryListListener>);
// Will return true if a DOM event should be scheduled.
- bool mediaFeaturesChanged(WillBeHeapVector<RefPtrWillBeMember<MediaQueryListListener>>* listenersToNotify);
+ bool mediaFeaturesChanged(HeapVector<Member<MediaQueryListListener>>* listenersToNotify);
DECLARE_VIRTUAL_TRACE();
@@ -79,13 +79,13 @@ public:
ExecutionContext* getExecutionContext() const override;
private:
- MediaQueryList(ExecutionContext*, PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>);
+ MediaQueryList(ExecutionContext*, RawPtr<MediaQueryMatcher>, RawPtr<MediaQuerySet>);
bool updateMatches();
- RefPtrWillBeMember<MediaQueryMatcher> m_matcher;
- RefPtrWillBeMember<MediaQuerySet> m_media;
- using ListenerList = WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener>>;
+ Member<MediaQueryMatcher> m_matcher;
+ Member<MediaQuerySet> m_media;
+ using ListenerList = HeapListHashSet<Member<MediaQueryListListener>>;
ListenerList m_listeners;
bool m_matchesDirty;
bool m_matches;
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryExp.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698