| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 Profile* profile() const { return profile_; } | 33 Profile* profile() const { return profile_; } |
| 34 | 34 |
| 35 // Create or recreate, and initialize |app_list_| from |requested_profile|. | 35 // Create or recreate, and initialize |app_list_| from |requested_profile|. |
| 36 void CreateViewForProfile(Profile* requested_profile); | 36 void CreateViewForProfile(Profile* requested_profile); |
| 37 | 37 |
| 38 void DismissAppList(); | 38 void DismissAppList(); |
| 39 | 39 |
| 40 // Virtual functions mocked out in tests. | 40 // Virtual functions mocked out in tests. |
| 41 virtual void HandleViewBeingDestroyed(); | 41 virtual void HandleViewBeingDestroyed(); |
| 42 virtual bool IsAppListVisible() const; | 42 virtual bool IsAppListVisible() const; |
| 43 void WarmupForProfile(Profile* profile); | |
| 44 virtual bool HasView() const; | 43 virtual bool HasView() const; |
| 45 | 44 |
| 46 protected: | 45 protected: |
| 47 virtual app_list::AppListView* MakeViewForCurrentProfile(); | 46 virtual app_list::AppListView* MakeViewForCurrentProfile(); |
| 48 virtual void UpdateViewForNewProfile(); | 47 virtual void UpdateViewForNewProfile(); |
| 49 | 48 |
| 50 // Shows the app list, activates it, and ensures the taskbar icon is updated. | 49 // Shows the app list, activates it, and ensures the taskbar icon is updated. |
| 51 virtual void Show(); | 50 virtual void Show(); |
| 52 virtual void Hide(); | 51 virtual void Hide(); |
| 53 | 52 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 67 | 66 |
| 68 // Used to keep the browser process alive while the app list is visible. | 67 // Used to keep the browser process alive while the app list is visible. |
| 69 std::unique_ptr<ScopedKeepAlive> keep_alive_; | 68 std::unique_ptr<ScopedKeepAlive> keep_alive_; |
| 70 | 69 |
| 71 bool window_icon_updated_; | 70 bool window_icon_updated_; |
| 72 | 71 |
| 73 DISALLOW_COPY_AND_ASSIGN(AppListShower); | 72 DISALLOW_COPY_AND_ASSIGN(AppListShower); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ | 75 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ |
| OLD | NEW |