Chromium Code Reviews| 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 CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 // a new launcher item is created and pinned. | 133 // a new launcher item is created and pinned. |
| 134 void PinAppWithID(const std::string& app_id); | 134 void PinAppWithID(const std::string& app_id); |
| 135 | 135 |
| 136 // Updates the launche type of the app for the specified id to |launch_type|. | 136 // Updates the launche type of the app for the specified id to |launch_type|. |
| 137 void SetLaunchType(ash::LauncherID id, | 137 void SetLaunchType(ash::LauncherID id, |
| 138 ExtensionPrefs::LaunchType launch_type); | 138 ExtensionPrefs::LaunchType launch_type); |
| 139 | 139 |
| 140 // Unpins any app items whose id is |app_id|. | 140 // Unpins any app items whose id is |app_id|. |
| 141 void UnpinAppsWithID(const std::string& app_id); | 141 void UnpinAppsWithID(const std::string& app_id); |
| 142 | 142 |
| 143 // Returns true if the user is currently logged in as a guest. | |
| 144 virtual bool IsLoggedInAsGuest(); | |
|
sky
2012/04/23 20:41:16
remove virtual here and 148.
| |
| 145 | |
| 146 // Invoked when the user clicks on button in the launcher to create a new | |
| 147 // incognito window. | |
| 148 virtual void CreateNewIncognitoWindow(); | |
| 149 | |
| 143 ash::LauncherModel* model() { return model_; } | 150 ash::LauncherModel* model() { return model_; } |
| 144 | 151 |
| 145 Profile* profile() { return profile_; } | 152 Profile* profile() { return profile_; } |
| 146 | 153 |
| 147 void SetAutoHideBehavior(ash::ShelfAutoHideBehavior behavior); | 154 void SetAutoHideBehavior(ash::ShelfAutoHideBehavior behavior); |
| 148 | 155 |
| 149 // ash::LauncherDelegate overrides: | 156 // ash::LauncherDelegate overrides: |
| 150 virtual void CreateNewTab() OVERRIDE; | 157 virtual void CreateNewTab() OVERRIDE; |
| 151 virtual void CreateNewWindow() OVERRIDE; | 158 virtual void CreateNewWindow() OVERRIDE; |
| 152 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; | 159 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 // are installed (via sync or external extension provider.) The order of the | 238 // are installed (via sync or external extension provider.) The order of the |
| 232 // list reflects the original order in pinned app list. | 239 // list reflects the original order in pinned app list. |
| 233 std::queue<Item> pending_pinned_apps_; | 240 std::queue<Item> pending_pinned_apps_; |
| 234 | 241 |
| 235 content::NotificationRegistrar registrar_; | 242 content::NotificationRegistrar registrar_; |
| 236 | 243 |
| 237 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); | 244 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); |
| 238 }; | 245 }; |
| 239 | 246 |
| 240 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ | 247 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |