| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 | 11 |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 namespace base { |
| 15 class FilePath; |
| 16 } |
| 17 |
| 14 namespace extensions { | 18 namespace extensions { |
| 15 class Extension; | 19 class Extension; |
| 16 } | 20 } |
| 17 | 21 |
| 18 namespace gfx { | 22 namespace gfx { |
| 19 class ImageSkia; | 23 class ImageSkia; |
| 20 } | 24 } |
| 21 | 25 |
| 22 // Interface to allow the view delegate to call out to whatever is controlling | 26 // Interface to allow the view delegate to call out to whatever is controlling |
| 23 // the app list. This will have different implementations for different | 27 // the app list. This will have different implementations for different |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Show the app's most recent window, or launch it if it is not running. | 64 // Show the app's most recent window, or launch it if it is not running. |
| 61 virtual void ActivateApp(Profile* profile, | 65 virtual void ActivateApp(Profile* profile, |
| 62 const extensions::Extension* extension, | 66 const extensions::Extension* extension, |
| 63 int event_flags) = 0; | 67 int event_flags) = 0; |
| 64 | 68 |
| 65 // Launch the app. | 69 // Launch the app. |
| 66 virtual void LaunchApp(Profile* profile, | 70 virtual void LaunchApp(Profile* profile, |
| 67 const extensions::Extension* extension, | 71 const extensions::Extension* extension, |
| 68 int event_flags) = 0; | 72 int event_flags) = 0; |
| 69 | 73 |
| 74 // Show the app list for the profile specified by |profile_path|. |
| 75 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; |
| 76 |
| 70 // Whether or not the icon indicating which user is logged in should be | 77 // Whether or not the icon indicating which user is logged in should be |
| 71 // visible. | 78 // visible. |
| 72 virtual bool ShouldShowUserIcon(); | 79 virtual bool ShouldShowUserIcon(); |
| 73 }; | 80 }; |
| 74 | 81 |
| 75 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 82 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |