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

Side by Side Diff: ui/base/ime/linux/text_edit_command_auralinux.cc

Issue 2228833002: MacViews: Fix behavior of move and select commands when selection direction changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_text_commands
Patch Set: Created 4 years, 4 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 | ui/base/ime/text_edit_commands.h » ('j') | ui/gfx/render_text.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/base/ime/linux/text_edit_command_auralinux.h" 5 #include "ui/base/ime/linux/text_edit_command_auralinux.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/ime/text_edit_commands.h" 8 #include "ui/base/ime/text_edit_commands.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 case TextEditCommand::MOVE_TO_END_OF_DOCUMENT_AND_MODIFY_SELECTION: 74 case TextEditCommand::MOVE_TO_END_OF_DOCUMENT_AND_MODIFY_SELECTION:
75 return "MoveToEndOfDocumentAndModifySelection"; 75 return "MoveToEndOfDocumentAndModifySelection";
76 case TextEditCommand::MOVE_TO_END_OF_LINE: 76 case TextEditCommand::MOVE_TO_END_OF_LINE:
77 return "MoveToEndOfLine"; 77 return "MoveToEndOfLine";
78 case TextEditCommand::MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION: 78 case TextEditCommand::MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION:
79 return "MoveToEndOfLineAndModifySelection"; 79 return "MoveToEndOfLineAndModifySelection";
80 case TextEditCommand::MOVE_TO_END_OF_PARAGRAPH: 80 case TextEditCommand::MOVE_TO_END_OF_PARAGRAPH:
81 return "MoveToEndOfParagraph"; 81 return "MoveToEndOfParagraph";
82 case TextEditCommand::MOVE_TO_END_OF_PARAGRAPH_AND_MODIFY_SELECTION: 82 case TextEditCommand::MOVE_TO_END_OF_PARAGRAPH_AND_MODIFY_SELECTION:
83 return "MoveToEndOfParagraphAndModifySelection"; 83 return "MoveToEndOfParagraphAndModifySelection";
84 case TextEditCommand::MOVE_PARAGRAPH_BACKWARD_AND_MODIFY_SELECTION:
85 return "MoveParagraphBackwardAndModifySelection";
86 case TextEditCommand::MOVE_PARAGRAPH_FORWARD_AND_MODIFY_SELECTION:
87 return "MoveParagraphForwardAndModifySelection";
84 case TextEditCommand::MOVE_UP: 88 case TextEditCommand::MOVE_UP:
85 return "MoveUp"; 89 return "MoveUp";
86 case TextEditCommand::MOVE_UP_AND_MODIFY_SELECTION: 90 case TextEditCommand::MOVE_UP_AND_MODIFY_SELECTION:
87 return "MoveUpAndModifySelection"; 91 return "MoveUpAndModifySelection";
88 case TextEditCommand::MOVE_WORD_BACKWARD: 92 case TextEditCommand::MOVE_WORD_BACKWARD:
89 return "MoveWordBackward"; 93 return "MoveWordBackward";
90 case TextEditCommand::MOVE_WORD_BACKWARD_AND_MODIFY_SELECTION: 94 case TextEditCommand::MOVE_WORD_BACKWARD_AND_MODIFY_SELECTION:
91 return "MoveWordBackwardAndModifySelection"; 95 return "MoveWordBackwardAndModifySelection";
92 case TextEditCommand::MOVE_WORD_FORWARD: 96 case TextEditCommand::MOVE_WORD_FORWARD:
93 return "MoveWordForward"; 97 return "MoveWordForward";
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return "Unselect"; 129 return "Unselect";
126 case TextEditCommand::INVALID_COMMAND: 130 case TextEditCommand::INVALID_COMMAND:
127 NOTREACHED(); 131 NOTREACHED();
128 return std::string(); 132 return std::string();
129 } 133 }
130 NOTREACHED(); 134 NOTREACHED();
131 return std::string(); 135 return std::string();
132 } 136 }
133 137
134 } // namespace ui 138 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/text_edit_commands.h » ('j') | ui/gfx/render_text.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698