| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 return static_cast<EUserTriggered>(options & UserTriggered); | 85 return static_cast<EUserTriggered>(options & UserTriggered); |
| 86 } | 86 } |
| 87 | 87 |
| 88 enum DirectoinalOption { | 88 enum DirectoinalOption { |
| 89 NonDirectional, | 89 NonDirectional, |
| 90 Directional | 90 Directional |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 Element* rootEditableElement() const { return m_selection.rootEditableElemen
t(); } | 93 Element* rootEditableElement() const { return m_selection.rootEditableElemen
t(); } |
| 94 Element* rootEditableElementOrDocumentElement() const; | 94 Element* rootEditableElementOrDocumentElement() const; |
| 95 Node* rootEditableElementOrTreeScopeRootNode() const; | 95 ContainerNode* rootEditableElementOrTreeScopeRootNode() const; |
| 96 | 96 |
| 97 bool hasEditableStyle() const { return m_selection.hasEditableStyle(); } | 97 bool hasEditableStyle() const { return m_selection.hasEditableStyle(); } |
| 98 bool isContentEditable() const { return m_selection.isContentEditable(); } | 98 bool isContentEditable() const { return m_selection.isContentEditable(); } |
| 99 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi
table(); } | 99 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi
table(); } |
| 100 | 100 |
| 101 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso
rAlignOnScroll = AlignCursorOnScrollIfNeeded); | 101 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso
rAlignOnScroll = AlignCursorOnScrollIfNeeded); |
| 102 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered =
NotUserTriggered); | 102 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered =
NotUserTriggered); |
| 103 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered); | 103 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered); |
| 104 | 104 |
| 105 const VisibleSelection& selection() const { return m_selection; } | 105 const VisibleSelection& selection() const { return m_selection; } |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } | 308 } |
| 309 } // namespace blink | 309 } // namespace blink |
| 310 | 310 |
| 311 #ifndef NDEBUG | 311 #ifndef NDEBUG |
| 312 // Outside the WebCore namespace for ease of invocation from gdb. | 312 // Outside the WebCore namespace for ease of invocation from gdb. |
| 313 void showTree(const blink::FrameSelection&); | 313 void showTree(const blink::FrameSelection&); |
| 314 void showTree(const blink::FrameSelection*); | 314 void showTree(const blink::FrameSelection*); |
| 315 #endif | 315 #endif |
| 316 | 316 |
| 317 #endif // FrameSelection_h | 317 #endif // FrameSelection_h |
| OLD | NEW |