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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.h

Issue 1942953003: Accessible setSelection function should use VisiblePositions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test for selecting whole element Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 VisiblePosition visiblePositionAfterNode(Node&); 274 VisiblePosition visiblePositionAfterNode(Node&);
275 275
276 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); 276 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&);
277 277
278 int comparePositions(const VisiblePosition&, const VisiblePosition&); 278 int comparePositions(const VisiblePosition&, const VisiblePosition&);
279 279
280 int indexForVisiblePosition(const VisiblePosition&, ContainerNode*& scope); 280 int indexForVisiblePosition(const VisiblePosition&, ContainerNode*& scope);
281 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); 281 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&);
282 EphemeralRange normalizeRange(const EphemeralRange&); 282 EphemeralRange normalizeRange(const EphemeralRange&);
283 EphemeralRangeInFlatTree normalizeRange(const EphemeralRangeInFlatTree&); 283 EphemeralRangeInFlatTree normalizeRange(const EphemeralRangeInFlatTree&);
284 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); 284 CORE_EXPORT VisiblePosition visiblePositionForIndex(int index, ContainerNode* sc ope);
285 285
286 // ------------------------------------------------------------------------- 286 // -------------------------------------------------------------------------
287 // HTMLElement 287 // HTMLElement
288 // ------------------------------------------------------------------------- 288 // -------------------------------------------------------------------------
289 289
290 // Functions returning HTMLElement 290 // Functions returning HTMLElement
291 291
292 HTMLElement* createDefaultParagraphElement(Document&); 292 HTMLElement* createDefaultParagraphElement(Document&);
293 HTMLElement* createHTMLElement(Document&, const QualifiedName&); 293 HTMLElement* createHTMLElement(Document&, const QualifiedName&);
294 294
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // ------------------------------------------------------------------------- 352 // -------------------------------------------------------------------------
353 353
354 // Functions dispatch InputEvent 354 // Functions dispatch InputEvent
355 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta); 355 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta);
356 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data); 356 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data);
357 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data = ""); 357 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data = "");
358 358
359 } // namespace blink 359 } // namespace blink
360 360
361 #endif 361 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698