Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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&); |
|
tkent
2014/01/06 23:29:49
Please don't change unrelated code.
ziran.sun
2014/01/07 17:18:26
This and the rest of similar changes are updated a
| |
| 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 21 matching lines...) Expand all Loading... | |
| 150 void addTextMatchMarker(const Range*, bool isActive); | 150 void addTextMatchMarker(const Range*, bool isActive); |
| 151 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool, ExceptionState&); | 151 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool, ExceptionState&); |
| 152 | 152 |
| 153 void setScrollViewPosition(Document*, long x, long y, ExceptionState&); | 153 void setScrollViewPosition(Document*, long x, long y, ExceptionState&); |
| 154 void setPagination(Document* document, const String& mode, int gap, Exceptio nState& ec) { setPagination(document, mode, gap, 0, ec); } | 154 void setPagination(Document* document, const String& mode, int gap, Exceptio nState& ec) { setPagination(document, mode, gap, 0, ec); } |
| 155 void setPagination(Document*, const String& mode, int gap, int pageLength, E xceptionState&); | 155 void setPagination(Document*, const String& mode, int gap, int pageLength, E xceptionState&); |
| 156 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&); | 156 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&); |
| 157 | 157 |
| 158 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); | 158 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); |
| 159 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); | 159 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); |
| 160 String suggestedValue(Element* inputElement, ExceptionState&); | 160 String suggestedValue(Element*, ExceptionState&); |
| 161 void setSuggestedValue(Element* inputElement, const String&, ExceptionState& ); | 161 void setSuggestedValue(Element*, const String&, ExceptionState&); |
| 162 void setEditingValue(Element* inputElement, const String&, ExceptionState&); | 162 void setEditingValue(Element* inputElement, const String&, ExceptionState&); |
| 163 void setAutofilled(Element*, bool enabled, ExceptionState&); | 163 void setAutofilled(Element*, bool enabled, ExceptionState&); |
| 164 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception State&); | 164 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception State&); |
| 165 | 165 |
| 166 void paintControlTints(Document*, ExceptionState&); | 166 void paintControlTints(Document*, ExceptionState&); |
| 167 | 167 |
| 168 PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocati on, int rangeLength, ExceptionState&); | 168 PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocati on, int rangeLength, ExceptionState&); |
| 169 unsigned locationFromRange(Element* scope, const Range*, ExceptionState&); | 169 unsigned locationFromRange(Element* scope, const Range*, ExceptionState&); |
| 170 unsigned lengthFromRange(Element* scope, const Range*, ExceptionState&); | 170 unsigned lengthFromRange(Element* scope, const Range*, ExceptionState&); |
| 171 String rangeAsText(const Range*, ExceptionState&); | 171 String rangeAsText(const Range*, ExceptionState&); |
| 172 | 172 |
| 173 PassRefPtr<DOMPoint> touchPositionAdjustedToBestClickableNode(long x, long y , long width, long height, Document*, ExceptionState&); | 173 PassRefPtr<DOMPoint> touchPositionAdjustedToBestClickableNode(long x, long y , long width, long height, Document*, ExceptionState&); |
| 174 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&); | 174 Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionState&); |
| 175 PassRefPtr<DOMPoint> touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionState&); | 175 PassRefPtr<DOMPoint> touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionState&); |
| 176 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon g height, Document*, ExceptionState&); | 176 Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, lon g height, Document*, ExceptionState&); |
| 177 PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long wi dth, long height, Document*, ExceptionState&); | 177 PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long wi dth, long height, Document*, ExceptionState&); |
| 178 | 178 |
| 179 int lastSpellCheckRequestSequence(Document*, ExceptionState&); | 179 int lastSpellCheckRequestSequence(Document*, ExceptionState&); |
| 180 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); | 180 int lastSpellCheckProcessedSequence(Document*, ExceptionState&); |
| 181 | 181 |
| 182 Vector<String> userPreferredLanguages() const; | 182 Vector<AtomicString> userPreferredLanguages() const; |
| 183 void setUserPreferredLanguages(const Vector<String>&); | 183 void setUserPreferredLanguages(const Vector<String>&); |
| 184 | 184 |
| 185 unsigned wheelEventHandlerCount(Document*, ExceptionState&); | 185 unsigned wheelEventHandlerCount(Document*, ExceptionState&); |
| 186 unsigned touchEventHandlerCount(Document*, ExceptionState&); | 186 unsigned touchEventHandlerCount(Document*, ExceptionState&); |
| 187 PassRefPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionSta te&); | 187 PassRefPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionSta te&); |
| 188 | 188 |
| 189 // This is used to test rect based hit testing like what's done on touch scr eens. | 189 // This is used to test rect based hit testing like what's done on touch scr eens. |
| 190 PassRefPtr<NodeList> nodesFromRect(Document*, int x, int y, unsigned topPadd ing, unsigned rightPadding, | 190 PassRefPtr<NodeList> nodesFromRect(Document*, int x, int y, unsigned topPadd ing, unsigned rightPadding, |
| 191 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionState&) const; | 191 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionState&) const; |
| 192 | 192 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 |
| OLD | NEW |