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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 Node* cloneNode(bool deep) final; 1154 Node* cloneNode(bool deep) final;
1155 void cloneDataFromDocument(const Document&); 1155 void cloneDataFromDocument(const Document&);
1156 bool isSecureContextImpl(const SecureContextCheck priviligeContextCheck) con st; 1156 bool isSecureContextImpl(const SecureContextCheck priviligeContextCheck) con st;
1157 1157
1158 ShadowCascadeOrder m_shadowCascadeOrder = ShadowCascadeNone; 1158 ShadowCascadeOrder m_shadowCascadeOrder = ShadowCascadeNone;
1159 1159
1160 const KURL& virtualURL() const final; // Same as url(), but needed for Execu tionContext to implement it without a performance loss for direct calls. 1160 const KURL& virtualURL() const final; // Same as url(), but needed for Execu tionContext to implement it without a performance loss for direct calls.
1161 KURL virtualCompleteURL(const String&) const final; // Same as completeURL() for the same reason as above. 1161 KURL virtualCompleteURL(const String&) const final; // Same as completeURL() for the same reason as above.
1162 1162
1163 void updateTitle(const String&); 1163 void updateTitle(const String&);
1164 void updateFocusAppearanceTimerFired(Timer<Document>*); 1164 void updateFocusAppearanceTimerFired(TimerBase*);
1165 void updateBaseURL(); 1165 void updateBaseURL();
1166 1166
1167 void executeScriptsWaitingForResources(); 1167 void executeScriptsWaitingForResources();
1168 1168
1169 void loadEventDelayTimerFired(Timer<Document>*); 1169 void loadEventDelayTimerFired(TimerBase*);
1170 void pluginLoadingTimerFired(Timer<Document>*); 1170 void pluginLoadingTimerFired(TimerBase*);
1171 1171
1172 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; } 1172 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; }
1173 void addMutationEventListenerTypeIfEnabled(ListenerType); 1173 void addMutationEventListenerTypeIfEnabled(ListenerType);
1174 1174
1175 void didAssociateFormControlsTimerFired(Timer<Document>*); 1175 void didAssociateFormControlsTimerFired(TimerBase*);
1176 1176
1177 void clearFocusedElementSoon(); 1177 void clearFocusedElementSoon();
1178 void clearFocusedElementTimerFired(Timer<Document>*); 1178 void clearFocusedElementTimerFired(TimerBase*);
1179 1179
1180 bool haveScriptBlockingStylesheetsLoaded() const; 1180 bool haveScriptBlockingStylesheetsLoaded() const;
1181 bool haveRenderBlockingStylesheetsLoaded() const; 1181 bool haveRenderBlockingStylesheetsLoaded() const;
1182 void styleResolverMayHaveChanged(); 1182 void styleResolverMayHaveChanged();
1183 1183
1184 void setHoverNode(Node*); 1184 void setHoverNode(Node*);
1185 1185
1186 using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>; 1186 using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>;
1187 static EventFactorySet& eventFactories(); 1187 static EventFactorySet& eventFactories();
1188 1188
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 unsigned m_writeRecursionDepth; 1371 unsigned m_writeRecursionDepth;
1372 1372
1373 Member<ScriptedAnimationController> m_scriptedAnimationController; 1373 Member<ScriptedAnimationController> m_scriptedAnimationController;
1374 Member<ScriptedIdleTaskController> m_scriptedIdleTaskController; 1374 Member<ScriptedIdleTaskController> m_scriptedIdleTaskController;
1375 std::unique_ptr<MainThreadTaskRunner> m_taskRunner; 1375 std::unique_ptr<MainThreadTaskRunner> m_taskRunner;
1376 Member<TextAutosizer> m_textAutosizer; 1376 Member<TextAutosizer> m_textAutosizer;
1377 1377
1378 Member<V0CustomElementRegistrationContext> m_registrationContext; 1378 Member<V0CustomElementRegistrationContext> m_registrationContext;
1379 Member<V0CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue; 1379 Member<V0CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue;
1380 1380
1381 void elementDataCacheClearTimerFired(Timer<Document>*); 1381 void elementDataCacheClearTimerFired(TimerBase*);
1382 Timer<Document> m_elementDataCacheClearTimer; 1382 Timer<Document> m_elementDataCacheClearTimer;
1383 1383
1384 Member<ElementDataCache> m_elementDataCache; 1384 Member<ElementDataCache> m_elementDataCache;
1385 1385
1386 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, std::unique_ptr<Lo cale>>; 1386 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, std::unique_ptr<Lo cale>>;
1387 LocaleIdentifierToLocaleMap m_localeCache; 1387 LocaleIdentifierToLocaleMap m_localeCache;
1388 1388
1389 Member<AnimationTimeline> m_timeline; 1389 Member<AnimationTimeline> m_timeline;
1390 Member<CompositorPendingAnimations> m_compositorPendingAnimations; 1390 Member<CompositorPendingAnimations> m_compositorPendingAnimations;
1391 1391
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1460 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1461 1461
1462 } // namespace blink 1462 } // namespace blink
1463 1463
1464 #ifndef NDEBUG 1464 #ifndef NDEBUG
1465 // Outside the WebCore namespace for ease of invocation from gdb. 1465 // Outside the WebCore namespace for ease of invocation from gdb.
1466 CORE_EXPORT void showLiveDocumentInstances(); 1466 CORE_EXPORT void showLiveDocumentInstances();
1467 #endif 1467 #endif
1468 1468
1469 #endif // Document_h 1469 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698