Index: ui/app_list/views/app_list_view.h |
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h |
index 53eb0dc8642497974415d3e95a5215e050d40041..2567f883843bd1250387e54023ab6dc1d4fbf376 100644 |
--- a/ui/app_list/views/app_list_view.h |
+++ b/ui/app_list/views/app_list_view.h |
@@ -95,7 +95,7 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView, |
// Returns true if the app list should be centered and in landscape mode. |
bool ShouldCenterWindow() const; |
- SearchBoxView* search_box_view() const { return search_box_view_; } |
+ views::Widget* search_box_widget() const { return search_box_widget_; } |
// Overridden from views::View: |
gfx::Size GetPreferredSize() const override; |
@@ -138,6 +138,8 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView, |
void InitContents(gfx::NativeView parent, int initial_apps_page); |
+ void InitChildWidgets(); |
+ |
void InitAsBubbleInternal(gfx::NativeView parent, |
int initial_apps_page, |
views::BubbleBorder::Arrow arrow, |
@@ -166,9 +168,11 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView, |
AppListViewDelegate* delegate_; // Weak. Owned by AppListService. |
AppListMainView* app_list_main_view_; |
- SearchBoxView* search_box_view_; |
SpeechView* speech_view_; |
+ views::Widget* search_box_widget_; // Owned by the app list's widget. |
+ SearchBoxView* search_box_view_; // Owned by |search_box_widget_|. |
+ |
// A semi-transparent white overlay that covers the app list while dialogs are |
// open. |
views::View* overlay_view_; |