| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef SelectionModifier_h | 27 #ifndef SelectionModifier_h |
| 28 #define SelectionModifier_h | 28 #define SelectionModifier_h |
| 29 | 29 |
| 30 #include "base/macros.h" | 30 #include "base/macros.h" |
| 31 #include "core/editing/FrameSelection.h" | 31 #include "core/editing/FrameSelection.h" |
| 32 #include "platform/LayoutUnit.h" | 32 #include "platform/LayoutUnit.h" |
| 33 #include "wtf/Allocator.h" | 33 #include "platform/wtf/Allocator.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class SelectionModifier { | 37 class SelectionModifier { |
| 38 STACK_ALLOCATED(); | 38 STACK_ALLOCATED(); |
| 39 | 39 |
| 40 public: | 40 public: |
| 41 using EAlteration = FrameSelection::EAlteration; | 41 using EAlteration = FrameSelection::EAlteration; |
| 42 using VerticalDirection = FrameSelection::VerticalDirection; | 42 using VerticalDirection = FrameSelection::VerticalDirection; |
| 43 | 43 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 LayoutUnit x_pos_for_vertical_arrow_navigation_; | 87 LayoutUnit x_pos_for_vertical_arrow_navigation_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(SelectionModifier); | 89 DISALLOW_COPY_AND_ASSIGN(SelectionModifier); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 LayoutUnit NoXPosForVerticalArrowNavigation(); | 92 LayoutUnit NoXPosForVerticalArrowNavigation(); |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // SelectionModifier_h | 96 #endif // SelectionModifier_h |
| OLD | NEW |