Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2009)

Side by Side Diff: sky/engine/core/editing/EditingBehavior.h

Issue 796623004: Delete some dead ScrollAlignment code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
(...skipping 28 matching lines...) Expand all
39 // the editable content on Mac and Linux. 39 // the editable content on Mac and Linux.
40 bool shouldMoveCaretToHorizontalBoundaryWhenPastTopOrBottom() const 40 bool shouldMoveCaretToHorizontalBoundaryWhenPastTopOrBottom() const
41 { 41 {
42 return false; 42 return false;
43 } 43 }
44 44
45 // On Windows, selections should always be considered as directional, regard less if it is 45 // On Windows, selections should always be considered as directional, regard less if it is
46 // mouse-based or keyboard-based. 46 // mouse-based or keyboard-based.
47 bool shouldConsiderSelectionAsDirectional() const { return true; } 47 bool shouldConsiderSelectionAsDirectional() const { return true; }
48 48
49 // On Mac, when revealing a selection (for example as a result of a Find ope ration on the Browser),
50 // content should be scrolled such that the selection gets certer aligned.
51 bool shouldCenterAlignWhenSelectionIsRevealed() const { return false; }
52
53 // On Mac, style is considered present when present at the beginning of sele ction. On other platforms, 49 // On Mac, style is considered present when present at the beginning of sele ction. On other platforms,
54 // style has to be present throughout the selection. 50 // style has to be present throughout the selection.
55 bool shouldToggleStyleBasedOnStartOfSelection() const { return false; } 51 bool shouldToggleStyleBasedOnStartOfSelection() const { return false; }
56 52
57 // Standard Mac behavior when extending to a boundary is grow the selection rather than leaving the base 53 // Standard Mac behavior when extending to a boundary is grow the selection rather than leaving the base
58 // in place and moving the extent. Matches NSTextView. 54 // in place and moving the extent. Matches NSTextView.
59 bool shouldAlwaysGrowSelectionWhenExtendingToBoundary() const { return false ; } 55 bool shouldAlwaysGrowSelectionWhenExtendingToBoundary() const { return false ; }
60 56
61 // On Mac, when processing a contextual click, the object being clicked upon should be selected. 57 // On Mac, when processing a contextual click, the object being clicked upon should be selected.
62 bool shouldSelectOnContextualMenuClick() const { return false; } 58 bool shouldSelectOnContextualMenuClick() const { return false; }
(...skipping 28 matching lines...) Expand all
91 // Convert a KeyboardEvent to a command name like "Copy", "Undo" and so on. 87 // Convert a KeyboardEvent to a command name like "Copy", "Undo" and so on.
92 // If nothing, return empty string. 88 // If nothing, return empty string.
93 const char* interpretKeyEvent(const KeyboardEvent&) const; 89 const char* interpretKeyEvent(const KeyboardEvent&) const;
94 90
95 bool shouldInsertCharacter(const KeyboardEvent&) const; 91 bool shouldInsertCharacter(const KeyboardEvent&) const;
96 }; 92 };
97 93
98 } // namespace blink 94 } // namespace blink
99 95
100 #endif // SKY_ENGINE_CORE_EDITING_EDITINGBEHAVIOR_H_ 96 #endif // SKY_ENGINE_CORE_EDITING_EDITINGBEHAVIOR_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698