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

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

Issue 2289143004: Add ink drop ripple (but no highlight) to comboboxes in harmony. (Closed)
Patch Set: . Created 4 years, 4 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.h
diff --git a/ui/views/controls/prefix_selector.h b/ui/views/controls/prefix_selector.h
index 9476855534cb8e6c915e1448e372ced9e13f2c50..41341afeae83788f7ce1659eda14a3dafe0a8294 100644
--- a/ui/views/controls/prefix_selector.h
+++ b/ui/views/controls/prefix_selector.h
@@ -17,12 +17,13 @@
namespace views {
class PrefixDelegate;
+class View;
// PrefixSelector is used to change the selection in a view as the user
// types characters.
class VIEWS_EXPORT PrefixSelector : public ui::TextInputClient {
public:
- explicit PrefixSelector(PrefixDelegate* delegate);
+ explicit PrefixSelector(PrefixDelegate* delegate, View* host_view);
sky 2016/08/31 16:19:49 remove explicit.
Evan Stade 2016/08/31 21:12:29 Done.
~PrefixSelector() override;
// Invoked from the view when it loses focus.
@@ -71,6 +72,8 @@ class VIEWS_EXPORT PrefixSelector : public ui::TextInputClient {
PrefixDelegate* prefix_delegate_;
+ View* host_view_;
+
// Time OnTextInput() was last invoked.
base::TimeTicks time_of_last_key_;

Powered by Google App Engine
This is Rietveld 408576698