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

Side by Side Diff: ash/shell/launcher_delegate_impl.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 ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_ 5 #ifndef ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_
6 #define ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_ 6 #define ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/launcher/launcher_delegate.h" 9 #include "ash/launcher/launcher_delegate.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 class LauncherDelegateImpl : public ash::LauncherDelegate { 21 class LauncherDelegateImpl : public ash::LauncherDelegate {
22 public: 22 public:
23 explicit LauncherDelegateImpl(WindowWatcher* watcher); 23 explicit LauncherDelegateImpl(WindowWatcher* watcher);
24 virtual ~LauncherDelegateImpl(); 24 virtual ~LauncherDelegateImpl();
25 25
26 void set_watcher(WindowWatcher* watcher) { watcher_ = watcher; } 26 void set_watcher(WindowWatcher* watcher) { watcher_ = watcher; }
27 27
28 // LauncherDelegate overrides: 28 // LauncherDelegate overrides:
29 virtual void CreateNewTab() OVERRIDE; 29 virtual void CreateNewTab() OVERRIDE;
30 virtual void CreateNewWindow() OVERRIDE; 30 virtual void CreateNewWindow() OVERRIDE;
31 virtual void CreateNewIncognitoWindow() OVERRIDE;
31 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; 32 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE;
32 virtual int GetBrowserShortcutResourceId() OVERRIDE; 33 virtual int GetBrowserShortcutResourceId() OVERRIDE;
33 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; 34 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE;
34 virtual ui::MenuModel* CreateContextMenu( 35 virtual ui::MenuModel* CreateContextMenu(
35 const ash::LauncherItem& item) OVERRIDE; 36 const ash::LauncherItem& item) OVERRIDE;
36 virtual ui::MenuModel* CreateContextMenuForLauncher() OVERRIDE; 37 virtual ui::MenuModel* CreateContextMenuForLauncher() OVERRIDE;
37 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; 38 virtual ash::LauncherID GetIDByWindow(aura::Window* window) OVERRIDE;
39 virtual bool IsLoggedInAsGuest() OVERRIDE;
38 40
39 private: 41 private:
40 // Used to update Launcher. Owned by main. 42 // Used to update Launcher. Owned by main.
41 WindowWatcher* watcher_; 43 WindowWatcher* watcher_;
42 44
43 DISALLOW_COPY_AND_ASSIGN(LauncherDelegateImpl); 45 DISALLOW_COPY_AND_ASSIGN(LauncherDelegateImpl);
44 }; 46 };
45 47
46 } // namespace shell 48 } // namespace shell
47 } // namespace ash 49 } // namespace ash
48 50
49 #endif // ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_ 51 #endif // ASH_SHELL_LAUNCHER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698