| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/dom/Range.h" | 34 #include "core/dom/Range.h" |
| 35 #include "core/dom/Text.h" | 35 #include "core/dom/Text.h" |
| 36 #include "core/dom/shadow/ShadowRoot.h" | 36 #include "core/dom/shadow/ShadowRoot.h" |
| 37 #include "core/editing/EditingStrategy.h" | 37 #include "core/editing/EditingStrategy.h" |
| 38 #include "core/editing/Editor.h" | 38 #include "core/editing/Editor.h" |
| 39 #include "core/editing/PlainTextRange.h" | 39 #include "core/editing/PlainTextRange.h" |
| 40 #include "core/editing/PositionIterator.h" | 40 #include "core/editing/PositionIterator.h" |
| 41 #include "core/editing/VisiblePosition.h" | 41 #include "core/editing/VisiblePosition.h" |
| 42 #include "core/editing/VisibleSelection.h" | 42 #include "core/editing/VisibleSelection.h" |
| 43 #include "core/editing/VisibleUnits.h" | 43 #include "core/editing/VisibleUnits.h" |
| 44 #include "core/editing/commands/CompositeEditCommand.h" |
| 45 #include "core/editing/commands/TypingCommand.h" |
| 44 #include "core/editing/iterators/TextIterator.h" | 46 #include "core/editing/iterators/TextIterator.h" |
| 45 #include "core/editing/serializers/HTMLInterchange.h" | 47 #include "core/editing/serializers/HTMLInterchange.h" |
| 46 #include "core/editing/state_machines/BackspaceStateMachine.h" | 48 #include "core/editing/state_machines/BackspaceStateMachine.h" |
| 47 #include "core/editing/state_machines/BackwardGraphemeBoundaryStateMachine.h" | 49 #include "core/editing/state_machines/BackwardGraphemeBoundaryStateMachine.h" |
| 48 #include "core/editing/state_machines/ForwardGraphemeBoundaryStateMachine.h" | 50 #include "core/editing/state_machines/ForwardGraphemeBoundaryStateMachine.h" |
| 49 #include "core/frame/FrameView.h" | 51 #include "core/frame/FrameView.h" |
| 50 #include "core/frame/LocalFrame.h" | 52 #include "core/frame/LocalFrame.h" |
| 51 #include "core/frame/UseCounter.h" | 53 #include "core/frame/UseCounter.h" |
| 52 #include "core/html/HTMLBRElement.h" | 54 #include "core/html/HTMLBRElement.h" |
| 53 #include "core/html/HTMLDivElement.h" | 55 #include "core/html/HTMLDivElement.h" |
| (...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2141 if (granularity == WordGranularity) | 2143 if (granularity == WordGranularity) |
| 2142 return InputType::DeleteWordBackward; | 2144 return InputType::DeleteWordBackward; |
| 2143 if (granularity == LineBoundary) | 2145 if (granularity == LineBoundary) |
| 2144 return InputType::DeleteLineBackward; | 2146 return InputType::DeleteLineBackward; |
| 2145 return InputType::DeleteContentBackward; | 2147 return InputType::DeleteContentBackward; |
| 2146 default: | 2148 default: |
| 2147 return InputType::None; | 2149 return InputType::None; |
| 2148 } | 2150 } |
| 2149 } | 2151 } |
| 2150 | 2152 |
| 2153 InputEvent::EventIsComposing isComposingFromCommand( |
| 2154 const CompositeEditCommand* command) { |
| 2155 if (command->isTypingCommand() && |
| 2156 toTypingCommand(command)->compositionType() != |
| 2157 TypingCommand::TextCompositionNone) |
| 2158 return InputEvent::IsComposing; |
| 2159 return InputEvent::NotComposing; |
| 2160 } |
| 2161 |
| 2151 } // namespace blink | 2162 } // namespace blink |
| OLD | NEW |