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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc

Issue 2030813002: Correct typo in ui::TextEditCommandAuraLinux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor6_remove_delete_command
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/linux/text_edit_command_auralinux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc b/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc
index c1e1a835441a0ac052277096f856008b267019d8..a0e22ffe1570b585729e44caf6e070a5d5085abb 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_key_bindings_handler.cc
@@ -257,24 +257,23 @@ void Gtk2KeyBindingsHandler::DeleteFromCursor(
}
break;
case GTK_DELETE_DISPLAY_LINES:
- commands[0] = TextEditCommandAuraLinux::MOVE_TO_BEGINING_OF_LINE;
+ commands[0] = TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_LINE;
commands[1] = TextEditCommandAuraLinux::DELETE_TO_END_OF_LINE;
break;
case GTK_DELETE_DISPLAY_LINE_ENDS:
- commands[0] = (count > 0 ?
- TextEditCommandAuraLinux::DELETE_TO_END_OF_LINE :
- TextEditCommandAuraLinux::DELETE_TO_BEGINING_OF_LINE);
+ commands[0] =
+ (count > 0 ? TextEditCommandAuraLinux::DELETE_TO_END_OF_LINE
+ : TextEditCommandAuraLinux::DELETE_TO_BEGINNING_OF_LINE);
break;
case GTK_DELETE_PARAGRAPH_ENDS:
- commands[0] = (count > 0 ?
- TextEditCommandAuraLinux::DELETE_TO_END_OF_PARAGRAPH :
- TextEditCommandAuraLinux::DELETE_TO_BEGINING_OF_PARAGRAPH);
+ commands[0] =
+ (count > 0
+ ? TextEditCommandAuraLinux::DELETE_TO_END_OF_PARAGRAPH
+ : TextEditCommandAuraLinux::DELETE_TO_BEGINNING_OF_PARAGRAPH);
break;
case GTK_DELETE_PARAGRAPHS:
- commands[0] =
- TextEditCommandAuraLinux::MOVE_TO_BEGINING_OF_PARAGRAPH;
- commands[1] =
- TextEditCommandAuraLinux::DELETE_TO_END_OF_PARAGRAPH;
+ commands[0] = TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_PARAGRAPH;
+ commands[1] = TextEditCommandAuraLinux::DELETE_TO_END_OF_PARAGRAPH;
break;
default:
// GTK_DELETE_WHITESPACE has no corresponding editor command.
@@ -327,22 +326,24 @@ void Gtk2KeyBindingsHandler::MoveCursor(
TextEditCommandAuraLinux::MOVE_UP);
break;
case GTK_MOVEMENT_DISPLAY_LINE_ENDS:
- command = (count > 0 ?
- TextEditCommandAuraLinux::MOVE_TO_END_OF_LINE :
- TextEditCommandAuraLinux::MOVE_TO_BEGINING_OF_LINE);
+ command =
+ (count > 0 ? TextEditCommandAuraLinux::MOVE_TO_END_OF_LINE
+ : TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_LINE);
break;
case GTK_MOVEMENT_PARAGRAPH_ENDS:
- command = (count > 0 ?
- TextEditCommandAuraLinux::MOVE_TO_END_OF_PARAGRAPH :
- TextEditCommandAuraLinux::MOVE_TO_BEGINING_OF_PARAGRAPH);
+ command =
+ (count > 0
+ ? TextEditCommandAuraLinux::MOVE_TO_END_OF_PARAGRAPH
+ : TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_PARAGRAPH);
break;
case GTK_MOVEMENT_PAGES:
command = (count > 0 ? TextEditCommandAuraLinux::MOVE_PAGE_DOWN :
TextEditCommandAuraLinux::MOVE_PAGE_UP);
break;
case GTK_MOVEMENT_BUFFER_ENDS:
- command = (count > 0 ? TextEditCommandAuraLinux::MOVE_TO_END_OF_DOCUMENT :
- TextEditCommandAuraLinux::MOVE_TO_BEGINING_OF_DOCUMENT);
+ command =
+ (count > 0 ? TextEditCommandAuraLinux::MOVE_TO_END_OF_DOCUMENT
+ : TextEditCommandAuraLinux::MOVE_TO_BEGINNING_OF_DOCUMENT);
break;
default:
// GTK_MOVEMENT_PARAGRAPHS and GTK_MOVEMENT_HORIZONTAL_PAGES have
« no previous file with comments | « no previous file | ui/events/linux/text_edit_command_auralinux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698