| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 PassRefPtr<Range> toNormalizedRange() const { return m_selection.toNormalize
dRange(); } | 161 PassRefPtr<Range> toNormalizedRange() const { return m_selection.toNormalize
dRange(); } |
| 162 | 162 |
| 163 void nodeWillBeRemoved(Node&); | 163 void nodeWillBeRemoved(Node&); |
| 164 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen
gth, unsigned newLength); | 164 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen
gth, unsigned newLength); |
| 165 void didMergeTextNodes(const Text& oldNode, unsigned offset); | 165 void didMergeTextNodes(const Text& oldNode, unsigned offset); |
| 166 void didSplitTextNode(const Text& oldNode); | 166 void didSplitTextNode(const Text& oldNode); |
| 167 | 167 |
| 168 void updateAppearance(ResetCaretBlinkOption = None); | 168 void updateAppearance(ResetCaretBlinkOption = None); |
| 169 void setCaretVisible(bool caretIsVisible) { setCaretVisibility(caretIsVisibl
e ? Visible : Hidden); } | 169 void setCaretVisible(bool caretIsVisible) { setCaretVisibility(caretIsVisibl
e ? Visible : Hidden); } |
| 170 void setCaretRectNeedsUpdate(); | 170 void setCaretRectNeedsUpdate(); |
| 171 void scheduleVisualUpdate() const; | |
| 172 void paintCaret(GraphicsContext*, const LayoutPoint&, const LayoutRect& clip
Rect); | 171 void paintCaret(GraphicsContext*, const LayoutPoint&, const LayoutRect& clip
Rect); |
| 173 bool ShouldPaintCaretForTesting() const { return m_shouldPaintCaret; } | 172 bool ShouldPaintCaretForTesting() const { return m_shouldPaintCaret; } |
| 174 | 173 |
| 175 // Used to suspend caret blinking while the mouse is down. | 174 // Used to suspend caret blinking while the mouse is down. |
| 176 void setCaretBlinkingSuspended(bool suspended) { m_isCaretBlinkingSuspended
= suspended; } | 175 void setCaretBlinkingSuspended(bool suspended) { m_isCaretBlinkingSuspended
= suspended; } |
| 177 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; } | 176 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; } |
| 178 | 177 |
| 179 // Focus | 178 // Focus |
| 180 void setFocused(bool); | 179 void setFocused(bool); |
| 181 bool isFocused() const { return m_focused; } | 180 bool isFocused() const { return m_focused; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 VisiblePosition modifyMovingRight(TextGranularity); | 224 VisiblePosition modifyMovingRight(TextGranularity); |
| 226 VisiblePosition modifyMovingForward(TextGranularity); | 225 VisiblePosition modifyMovingForward(TextGranularity); |
| 227 VisiblePosition modifyExtendingLeft(TextGranularity); | 226 VisiblePosition modifyExtendingLeft(TextGranularity); |
| 228 VisiblePosition modifyExtendingBackward(TextGranularity); | 227 VisiblePosition modifyExtendingBackward(TextGranularity); |
| 229 VisiblePosition modifyMovingLeft(TextGranularity); | 228 VisiblePosition modifyMovingLeft(TextGranularity); |
| 230 VisiblePosition modifyMovingBackward(TextGranularity); | 229 VisiblePosition modifyMovingBackward(TextGranularity); |
| 231 | 230 |
| 232 LayoutUnit lineDirectionPointForBlockDirectionNavigation(EPositionType); | 231 LayoutUnit lineDirectionPointForBlockDirectionNavigation(EPositionType); |
| 233 | 232 |
| 234 void notifyAccessibilityForSelectionChange(); | 233 void notifyAccessibilityForSelectionChange(); |
| 235 void notifyCompositorForSelectionChange(); | |
| 236 | 234 |
| 237 void focusedOrActiveStateChanged(); | 235 void focusedOrActiveStateChanged(); |
| 238 | 236 |
| 239 void caretBlinkTimerFired(Timer<FrameSelection>*); | 237 void caretBlinkTimerFired(Timer<FrameSelection>*); |
| 240 | 238 |
| 241 void setCaretVisibility(CaretVisibility); | 239 void setCaretVisibility(CaretVisibility); |
| 242 bool shouldBlinkCaret() const; | 240 bool shouldBlinkCaret() const; |
| 243 | 241 |
| 244 bool dispatchSelectStart(); | 242 bool dispatchSelectStart(); |
| 245 | 243 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 } | 288 } |
| 291 } // namespace blink | 289 } // namespace blink |
| 292 | 290 |
| 293 #ifndef NDEBUG | 291 #ifndef NDEBUG |
| 294 // Outside the WebCore namespace for ease of invocation from gdb. | 292 // Outside the WebCore namespace for ease of invocation from gdb. |
| 295 void showTree(const blink::FrameSelection&); | 293 void showTree(const blink::FrameSelection&); |
| 296 void showTree(const blink::FrameSelection*); | 294 void showTree(const blink::FrameSelection*); |
| 297 #endif | 295 #endif |
| 298 | 296 |
| 299 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_ | 297 #endif // SKY_ENGINE_CORE_EDITING_FRAMESELECTION_H_ |
| OLD | NEW |