OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
3 * Copyright (C) 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2010 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef EditingBehaviorTypes_h | 21 #ifndef EditingBehaviorTypes_h |
22 #define EditingBehaviorTypes_h | 22 #define EditingBehaviorTypes_h |
23 | 23 |
24 namespace blink { | 24 namespace blink { |
25 | 25 |
26 // There are multiple editing details that are different on Windows than Macinto
sh. | 26 // There are multiple editing details that are different on Windows than |
27 // We use a single switch for all of them. Some examples: | 27 // Macintosh. We use a single switch for all of them. Some examples: |
28 // | 28 // |
29 // 1) Clicking below the last line of an editable area puts the caret at the
end | 29 // 1) Clicking below the last line of an editable area puts the caret at the |
30 // of the last line on Mac, but in the middle of the last line on Windows. | 30 // end of the last line on Mac, but in the middle of the last line on |
31 // 2) Pushing the down arrow key on the last line puts the caret at the end o
f the | 31 // Windows. |
32 // last line on Mac, but does nothing on Windows. A similar case exists on
the | 32 // 2) Pushing the down arrow key on the last line puts the caret at the end |
33 // top line. | 33 // of the last line on Mac, but does nothing on Windows. A similar case |
| 34 // exists on the top line. |
34 // | 35 // |
35 // This setting is intended to control these sorts of behaviors. There are some
other | 36 // This setting is intended to control these sorts of behaviors. There are some |
36 // behaviors with individual function calls on EditorClient (smart copy and past
e and | 37 // other behaviors with individual function calls on EditorClient (smart copy |
37 // selecting the space after a double click) that could be combined with this if | 38 // and paste and selecting the space after a double click) that could be |
38 // if possible in the future. | 39 // combined with this if if possible in the future. |
39 enum EditingBehaviorType { | 40 enum EditingBehaviorType { |
40 EditingMacBehavior, | 41 EditingMacBehavior, |
41 EditingWindowsBehavior, | 42 EditingWindowsBehavior, |
42 EditingUnixBehavior, | 43 EditingUnixBehavior, |
43 EditingAndroidBehavior | 44 EditingAndroidBehavior |
44 }; | 45 }; |
45 | 46 |
46 } // namespace blink | 47 } // namespace blink |
47 | 48 |
48 #endif // EditingBehaviorTypes_h | 49 #endif // EditingBehaviorTypes_h |
OLD | NEW |