OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AURA_CHROME_SHELL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Returns whether a launcher item should be created for |browser|. If an item | 23 // Returns whether a launcher item should be created for |browser|. If an item |
24 // should be created |type| is set to the launcher type to create. | 24 // should be created |type| is set to the launcher type to create. |
25 static bool ShouldCreateLauncherItemForBrowser( | 25 static bool ShouldCreateLauncherItemForBrowser( |
26 Browser* browser, | 26 Browser* browser, |
27 aura_shell::LauncherItemType* type); | 27 aura_shell::LauncherItemType* type); |
28 | 28 |
29 // aura_shell::ShellDelegate overrides; | 29 // aura_shell::ShellDelegate overrides; |
30 virtual void CreateNewWindow() OVERRIDE; | 30 virtual void CreateNewWindow() OVERRIDE; |
31 virtual views::Widget* CreateStatusArea() OVERRIDE; | 31 virtual views::Widget* CreateStatusArea() OVERRIDE; |
32 virtual void ShowApps() OVERRIDE; | 32 virtual void RequestAppListWidget( |
| 33 const aura_shell::SetWidgetCallback& callback) OVERRIDE; |
33 virtual void LauncherItemClicked( | 34 virtual void LauncherItemClicked( |
34 const aura_shell::LauncherItem& item) OVERRIDE; | 35 const aura_shell::LauncherItem& item) OVERRIDE; |
35 virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE; | 36 virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE; |
36 | 37 |
37 private: | 38 private: |
38 scoped_ptr<StatusAreaHostAura> status_area_host_; | 39 scoped_ptr<StatusAreaHostAura> status_area_host_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 41 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ | 44 #endif // CHROME_BROWSER_UI_VIEWS_AURA_CHROME_SHELL_DELEGATE_H_ |
OLD | NEW |