OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 // Overridden from SpeechUIModelObserver: | 167 // Overridden from SpeechUIModelObserver: |
168 void OnSpeechRecognitionStateChanged( | 168 void OnSpeechRecognitionStateChanged( |
169 SpeechRecognitionState new_state) override; | 169 SpeechRecognitionState new_state) override; |
170 | 170 |
171 AppListViewDelegate* delegate_; // Weak. Owned by AppListService. | 171 AppListViewDelegate* delegate_; // Weak. Owned by AppListService. |
172 | 172 |
173 AppListMainView* app_list_main_view_; | 173 AppListMainView* app_list_main_view_; |
174 SpeechView* speech_view_; | 174 SpeechView* speech_view_; |
175 | 175 |
| 176 views::View* search_box_focus_host_; // Owned by the views hierarchy. |
176 views::Widget* search_box_widget_; // Owned by the app list's widget. | 177 views::Widget* search_box_widget_; // Owned by the app list's widget. |
177 SearchBoxView* search_box_view_; // Owned by |search_box_widget_|. | 178 SearchBoxView* search_box_view_; // Owned by |search_box_widget_|. |
178 | 179 |
179 // A semi-transparent white overlay that covers the app list while dialogs are | 180 // A semi-transparent white overlay that covers the app list while dialogs are |
180 // open. | 181 // open. |
181 views::View* overlay_view_; | 182 views::View* overlay_view_; |
182 | 183 |
183 ObserverList<AppListViewObserver> observers_; | 184 ObserverList<AppListViewObserver> observers_; |
184 scoped_ptr<HideViewAnimationObserver> animation_observer_; | 185 scoped_ptr<HideViewAnimationObserver> animation_observer_; |
185 | 186 |
186 // For UMA and testing. If non-null, triggered when the app list is painted. | 187 // For UMA and testing. If non-null, triggered when the app list is painted. |
187 base::Closure next_paint_callback_; | 188 base::Closure next_paint_callback_; |
188 | 189 |
189 DISALLOW_COPY_AND_ASSIGN(AppListView); | 190 DISALLOW_COPY_AND_ASSIGN(AppListView); |
190 }; | 191 }; |
191 | 192 |
192 } // namespace app_list | 193 } // namespace app_list |
193 | 194 |
194 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 195 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |