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

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

Issue 2027133002: Modify ui::TextInputClient to use ui::TextEditCommand enum in place of resource ids. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor4_up_down_mac
Patch Set: Address review comments. 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 | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/prefix_selector.cc
diff --git a/ui/views/controls/prefix_selector.cc b/ui/views/controls/prefix_selector.cc
index a0baf028731440d6b834a97567378c8056099191..5e8e3eb65a924bbb3400ad1efb585505a8a5582e 100644
--- a/ui/views/controls/prefix_selector.cc
+++ b/ui/views/controls/prefix_selector.cc
@@ -135,12 +135,13 @@ void PrefixSelector::ExtendSelectionAndDelete(size_t before, size_t after) {
void PrefixSelector::EnsureCaretInRect(const gfx::Rect& rect) {
}
-bool PrefixSelector::IsEditCommandEnabled(int command_id) const {
+bool PrefixSelector::IsTextEditCommandEnabled(
+ ui::TextEditCommand command) const {
return false;
}
-void PrefixSelector::SetEditCommandForNextKeyEvent(int command_id) {
-}
+void PrefixSelector::SetTextEditCommandForNextKeyEvent(
+ ui::TextEditCommand command) {}
void PrefixSelector::OnTextInput(const base::string16& text) {
// Small hack to filter out 'tab' and 'enter' input, as the expectation is
« no previous file with comments | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698