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

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

Issue 2085873002: Add test for TextEditCommandAuraLinux::GetCommandString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor8_unify_text_edit_commands
Patch Set: -- Created 4 years, 6 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 | « ui/base/DEPS ('k') | ui/base/ime/linux/text_edit_command_auralinux_unittest.cc » ('j') | no next file with comments »
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 return "Paste"; 113 return "Paste";
114 case TextEditCommand::SELECT_ALL: 114 case TextEditCommand::SELECT_ALL:
115 return "SelectAll"; 115 return "SelectAll";
116 case TextEditCommand::INSERT_TEXT: 116 case TextEditCommand::INSERT_TEXT:
117 return "InsertText"; 117 return "InsertText";
118 case TextEditCommand::SET_MARK: 118 case TextEditCommand::SET_MARK:
119 return "SetMark"; 119 return "SetMark";
120 case TextEditCommand::UNSELECT: 120 case TextEditCommand::UNSELECT:
121 return "Unselect"; 121 return "Unselect";
122 case TextEditCommand::INVALID_COMMAND: 122 case TextEditCommand::INVALID_COMMAND:
123 case TextEditCommand::NUMBER_OF_COMMANDS:
123 NOTREACHED(); 124 NOTREACHED();
124 return std::string(); 125 return std::string();
125 } 126 }
126 NOTREACHED(); 127 NOTREACHED();
127 return std::string(); 128 return std::string();
128 } 129 }
129 130
130 } // namespace ui 131 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/DEPS ('k') | ui/base/ime/linux/text_edit_command_auralinux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698