| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_SELECTION_MODEL_H_ | 5 #ifndef UI_GFX_SELECTION_MODEL_H_ |
| 6 #define UI_GFX_SELECTION_MODEL_H_ | 6 #define UI_GFX_SELECTION_MODEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/base/range/range.h" | 10 #include "ui/base/range/range.h" |
| 11 #include "ui/base/ui_export.h" | 11 #include "ui/gfx/gfx_export.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 | 14 |
| 15 // VisualCursorDirection and LogicalCursorDirection represent directions of | 15 // VisualCursorDirection and LogicalCursorDirection represent directions of |
| 16 // motion of the cursor in BiDi text. The combinations that make sense are: | 16 // motion of the cursor in BiDi text. The combinations that make sense are: |
| 17 // | 17 // |
| 18 // base::i18n::TextDirection VisualCursorDirection LogicalCursorDirection | 18 // base::i18n::TextDirection VisualCursorDirection LogicalCursorDirection |
| 19 // LEFT_TO_RIGHT CURSOR_LEFT CURSOR_BACKWARD | 19 // LEFT_TO_RIGHT CURSOR_LEFT CURSOR_BACKWARD |
| 20 // LEFT_TO_RIGHT CURSOR_RIGHT CURSOR_FORWARD | 20 // LEFT_TO_RIGHT CURSOR_RIGHT CURSOR_FORWARD |
| 21 // RIGHT_TO_LEFT CURSOR_RIGHT CURSOR_BACKWARD | 21 // RIGHT_TO_LEFT CURSOR_RIGHT CURSOR_BACKWARD |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // 3 abc|FED abcFED| | 104 // 3 abc|FED abcFED| |
| 105 // 4 abcFE|D abcFE|D | 105 // 4 abcFE|D abcFE|D |
| 106 // 5 abcF|ED abcF|ED | 106 // 5 abcF|ED abcF|ED |
| 107 // 6 abc|FED abcFED| | 107 // 6 abc|FED abcFED| |
| 108 LogicalCursorDirection caret_affinity_; | 108 LogicalCursorDirection caret_affinity_; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace gfx | 111 } // namespace gfx |
| 112 | 112 |
| 113 #endif // UI_GFX_SELECTION_MODEL_H_ | 113 #endif // UI_GFX_SELECTION_MODEL_H_ |
| OLD | NEW |