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

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

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
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool hasAutofocusRequest(Document*); 177 bool hasAutofocusRequest(Document*);
178 bool hasAutofocusRequest(); 178 bool hasAutofocusRequest();
179 Vector<String> formControlStateOfHistoryItem(ExceptionState&); 179 Vector<String> formControlStateOfHistoryItem(ExceptionState&);
180 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&); 180 void setFormControlStateOfHistoryItem(const Vector<String>&, ExceptionState&);
181 DOMWindow* pagePopupWindow() const; 181 DOMWindow* pagePopupWindow() const;
182 182
183 ClientRect* absoluteCaretBounds(ExceptionState&); 183 ClientRect* absoluteCaretBounds(ExceptionState&);
184 184
185 ClientRect* boundingBox(Element*); 185 ClientRect* boundingBox(Element*);
186 186
187 void setMarker(Document*, const Range*, const String&, ExceptionState&);
187 unsigned markerCountForNode(Node*, const String&, ExceptionState&); 188 unsigned markerCountForNode(Node*, const String&, ExceptionState&);
188 unsigned activeMarkerCountForNode(Node*); 189 unsigned activeMarkerCountForNode(Node*);
189 Range* markerRangeForNode(Node*, 190 Range* markerRangeForNode(Node*,
190 const String& markerType, 191 const String& markerType,
191 unsigned index, 192 unsigned index,
192 ExceptionState&); 193 ExceptionState&);
193 String markerDescriptionForNode(Node*, 194 String markerDescriptionForNode(Node*,
194 const String& markerType, 195 const String& markerType,
195 unsigned index, 196 unsigned index,
196 ExceptionState&); 197 ExceptionState&);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 unsigned rightPadding, 287 unsigned rightPadding,
287 unsigned bottomPadding, 288 unsigned bottomPadding,
288 unsigned leftPadding, 289 unsigned leftPadding,
289 bool ignoreClipping, 290 bool ignoreClipping,
290 bool allowChildFrameContent, 291 bool allowChildFrameContent,
291 ExceptionState&) const; 292 ExceptionState&) const;
292 293
293 bool hasSpellingMarker(Document*, int from, int length, ExceptionState&); 294 bool hasSpellingMarker(Document*, int from, int length, ExceptionState&);
294 bool hasGrammarMarker(Document*, int from, int length, ExceptionState&); 295 bool hasGrammarMarker(Document*, int from, int length, ExceptionState&);
295 void setSpellCheckingEnabled(bool, ExceptionState&); 296 void setSpellCheckingEnabled(bool, ExceptionState&);
297 void replaceMisspelled(Document*, const String&, ExceptionState&);
296 298
297 bool canHyphenate(const AtomicString& locale); 299 bool canHyphenate(const AtomicString& locale);
298 void setMockHyphenation(const AtomicString& locale); 300 void setMockHyphenation(const AtomicString& locale);
299 301
300 bool isOverwriteModeEnabled(Document*); 302 bool isOverwriteModeEnabled(Document*);
301 void toggleOverwriteModeEnabled(Document*); 303 void toggleOverwriteModeEnabled(Document*);
302 304
303 unsigned numberOfScrollableAreas(Document*); 305 unsigned numberOfScrollableAreas(Document*);
304 306
305 bool isPageBoxVisible(Document*, int pageNumber); 307 bool isPageBoxVisible(Document*, int pageNumber);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 unsigned index, 542 unsigned index,
541 ExceptionState&); 543 ExceptionState&);
542 Member<InternalRuntimeFlags> m_runtimeFlags; 544 Member<InternalRuntimeFlags> m_runtimeFlags;
543 545
544 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 546 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
545 }; 547 };
546 548
547 } // namespace blink 549 } // namespace blink
548 550
549 #endif // Internals_h 551 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698