| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |