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

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

Issue 99623012: Make calls to AtomicString(const String&) explicit in testing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/testing/InternalSettings.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ShadowRoot* ensureShadowRoot(Element* host, ExceptionState&); 95 ShadowRoot* ensureShadowRoot(Element* host, ExceptionState&);
96 ShadowRoot* shadowRoot(Element* host, ExceptionState&); 96 ShadowRoot* shadowRoot(Element* host, ExceptionState&);
97 ShadowRoot* youngestShadowRoot(Element* host, ExceptionState&); 97 ShadowRoot* youngestShadowRoot(Element* host, ExceptionState&);
98 ShadowRoot* oldestShadowRoot(Element* host, ExceptionState&); 98 ShadowRoot* oldestShadowRoot(Element* host, ExceptionState&);
99 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&); 99 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&);
100 ShadowRoot* olderShadowRoot(Node* shadow, ExceptionState&); 100 ShadowRoot* olderShadowRoot(Node* shadow, ExceptionState&);
101 String shadowRootType(const Node*, ExceptionState&) const; 101 String shadowRootType(const Node*, ExceptionState&) const;
102 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const; 102 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const;
103 bool hasContentElement(const Node*, ExceptionState&) const; 103 bool hasContentElement(const Node*, ExceptionState&) const;
104 size_t countElementShadow(const Node*, ExceptionState&) const; 104 size_t countElementShadow(const Node*, ExceptionState&) const;
105 String shadowPseudoId(Element*, ExceptionState&); 105 const AtomicString& shadowPseudoId(Element*, ExceptionState&);
106 void setShadowPseudoId(Element*, const String&, ExceptionState&); 106 void setShadowPseudoId(Element*, const AtomicString&, ExceptionState&);
107 107
108 // CSS Animation / Transition testing. 108 // CSS Animation / Transition testing.
109 unsigned numberOfActiveAnimations() const; 109 unsigned numberOfActiveAnimations() const;
110 void pauseAnimations(double pauseTime, ExceptionState&); 110 void pauseAnimations(double pauseTime, ExceptionState&);
111 111
112 PassRefPtr<Element> createContentElement(ExceptionState&); 112 PassRefPtr<Element> createContentElement(ExceptionState&);
113 bool isValidContentSelect(Element* insertionPoint, ExceptionState&); 113 bool isValidContentSelect(Element* insertionPoint, ExceptionState&);
114 Node* treeScopeRootNode(Node*, ExceptionState&); 114 Node* treeScopeRootNode(Node*, ExceptionState&);
115 Node* parentTreeScope(Node*, ExceptionState&); 115 Node* parentTreeScope(Node*, ExceptionState&);
116 bool hasSelectorForIdInShadow(Element* host, const String& idValue, Exceptio nState&); 116 bool hasSelectorForIdInShadow(Element* host, const AtomicString& idValue, Ex ceptionState&);
117 bool hasSelectorForClassInShadow(Element* host, const String& className, Exc eptionState&); 117 bool hasSelectorForClassInShadow(Element* host, const AtomicString& classNam e, ExceptionState&);
118 bool hasSelectorForAttributeInShadow(Element* host, const String& attributeN ame, ExceptionState&); 118 bool hasSelectorForAttributeInShadow(Element* host, const AtomicString& attr ibuteName, ExceptionState&);
119 bool hasSelectorForPseudoClassInShadow(Element* host, const String& pseudoCl ass, ExceptionState&); 119 bool hasSelectorForPseudoClassInShadow(Element* host, const String& pseudoCl ass, ExceptionState&);
120 unsigned short compareTreeScopePosition(const Node*, const Node*, ExceptionS tate&) const; 120 unsigned short compareTreeScopePosition(const Node*, const Node*, ExceptionS tate&) const;
121 121
122 // FIXME: Rename these functions if walker is prefered. 122 // FIXME: Rename these functions if walker is prefered.
123 Node* nextSiblingByWalker(Node*, ExceptionState&); 123 Node* nextSiblingByWalker(Node*, ExceptionState&);
124 Node* firstChildByWalker(Node*, ExceptionState&); 124 Node* firstChildByWalker(Node*, ExceptionState&);
125 Node* lastChildByWalker(Node*, ExceptionState&); 125 Node* lastChildByWalker(Node*, ExceptionState&);
126 Node* nextNodeByWalker(Node*, ExceptionState&); 126 Node* nextNodeByWalker(Node*, ExceptionState&);
127 Node* previousNodeByWalker(Node*, ExceptionState&); 127 Node* previousNodeByWalker(Node*, ExceptionState&);
128 128
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 RefPtr<DOMWindow> m_frontendWindow; 316 RefPtr<DOMWindow> m_frontendWindow;
317 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; 317 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel;
318 RefPtr<InternalRuntimeFlags> m_runtimeFlags; 318 RefPtr<InternalRuntimeFlags> m_runtimeFlags;
319 RefPtr<ScrollingCoordinator> m_scrollingCoordinator; 319 RefPtr<ScrollingCoordinator> m_scrollingCoordinator;
320 RefPtr<InternalProfilers> m_profilers; 320 RefPtr<InternalProfilers> m_profilers;
321 }; 321 };
322 322
323 } // namespace WebCore 323 } // namespace WebCore
324 324
325 #endif 325 #endif
OLDNEW
« no previous file with comments | « Source/core/testing/InternalSettings.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698