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

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: 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 ash::LauncherModel* model() { return model_; } 143 ash::LauncherModel* model() { return model_; }
144 144
145 Profile* profile() { return profile_; } 145 Profile* profile() { return profile_; }
146 146
147 void SetAutoHideBehavior(ash::ShelfAutoHideBehavior behavior); 147 void SetAutoHideBehavior(ash::ShelfAutoHideBehavior behavior);
148 148
149 // ash::LauncherDelegate overrides: 149 // ash::LauncherDelegate overrides:
150 virtual void CreateNewTab() OVERRIDE; 150 virtual void CreateNewTab() OVERRIDE;
151 virtual void CreateNewWindow() OVERRIDE; 151 virtual void CreateNewWindow() OVERRIDE;
152 virtual void CreateNewIncognitoWindow() OVERRIDE;
152 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; 153 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE;
153 virtual int GetBrowserShortcutResourceId() OVERRIDE; 154 virtual int GetBrowserShortcutResourceId() OVERRIDE;
154 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; 155 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE;
155 virtual ui::MenuModel* CreateContextMenu( 156 virtual ui::MenuModel* CreateContextMenu(
156 const ash::LauncherItem& item) OVERRIDE; 157 const ash::LauncherItem& item) OVERRIDE;
157 virtual ui::MenuModel* CreateContextMenuForLauncher() OVERRIDE; 158 virtual ui::MenuModel* CreateContextMenuForLauncher() OVERRIDE;
158 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; 159 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
160 virtual bool IsLoggedInAsGuest() OVERRIDE;
159 161
160 // ash::LauncherModelObserver overrides: 162 // ash::LauncherModelObserver overrides:
161 virtual void LauncherItemAdded(int index) OVERRIDE; 163 virtual void LauncherItemAdded(int index) OVERRIDE;
162 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE; 164 virtual void LauncherItemRemoved(int index, ash::LauncherID id) OVERRIDE;
163 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE; 165 virtual void LauncherItemMoved(int start_index, int target_index) OVERRIDE;
164 virtual void LauncherItemChanged(int index, 166 virtual void LauncherItemChanged(int index,
165 const ash::LauncherItem& old_item) OVERRIDE; 167 const ash::LauncherItem& old_item) OVERRIDE;
166 virtual void LauncherItemWillChange(int index) OVERRIDE; 168 virtual void LauncherItemWillChange(int index) OVERRIDE;
167 169
168 // Overridden from content::NotificationObserver: 170 // Overridden from content::NotificationObserver:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // are installed (via sync or external extension provider.) The order of the 233 // are installed (via sync or external extension provider.) The order of the
232 // list reflects the original order in pinned app list. 234 // list reflects the original order in pinned app list.
233 std::queue<Item> pending_pinned_apps_; 235 std::queue<Item> pending_pinned_apps_;
234 236
235 content::NotificationRegistrar registrar_; 237 content::NotificationRegistrar registrar_;
236 238
237 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); 239 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate);
238 }; 240 };
239 241
240 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 242 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698