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

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

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/cocoa/bridged_content_view.mm ('k') | ui/views/controls/prefix_selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/prefix_selector.h
diff --git a/ui/views/controls/prefix_selector.h b/ui/views/controls/prefix_selector.h
index 10fe18b1299ac4e0e8a4244635836150734bcdee..e724b72377eeb27a053bae27c83f868e99cf0c02 100644
--- a/ui/views/controls/prefix_selector.h
+++ b/ui/views/controls/prefix_selector.h
@@ -55,8 +55,8 @@ class VIEWS_EXPORT PrefixSelector : public ui::TextInputClient {
void ExtendSelectionAndDelete(size_t before, size_t after) override;
void EnsureCaretInRect(const gfx::Rect& rect) override;
- bool IsEditCommandEnabled(int command_id) const override;
- void SetEditCommandForNextKeyEvent(int command_id) override;
+ bool IsTextEditCommandEnabled(ui::TextEditCommand command) const override;
+ void SetTextEditCommandForNextKeyEvent(ui::TextEditCommand command) override;
private:
// Invoked when text is typed. Tries to change the selection appropriately.
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/controls/prefix_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698