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

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

Issue 671173006: Remove lots of machinery related to inline event handlers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « sky/engine/core/css/FontFaceSet.idl ('k') | sky/engine/core/css/MediaQueryList.idl » ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>); 46 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCounted<MediaQueryList>);
47 DEFINE_WRAPPERTYPEINFO(); 47 DEFINE_WRAPPERTYPEINFO();
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList); 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaQueryList);
49 public: 49 public:
50 static PassRefPtrWillBeRawPtr<MediaQueryList> create(ExecutionContext*, Pass RefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); 50 static PassRefPtrWillBeRawPtr<MediaQueryList> create(ExecutionContext*, Pass RefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>);
51 virtual ~MediaQueryList(); 51 virtual ~MediaQueryList();
52 52
53 String media() const; 53 String media() const;
54 bool matches(); 54 bool matches();
55 55
56 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
57
58 // These two functions are provided for compatibility with JS code 56 // These two functions are provided for compatibility with JS code
59 // written before the change listener became a DOM event. 57 // written before the change listener became a DOM event.
60 void addDeprecatedListener(PassRefPtr<EventListener>); 58 void addDeprecatedListener(PassRefPtr<EventListener>);
61 void removeDeprecatedListener(PassRefPtr<EventListener>); 59 void removeDeprecatedListener(PassRefPtr<EventListener>);
62 60
63 // C++ code can use these functions to listen to changes instead of having t o use DOM event listeners. 61 // C++ code can use these functions to listen to changes instead of having t o use DOM event listeners.
64 void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); 62 void addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>);
65 void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>); 63 void removeListener(PassRefPtrWillBeRawPtr<MediaQueryListListener>);
66 64
67 // Will return true if a DOM event should be scheduled. 65 // Will return true if a DOM event should be scheduled.
(...skipping 17 matching lines...) Expand all
85 RefPtrWillBeMember<MediaQuerySet> m_media; 83 RefPtrWillBeMember<MediaQuerySet> m_media;
86 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L istenerList; 84 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener> > L istenerList;
87 ListenerList m_listeners; 85 ListenerList m_listeners;
88 bool m_matchesDirty; 86 bool m_matchesDirty;
89 bool m_matches; 87 bool m_matches;
90 }; 88 };
91 89
92 } // namespace blink 90 } // namespace blink
93 91
94 #endif // MediaQueryList_h 92 #endif // MediaQueryList_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontFaceSet.idl ('k') | sky/engine/core/css/MediaQueryList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698