| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi
table(); } | 94 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi
table(); } |
| 95 | 95 |
| 96 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso
rAlignOnScroll = AlignCursorOnScrollIfNeeded); | 96 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso
rAlignOnScroll = AlignCursorOnScrollIfNeeded); |
| 97 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered =
NotUserTriggered); | 97 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered =
NotUserTriggered); |
| 98 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered); | 98 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered); |
| 99 | 99 |
| 100 const VisibleSelection& selection() const { return m_selection; } | 100 const VisibleSelection& selection() const { return m_selection; } |
| 101 void setSelection(const VisibleSelection&, SetSelectionOptions = CloseTyping
| ClearTypingStyle, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGran
ularity = CharacterGranularity); | 101 void setSelection(const VisibleSelection&, SetSelectionOptions = CloseTyping
| ClearTypingStyle, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGran
ularity = CharacterGranularity); |
| 102 void setSelection(const VisibleSelection& selection, TextGranularity granula
rity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScr
ollIfNeeded, granularity); } | 102 void setSelection(const VisibleSelection& selection, TextGranularity granula
rity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScr
ollIfNeeded, granularity); } |
| 103 bool setSelectedRange(Range*, EAffinity, bool isDirectional = false, SetSele
ctionOptions = CloseTyping | ClearTypingStyle); | 103 bool setSelectedRange(Range*, EAffinity, bool isDirectional = false, SetSele
ctionOptions = CloseTyping | ClearTypingStyle); |
| 104 bool collapseToEnd(); |
| 104 void selectAll(); | 105 void selectAll(); |
| 105 void clear(); | 106 void clear(); |
| 106 void prepareForDestruction(); | 107 void prepareForDestruction(); |
| 107 | 108 |
| 108 // Call this after doing user-triggered selections to make it easy to delete
the frame you entirely selected. | 109 // Call this after doing user-triggered selections to make it easy to delete
the frame you entirely selected. |
| 109 void selectFrameElementInParentIfFullySelected(); | 110 void selectFrameElementInParentIfFullySelected(); |
| 110 | 111 |
| 111 bool contains(const LayoutPoint&); | 112 bool contains(const LayoutPoint&); |
| 112 | 113 |
| 113 SelectionType selectionType() const { return m_selection.selectionType(); } | 114 SelectionType selectionType() const { return m_selection.selectionType(); } |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 } | 301 } |
| 301 } // namespace WebCore | 302 } // namespace WebCore |
| 302 | 303 |
| 303 #ifndef NDEBUG | 304 #ifndef NDEBUG |
| 304 // Outside the WebCore namespace for ease of invocation from gdb. | 305 // Outside the WebCore namespace for ease of invocation from gdb. |
| 305 void showTree(const WebCore::FrameSelection&); | 306 void showTree(const WebCore::FrameSelection&); |
| 306 void showTree(const WebCore::FrameSelection*); | 307 void showTree(const WebCore::FrameSelection*); |
| 307 #endif | 308 #endif |
| 308 | 309 |
| 309 #endif // FrameSelection_h | 310 #endif // FrameSelection_h |
| OLD | NEW |