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

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

Issue 2022723002: Move VisibleSelection::positionRespectingEditingBoundary() to EditingUtilities.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-30T17:10:26 Created 4 years, 6 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.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) 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // |leadingWhitespacePosition(position)| returns a previous position of 243 // |leadingWhitespacePosition(position)| returns a previous position of
244 // |position| if it is at collapsible whitespace, otherwise it returns null 244 // |position| if it is at collapsible whitespace, otherwise it returns null
245 // position. When it is called with |NotConsiderNonCollapsibleWhitespace| and 245 // position. When it is called with |NotConsiderNonCollapsibleWhitespace| and
246 // a previous position in a element which has CSS property "white-space:pre", 246 // a previous position in a element which has CSS property "white-space:pre",
247 // or its variant, |leadingWhitespacePosition()| returns null position. 247 // or its variant, |leadingWhitespacePosition()| returns null position.
248 // TODO(yosin) We should rename |leadingWhitespacePosition()| to 248 // TODO(yosin) We should rename |leadingWhitespacePosition()| to
249 // |leadingCollapsibleWhitespacePosition()| as this function really returns. 249 // |leadingCollapsibleWhitespacePosition()| as this function really returns.
250 Position leadingWhitespacePosition(const Position&, TextAffinity, WhitespacePosi tionOption = NotConsiderNonCollapsibleWhitespace); 250 Position leadingWhitespacePosition(const Position&, TextAffinity, WhitespacePosi tionOption = NotConsiderNonCollapsibleWhitespace);
251 Position trailingWhitespacePosition(const Position&, TextAffinity, WhitespacePos itionOption = NotConsiderNonCollapsibleWhitespace); 251 Position trailingWhitespacePosition(const Position&, TextAffinity, WhitespacePos itionOption = NotConsiderNonCollapsibleWhitespace);
252 unsigned numEnclosingMailBlockquotes(const Position&); 252 unsigned numEnclosingMailBlockquotes(const Position&);
253 PositionWithAffinity positionRespectingEditingBoundary(const Position&, const La youtPoint& localPoint, Node* targetNode);
253 void updatePositionForNodeRemoval(Position&, Node&); 254 void updatePositionForNodeRemoval(Position&, Node&);
254 255
255 // ------------------------------------------------------------------------- 256 // -------------------------------------------------------------------------
256 // VisiblePosition 257 // VisiblePosition
257 // ------------------------------------------------------------------------- 258 // -------------------------------------------------------------------------
258 259
259 // Functions returning VisiblePosition 260 // Functions returning VisiblePosition
260 261
261 // TODO(yosin) We should rename 262 // TODO(yosin) We should rename
262 // |firstEditableVisiblePositionAfterPositionInRoot()| to a better name which 263 // |firstEditableVisiblePositionAfterPositionInRoot()| to a better name which
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // ------------------------------------------------------------------------- 353 // -------------------------------------------------------------------------
353 354
354 // Functions dispatch InputEvent 355 // Functions dispatch InputEvent
355 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta); 356 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta);
356 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable); 357 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable);
357 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data = ""); 358 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data = "");
358 359
359 } // namespace blink 360 } // namespace blink
360 361
361 #endif 362 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698