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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.idl

Issue 2493873002: Introduce Internals#replaceMisspelled() and Internals#setMarker() (Closed)
Patch Set: for yosin's nit Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // If the argument is omitted, the top-level document is used. 98 // If the argument is omitted, the top-level document is used.
99 boolean hasAutofocusRequest(optional Document document); 99 boolean hasAutofocusRequest(optional Document document);
100 [RaisesException] sequence<DOMString> formControlStateOfHistoryItem(); 100 [RaisesException] sequence<DOMString> formControlStateOfHistoryItem();
101 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values); 101 [RaisesException] void setFormControlStateOfHistoryItem(sequence<DOMString> values);
102 readonly attribute Window pagePopupWindow; 102 readonly attribute Window pagePopupWindow;
103 103
104 [RaisesException] ClientRect absoluteCaretBounds(); 104 [RaisesException] ClientRect absoluteCaretBounds();
105 105
106 ClientRect boundingBox(Element element); 106 ClientRect boundingBox(Element element);
107 107
108 [RaisesException] void setMarker(Document document, Range range, DOMString m arkerType);
108 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark erType); 109 [RaisesException] unsigned long markerCountForNode(Node node, DOMString mark erType);
109 unsigned long activeMarkerCountForNode(Node node); 110 unsigned long activeMarkerCountForNode(Node node);
110 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index); 111 [RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index);
111 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma rkerType, unsigned long index); 112 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString ma rkerType, unsigned long index);
112 void addTextMatchMarker(Range range, boolean isActive); 113 void addTextMatchMarker(Range range, boolean isActive);
113 [RaisesException] void addCompositionMarker(Range range, DOMString underline ColorValue, boolean thick, DOMString backgroundColorValue); 114 [RaisesException] void addCompositionMarker(Range range, DOMString underline ColorValue, boolean thick, DOMString backgroundColorValue);
114 void setMarkersActive(Node node, unsigned long startOffset, unsigned long en dOffset, boolean active); 115 void setMarkersActive(Node node, unsigned long startOffset, unsigned long en dOffset, boolean active);
115 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight ); 116 void setMarkedTextMatchesAreHighlighted(Document document, boolean highlight );
116 117
117 [RaisesException] void setFrameViewPosition(Document document, long x, long y); 118 [RaisesException] void setFrameViewPosition(Document document, long x, long y);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 DOMString svgNamespace(); 159 DOMString svgNamespace();
159 sequence<DOMString> svgTags(); 160 sequence<DOMString> svgTags();
160 161
161 [RaisesException] NodeList nodesFromRect(Document document, long x, long y, 162 [RaisesException] NodeList nodesFromRect(Document document, long x, long y,
162 unsigned long topPadding, unsigned long rightPadding, unsigned long bott omPadding, unsigned long leftPadding, 163 unsigned long topPadding, unsigned long rightPadding, unsigned long bott omPadding, unsigned long leftPadding,
163 boolean ignoreClipping, boolean allowChildFrameContent); 164 boolean ignoreClipping, boolean allowChildFrameContent);
164 165
165 [RaisesException] boolean hasSpellingMarker(Document document, long from, lo ng length); 166 [RaisesException] boolean hasSpellingMarker(Document document, long from, lo ng length);
166 [RaisesException] boolean hasGrammarMarker(Document document, long from, lon g length); 167 [RaisesException] boolean hasGrammarMarker(Document document, long from, lon g length);
167 [RaisesException] void setSpellCheckingEnabled(boolean enabled); 168 [RaisesException] void setSpellCheckingEnabled(boolean enabled);
169 [RaisesException] void replaceMisspelled(Document document, DOMString replac ement);
168 170
169 bool canHyphenate(DOMString locale); 171 bool canHyphenate(DOMString locale);
170 void setMockHyphenation(DOMString locale); 172 void setMockHyphenation(DOMString locale);
171 173
172 boolean isOverwriteModeEnabled(Document document); 174 boolean isOverwriteModeEnabled(Document document);
173 void toggleOverwriteModeEnabled(Document document); 175 void toggleOverwriteModeEnabled(Document document);
174 176
175 unsigned long numberOfScrollableAreas(Document document); 177 unsigned long numberOfScrollableAreas(Document document);
176 178
177 boolean isPageBoxVisible(Document document, long pageNumber); 179 boolean isPageBoxVisible(Document document, long pageNumber);
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 DOMString getScrollAnimationState(Node node); 357 DOMString getScrollAnimationState(Node node);
356 358
357 DOMString getProgrammaticScrollAnimationState(Node node); 359 DOMString getProgrammaticScrollAnimationState(Node node);
358 360
359 ClientRect visualRect(Node node); 361 ClientRect visualRect(Node node);
360 362
361 OriginTrialsTest originTrialsTest(); 363 OriginTrialsTest originTrialsTest();
362 364
363 void crash(); 365 void crash();
364 }; 366 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698