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