| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 Member<LocalFrame> frame_; | 92 Member<LocalFrame> frame_; |
| 93 VisibleSelection selection_; | 93 VisibleSelection selection_; |
| 94 LayoutUnit x_pos_for_vertical_arrow_navigation_; | 94 LayoutUnit x_pos_for_vertical_arrow_navigation_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(SelectionModifier); | 96 DISALLOW_COPY_AND_ASSIGN(SelectionModifier); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 LayoutUnit NoXPosForVerticalArrowNavigation(); | 99 LayoutUnit NoXPosForVerticalArrowNavigation(); |
| 100 | 100 |
| 101 // Following functions are exported for using in SelectionModifier and |
| 102 // testing only. |
| 103 |
| 104 // TODO(yosin) Since return value of |leftPositionOf()| with |VisiblePosition| |
| 105 // isn't defined well on flat tree, we should not use it for a position in |
| 106 // flat tree. |
| 107 CORE_EXPORT VisiblePosition LeftPositionOf(const VisiblePosition&); |
| 108 CORE_EXPORT VisiblePositionInFlatTree |
| 109 LeftPositionOf(const VisiblePositionInFlatTree&); |
| 110 // TODO(yosin) Since return value of |rightPositionOf()| with |VisiblePosition| |
| 111 // isn't defined well on flat tree, we should not use it for a position in |
| 112 // flat tree. |
| 113 CORE_EXPORT VisiblePosition RightPositionOf(const VisiblePosition&); |
| 114 CORE_EXPORT VisiblePositionInFlatTree |
| 115 RightPositionOf(const VisiblePositionInFlatTree&); |
| 116 |
| 101 } // namespace blink | 117 } // namespace blink |
| 102 | 118 |
| 103 #endif // SelectionModifier_h | 119 #endif // SelectionModifier_h |
| OLD | NEW |