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

Unified Diff: ash/wm/overview/window_selector.h

Issue 403493006: Visual improvements to text filtering in Ash overview mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: ash/wm/overview/window_selector.h
diff --git a/ash/wm/overview/window_selector.h b/ash/wm/overview/window_selector.h
index 2b44700305a76bfd9e871fdf8c0aa19e88937358..989cc08875805be0fb992a6e508251c032e84b97 100644
--- a/ash/wm/overview/window_selector.h
+++ b/ash/wm/overview/window_selector.h
@@ -66,6 +66,9 @@ class ASH_EXPORT WindowSelector
WindowSelectorDelegate* delegate);
virtual ~WindowSelector();
+ // Returns the height of the textfield used for text filtering.
+ int TextFilterHeight() const;
+
// Cancels window selection.
void CancelSelection();
@@ -114,6 +117,11 @@ class ASH_EXPORT WindowSelector
// corresponding window grid.
void Move(Direction direction, bool animate);
+ // Instantiates and returns the widget hosting the textfield used in
+ // text filtering.
+ views::Widget* CreateTextFilter(views::TextfieldController* controller,
+ aura::Window* root_window);
+
// Tracks observed windows.
std::set<aura::Window*> observed_windows_;
@@ -159,6 +167,9 @@ class ASH_EXPORT WindowSelector
// such as enter key to select.
scoped_ptr<views::Widget> text_filter_widget_;
+ // The height in pixels of the text used in text filtering.
+ int text_height_;
+
DISALLOW_COPY_AND_ASSIGN(WindowSelector);
};

Powered by Google App Engine
This is Rietveld 408576698