| 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_SERVICE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/ui/app_list/app_list_service_impl.h" | 9 #include "chrome/browser/ui/app_list/app_list_service_impl.h" |
| 10 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" | 10 #include "chrome/browser/ui/app_list/app_list_shower_delegate.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // view must be destroyed. | 30 // view must be destroyed. |
| 31 virtual void OnViewBeingDestroyed(); | 31 virtual void OnViewBeingDestroyed(); |
| 32 | 32 |
| 33 // AppListService overrides: | 33 // AppListService overrides: |
| 34 virtual void Init(Profile* initial_profile) OVERRIDE; | 34 virtual void Init(Profile* initial_profile) OVERRIDE; |
| 35 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; | 35 virtual void CreateForProfile(Profile* requested_profile) OVERRIDE; |
| 36 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; | 36 virtual void ShowForProfile(Profile* requested_profile) OVERRIDE; |
| 37 virtual void DismissAppList() OVERRIDE; | 37 virtual void DismissAppList() OVERRIDE; |
| 38 virtual bool IsAppListVisible() const OVERRIDE; | 38 virtual bool IsAppListVisible() const OVERRIDE; |
| 39 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; | 39 virtual gfx::NativeWindow GetAppListWindow() OVERRIDE; |
| 40 virtual app_list::AppListView* GetAppListView() OVERRIDE; |
| 40 virtual Profile* GetCurrentAppListProfile() OVERRIDE; | 41 virtual Profile* GetCurrentAppListProfile() OVERRIDE; |
| 41 virtual AppListControllerDelegate* GetControllerDelegate() OVERRIDE; | 42 virtual AppListControllerDelegate* GetControllerDelegate() OVERRIDE; |
| 42 | 43 |
| 43 // AppListShowerDelegate overrides: | 44 // AppListShowerDelegate overrides: |
| 44 virtual AppListControllerDelegate* GetControllerDelegateForCreate() OVERRIDE; | 45 virtual AppListControllerDelegate* GetControllerDelegateForCreate() OVERRIDE; |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 // Responsible for creating the app list and responding to profile changes. | 48 // Responsible for creating the app list and responding to profile changes. |
| 48 AppListShower shower_; | 49 AppListShower shower_; |
| 49 | 50 |
| 50 bool can_dismiss_; | 51 bool can_dismiss_; |
| 51 scoped_ptr<AppListControllerDelegate> controller_delegate_; | 52 scoped_ptr<AppListControllerDelegate> controller_delegate_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(AppListServiceViews); | 54 DISALLOW_COPY_AND_ASSIGN(AppListServiceViews); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ | 57 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_VIEWS_H_ |
| OLD | NEW |