| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "chrome/browser/ui/app_list/app_list_service_views.h" | 12 #include "chrome/browser/ui/app_list/app_list_service_views.h" |
| 12 | 13 |
| 13 class ActivationTrackerWin; | 14 class ActivationTrackerWin; |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 template <typename T> struct DefaultSingletonTraits; | 17 template <typename T> struct DefaultSingletonTraits; |
| 17 } | 18 } |
| 18 | 19 |
| 19 class AppListServiceWin : public AppListServiceViews { | 20 class AppListServiceWin : public AppListServiceViews { |
| 20 public: | 21 public: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 bool IsWarmupNeeded(); | 45 bool IsWarmupNeeded(); |
| 45 void ScheduleWarmup(); | 46 void ScheduleWarmup(); |
| 46 | 47 |
| 47 // Loads the profile last used with the app list and populates the view from | 48 // Loads the profile last used with the app list and populates the view from |
| 48 // it without showing it so that the next show is faster. Does nothing if the | 49 // it without showing it so that the next show is faster. Does nothing if the |
| 49 // view already exists, or another profile is in the middle of being loaded to | 50 // view already exists, or another profile is in the middle of being loaded to |
| 50 // be shown. | 51 // be shown. |
| 51 void LoadProfileForWarmup(); | 52 void LoadProfileForWarmup(); |
| 52 void OnLoadProfileForWarmup(Profile* initial_profile); | 53 void OnLoadProfileForWarmup(Profile* initial_profile); |
| 53 | 54 |
| 54 scoped_ptr<ActivationTrackerWin> activation_tracker_; | 55 std::unique_ptr<ActivationTrackerWin> activation_tracker_; |
| 55 | 56 |
| 56 base::Closure next_paint_callback_; | 57 base::Closure next_paint_callback_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(AppListServiceWin); | 59 DISALLOW_COPY_AND_ASSIGN(AppListServiceWin); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ | 62 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ |
| OLD | NEW |