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

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

Issue 2729133005: Fix: Cursor missing in omnibox after entering a alphabet in NTP 'Search box' (Closed)
Patch Set: address comments Created 3 years, 9 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/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 4e4fc2e745e515deed03010cca672b16f6374313..cc54705b7aaa4bd0d704d4e712c69f06d2e4c288 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -334,7 +334,11 @@ class VIEWS_EXPORT Textfield : public View,
virtual base::string16 GetSelectionClipboardText() const;
// Executes the given |command|.
- virtual void ExecuteTextEditCommand(ui::TextEditCommand command);
+ void ExecuteTextEditCommand(ui::TextEditCommand command);
+
+ // Implementation of ExecuteTextEditCommand. It returns true if text or cursor
+ // have changed; otherwise, returns false.
+ virtual bool ExecuteTextEditCommandImpl(ui::TextEditCommand command);
sky 2017/03/09 19:31:24 Having to return whether state is modified by subc
private:
friend class TextfieldTestApi;

Powered by Google App Engine
This is Rietveld 408576698