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

Side by Side Diff: Source/core/dom/ScriptedAnimationController.h

Issue 1093803002: ScriptedAnimationController: factor out has-schedulable items predicate. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | Source/core/dom/ScriptedAnimationController.cpp » ('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) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void dispatchEventsAndCallbacksForPrinting(); 70 void dispatchEventsAndCallbacksForPrinting();
71 private: 71 private:
72 explicit ScriptedAnimationController(Document*); 72 explicit ScriptedAnimationController(Document*);
73 73
74 void scheduleAnimationIfNeeded(); 74 void scheduleAnimationIfNeeded();
75 75
76 void dispatchEvents(const AtomicString& eventInterfaceFilter = AtomicString( )); 76 void dispatchEvents(const AtomicString& eventInterfaceFilter = AtomicString( ));
77 void executeCallbacks(double monotonicTimeNow); 77 void executeCallbacks(double monotonicTimeNow);
78 void callMediaQueryListListeners(); 78 void callMediaQueryListListeners();
79 79
80 bool hasScheduledItems() const;
81
80 RawPtrWillBeMember<Document> m_document; 82 RawPtrWillBeMember<Document> m_document;
81 FrameRequestCallbackCollection m_callbackCollection; 83 FrameRequestCallbackCollection m_callbackCollection;
82 int m_suspendCount; 84 int m_suspendCount;
83 WillBeHeapVector<RefPtrWillBeMember<Event>> m_eventQueue; 85 WillBeHeapVector<RefPtrWillBeMember<Event>> m_eventQueue;
84 WillBeHeapListHashSet<std::pair<RawPtrWillBeMember<const EventTarget>, const StringImpl*>> m_perFrameEvents; 86 WillBeHeapListHashSet<std::pair<RawPtrWillBeMember<const EventTarget>, const StringImpl*>> m_perFrameEvents;
85 typedef WillBeHeapListHashSet<RefPtrWillBeMember<MediaQueryListListener>> Me diaQueryListListeners; 87 using MediaQueryListListeners = WillBeHeapListHashSet<RefPtrWillBeMember<Med iaQueryListListener>>;
86 MediaQueryListListeners m_mediaQueryListListeners; 88 MediaQueryListListeners m_mediaQueryListListeners;
87 }; 89 };
88 90
89 } // namespace blink 91 } // namespace blink
90 92
91 #endif // ScriptedAnimationController_h 93 #endif // ScriptedAnimationController_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/ScriptedAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698