| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool setSelectedRange(const EphemeralRange&, TextAffinity, SelectionDirectio
nalMode = SelectionDirectionalMode::NonDirectional, FrameSelection::SetSelection
Options = CloseTyping | ClearTypingStyle); | 120 bool setSelectedRange(const EphemeralRange&, TextAffinity, SelectionDirectio
nalMode = SelectionDirectionalMode::NonDirectional, FrameSelection::SetSelection
Options = CloseTyping | ClearTypingStyle); |
| 121 void selectAll(); | 121 void selectAll(); |
| 122 void clear(); | 122 void clear(); |
| 123 void prepareForDestruction(); | 123 void prepareForDestruction(); |
| 124 | 124 |
| 125 // Call this after doing user-triggered selections to make it easy to delete
the frame you entirely selected. | 125 // Call this after doing user-triggered selections to make it easy to delete
the frame you entirely selected. |
| 126 void selectFrameElementInParentIfFullySelected(); | 126 void selectFrameElementInParentIfFullySelected(); |
| 127 | 127 |
| 128 bool contains(const LayoutPoint&); | 128 bool contains(const LayoutPoint&); |
| 129 | 129 |
| 130 SelectionType selectionType() const { return selection().selectionType(); } | 130 SelectionType getSelectionType() const { return selection().getSelectionType
(); } |
| 131 | 131 |
| 132 TextAffinity affinity() const { return selection().affinity(); } | 132 TextAffinity affinity() const { return selection().affinity(); } |
| 133 | 133 |
| 134 bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered
= NotUserTriggered); | 134 bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered
= NotUserTriggered); |
| 135 enum VerticalDirection { DirectionUp, DirectionDown }; | 135 enum VerticalDirection { DirectionUp, DirectionDown }; |
| 136 bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUser
Triggered = NotUserTriggered, CursorAlignOnScroll = CursorAlignOnScroll::IfNeede
d); | 136 bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUser
Triggered = NotUserTriggered, CursorAlignOnScroll = CursorAlignOnScroll::IfNeede
d); |
| 137 | 137 |
| 138 // Moves the selection extent based on the selection granularity strategy. | 138 // Moves the selection extent based on the selection granularity strategy. |
| 139 // This function does not allow the selection to collapse. If the new | 139 // This function does not allow the selection to collapse. If the new |
| 140 // extent is resolved to the same position as the current base, this | 140 // extent is resolved to the same position as the current base, this |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 330 } |
| 331 } // namespace blink | 331 } // namespace blink |
| 332 | 332 |
| 333 #ifndef NDEBUG | 333 #ifndef NDEBUG |
| 334 // Outside the WebCore namespace for ease of invocation from gdb. | 334 // Outside the WebCore namespace for ease of invocation from gdb. |
| 335 void showTree(const blink::FrameSelection&); | 335 void showTree(const blink::FrameSelection&); |
| 336 void showTree(const blink::FrameSelection*); | 336 void showTree(const blink::FrameSelection*); |
| 337 #endif | 337 #endif |
| 338 | 338 |
| 339 #endif // FrameSelection_h | 339 #endif // FrameSelection_h |
| OLD | NEW |