Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h

Issue 10139025: Add support for a context menu on the browser shortcut icon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only have new api on ChromeLauncherDelegate Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698