| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered
); | 55 bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered
); |
| 56 bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUser
Triggered, CursorAlignOnScroll); | 56 bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUser
Triggered, CursorAlignOnScroll); |
| 57 | 57 |
| 58 template <typename Strategy> | 58 template <typename Strategy> |
| 59 const VisibleSelectionTemplate<Strategy>& visibleSelection() const; | 59 const VisibleSelectionTemplate<Strategy>& visibleSelection() const; |
| 60 void setVisibleSelection(const VisibleSelection&); | 60 void setVisibleSelection(const VisibleSelection&); |
| 61 void setVisibleSelection(const VisibleSelectionInComposedTree&); | 61 void setVisibleSelection(const VisibleSelectionInComposedTree&); |
| 62 | 62 |
| 63 void setIsDirectional(bool); | 63 void setIsDirectional(bool); |
| 64 void setWithoutValidation(const Position& start, const Position& end); | 64 void setWithoutValidation(const Position& start, const Position& end); |
| 65 void setSelectionInTextFormControl(const Position& start, const Position& en
d); |
| 65 | 66 |
| 66 void resetXPosForVerticalArrowNavigation(); | 67 void resetXPosForVerticalArrowNavigation(); |
| 67 | 68 |
| 68 void willBeModified(EAlteration, SelectionDirection); | 69 void willBeModified(EAlteration, SelectionDirection); |
| 69 | 70 |
| 70 // If this FrameSelection has a logical range which is still valid, this | 71 // If this FrameSelection has a logical range which is still valid, this |
| 71 // function return its clone. Otherwise, the return value from underlying | 72 // function return its clone. Otherwise, the return value from underlying |
| 72 // |VisibleSelection|'s |firstRange()| is returned. | 73 // |VisibleSelection|'s |firstRange()| is returned. |
| 73 PassRefPtrWillBeRawPtr<Range> firstRange() const; | 74 PassRefPtrWillBeRawPtr<Range> firstRange() const; |
| 74 | 75 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // The range specified by the user, which may not be visually canonicalized | 122 // The range specified by the user, which may not be visually canonicalized |
| 122 // (hence "logical"). This will be invalidated if the underlying | 123 // (hence "logical"). This will be invalidated if the underlying |
| 123 // |VisibleSelection| changes. If that happens, this variable will | 124 // |VisibleSelection| changes. If that happens, this variable will |
| 124 // become |nullptr|, in which case logical positions == visible positions. | 125 // become |nullptr|, in which case logical positions == visible positions. |
| 125 RefPtrWillBeMember<Range> m_logicalRange; | 126 RefPtrWillBeMember<Range> m_logicalRange; |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 } // namespace blink | 129 } // namespace blink |
| 129 | 130 |
| 130 #endif // SelectionEditor_h | 131 #endif // SelectionEditor_h |
| OLD | NEW |