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

Unified Diff: ui/views/controls/prefix_selector.cc

Issue 2007503002: Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added file deleted during rename. Created 4 years, 7 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
Index: ui/views/controls/prefix_selector.cc
diff --git a/ui/views/controls/prefix_selector.cc b/ui/views/controls/prefix_selector.cc
index 1ba5feb1ba8ee57dd60a39e9e77c7b49b4285328..41c2a71e0620b6c4d51a9e3dd5a34334d0fc07b7 100644
--- a/ui/views/controls/prefix_selector.cc
+++ b/ui/views/controls/prefix_selector.cc
@@ -135,12 +135,12 @@ void PrefixSelector::ExtendSelectionAndDelete(size_t before, size_t after) {
void PrefixSelector::EnsureCaretInRect(const gfx::Rect& rect) {
}
-bool PrefixSelector::IsEditCommandEnabled(int command_id) {
+bool PrefixSelector::IsEditCommandEnabled(ui::TextEditCommand command) const {
return false;
}
-void PrefixSelector::SetEditCommandForNextKeyEvent(int command_id) {
-}
+void PrefixSelector::SetEditCommandForNextKeyEvent(
+ ui::TextEditCommand command) {}
void PrefixSelector::OnTextInput(const base::string16& text) {
// Small hack to filter out 'tab' and 'enter' input, as the expectation is

Powered by Google App Engine
This is Rietveld 408576698