| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Standard Annex #29, Unicode text segmentation[1]. | 51 // Standard Annex #29, Unicode text segmentation[1]. |
| 52 // [1] http://www.unicode.org/reports/tr29/ | 52 // [1] http://www.unicode.org/reports/tr29/ |
| 53 GraphemeCluster, | 53 GraphemeCluster, |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 enum class DeleteDirection { | 56 enum class DeleteDirection { |
| 57 Forward, | 57 Forward, |
| 58 Backward, | 58 Backward, |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 class CompositeEditCommand; |
| 61 class Document; | 62 class Document; |
| 62 class Element; | 63 class Element; |
| 63 class HTMLElement; | 64 class HTMLElement; |
| 64 class HTMLSpanElement; | 65 class HTMLSpanElement; |
| 65 class Node; | 66 class Node; |
| 66 class Range; | 67 class Range; |
| 67 | 68 |
| 68 // This file contains a set of helper functions used by the editing commands | 69 // This file contains a set of helper functions used by the editing commands |
| 69 | 70 |
| 70 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); | 71 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 InputEvent::InputType, | 427 InputEvent::InputType, |
| 427 const RangeVector*); | 428 const RangeVector*); |
| 428 DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget*, | 429 DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget*, |
| 429 InputEvent::InputType, | 430 InputEvent::InputType, |
| 430 DataTransfer*, | 431 DataTransfer*, |
| 431 const RangeVector*); | 432 const RangeVector*); |
| 432 | 433 |
| 433 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, | 434 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, |
| 434 TextGranularity); | 435 TextGranularity); |
| 435 | 436 |
| 437 // TODO(chongz): Move |isComposingFromCommand()| to 'CompositeEditCommand.cpp' |
| 438 // after we've moved |Editor::appliedEditing()| to |
| 439 // |CompositeEditCommand::appliedEditing()|. |
| 440 // https://crbug.com/676001 |
| 441 InputEvent::EventIsComposing isComposingFromCommand( |
| 442 const CompositeEditCommand*); |
| 443 |
| 436 } // namespace blink | 444 } // namespace blink |
| 437 | 445 |
| 438 #endif | 446 #endif |
| OLD | NEW |