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

Side by Side Diff: Source/core/testing/Internals.h

Issue 1120963003: Implements getImageAnimationPolicy() at ImageLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adds Internals::advanceTimeWithImage Created 5 years, 7 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 | « Source/core/loader/ImageLoader.cpp ('k') | Source/core/testing/Internals.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&); 104 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&);
105 String shadowRootType(const Node*, ExceptionState&) const; 105 String shadowRootType(const Node*, ExceptionState&) const;
106 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const; 106 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const;
107 bool hasContentElement(const Node*, ExceptionState&) const; 107 bool hasContentElement(const Node*, ExceptionState&) const;
108 size_t countElementShadow(const Node*, ExceptionState&) const; 108 size_t countElementShadow(const Node*, ExceptionState&) const;
109 const AtomicString& shadowPseudoId(Element*); 109 const AtomicString& shadowPseudoId(Element*);
110 110
111 // CSS Animation / Transition testing. 111 // CSS Animation / Transition testing.
112 void pauseAnimations(double pauseTime, ExceptionState&); 112 void pauseAnimations(double pauseTime, ExceptionState&);
113 113
114 // Advances Time to test whether animated images work properly.
dmazzoni 2015/05/27 15:15:30 Advances Time -> Advances time
je_julie(Not used) 2015/05/27 16:48:38 I updated comment with new API name.
115 void advanceTimeWithImage(Element* image, double advancedTime, ExceptionStat e&);
dmazzoni 2015/05/27 15:15:30 Instead of advancedTime, how about deltaTime to ma
je_julie(Not used) 2015/05/27 16:48:38 Thanks for suggestion.
116
114 bool isValidContentSelect(Element* insertionPoint, ExceptionState&); 117 bool isValidContentSelect(Element* insertionPoint, ExceptionState&);
115 Node* treeScopeRootNode(Node*); 118 Node* treeScopeRootNode(Node*);
116 Node* parentTreeScope(Node*); 119 Node* parentTreeScope(Node*);
117 bool hasSelectorForIdInShadow(Element* host, const AtomicString& idValue, Ex ceptionState&); 120 bool hasSelectorForIdInShadow(Element* host, const AtomicString& idValue, Ex ceptionState&);
118 bool hasSelectorForClassInShadow(Element* host, const AtomicString& classNam e, ExceptionState&); 121 bool hasSelectorForClassInShadow(Element* host, const AtomicString& classNam e, ExceptionState&);
119 bool hasSelectorForAttributeInShadow(Element* host, const AtomicString& attr ibuteName, ExceptionState&); 122 bool hasSelectorForAttributeInShadow(Element* host, const AtomicString& attr ibuteName, ExceptionState&);
120 unsigned short compareTreeScopePosition(const Node*, const Node*, ExceptionS tate&) const; 123 unsigned short compareTreeScopePosition(const Node*, const Node*, ExceptionS tate&) const;
121 124
122 Node* nextSiblingInComposedTree(Node*, ExceptionState&); 125 Node* nextSiblingInComposedTree(Node*, ExceptionState&);
123 Node* firstChildInComposedTree(Node*, ExceptionState&); 126 Node* firstChildInComposedTree(Node*, ExceptionState&);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 366
364 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 367 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
365 Member<InternalRuntimeFlags> m_runtimeFlags; 368 Member<InternalRuntimeFlags> m_runtimeFlags;
366 369
367 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 370 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
368 }; 371 };
369 372
370 } // namespace blink 373 } // namespace blink
371 374
372 #endif // Internals_h 375 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698