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 ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 class Rect; | 13 class Rect; |
14 } | 14 } |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 class Widget; | 17 class Widget; |
18 } | 18 } |
19 | 19 |
20 namespace aura_shell { | 20 namespace ash { |
21 | 21 |
22 class AppListModel; | 22 class AppListModel; |
23 class AppListViewDelegate; | 23 class AppListViewDelegate; |
24 struct LauncherItem; | 24 struct LauncherItem; |
25 | 25 |
26 // Delegate of the Shell. | 26 // Delegate of the Shell. |
27 class ASH_EXPORT ShellDelegate { | 27 class ASH_EXPORT ShellDelegate { |
28 public: | 28 public: |
29 // Callback to pass back a widget used by RequestAppListWidget. | 29 // Callback to pass back a widget used by RequestAppListWidget. |
30 typedef base::Callback<void(views::Widget*)> SetWidgetCallback; | 30 typedef base::Callback<void(views::Widget*)> SetWidgetCallback; |
(...skipping 24 matching lines...) Expand all Loading... |
55 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; | 55 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; |
56 | 56 |
57 // Invoked when the user clicks on a window entry in the launcher. | 57 // Invoked when the user clicks on a window entry in the launcher. |
58 virtual void LauncherItemClicked(const LauncherItem& item) = 0; | 58 virtual void LauncherItemClicked(const LauncherItem& item) = 0; |
59 | 59 |
60 // Invoked when a window is added. If the delegate wants the launcher to show | 60 // Invoked when a window is added. If the delegate wants the launcher to show |
61 // an entry for |item->window| it should configure |item| appropriately and | 61 // an entry for |item->window| it should configure |item| appropriately and |
62 // return true. | 62 // return true. |
63 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0; | 63 virtual bool ConfigureLauncherItem(LauncherItem* item) = 0; |
64 }; | 64 }; |
65 } // namespace aura_shell | 65 } // namespace ash |
66 | 66 |
67 #endif // ASH_SHELL_DELEGATE_H_ | 67 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |