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_APP_LIST_APP_LIST_VIEW_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_VIEW_H_ |
6 #define ASH_APP_LIST_APP_LIST_VIEW_H_ | 6 #define ASH_APP_LIST_APP_LIST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/app_list/app_list_item_view_listener.h" | 9 #include "ash/app_list/app_list_item_view_listener.h" |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/shell_delegate.h" | 11 #include "ash/shell_delegate.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "ui/views/widget/widget_delegate.h" | 13 #include "ui/views/widget/widget_delegate.h" |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 class View; | 16 class View; |
17 } | 17 } |
18 | 18 |
19 namespace aura_shell { | 19 namespace ash { |
20 | 20 |
21 class AppListModel; | 21 class AppListModel; |
22 class AppListViewDelegate; | 22 class AppListViewDelegate; |
23 | 23 |
24 // AppListView is the top-level view and controller of app list UI. It creates | 24 // AppListView is the top-level view and controller of app list UI. It creates |
25 // and hosts a AppListModelView and passes AppListModel to it for display. | 25 // and hosts a AppListModelView and passes AppListModel to it for display. |
26 class ASH_EXPORT AppListView : public views::WidgetDelegateView, | 26 class ASH_EXPORT AppListView : public views::WidgetDelegateView, |
27 public AppListItemViewListener { | 27 public AppListItemViewListener { |
28 public: | 28 public: |
29 // Takes ownership of |model| and |delegate|. | 29 // Takes ownership of |model| and |delegate|. |
(...skipping 19 matching lines...) Expand all Loading... |
49 virtual void AppListItemActivated(AppListItemView* sender, | 49 virtual void AppListItemActivated(AppListItemView* sender, |
50 int event_flags) OVERRIDE; | 50 int event_flags) OVERRIDE; |
51 | 51 |
52 scoped_ptr<AppListModel> model_; | 52 scoped_ptr<AppListModel> model_; |
53 | 53 |
54 scoped_ptr<AppListViewDelegate> delegate_; | 54 scoped_ptr<AppListViewDelegate> delegate_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(AppListView); | 56 DISALLOW_COPY_AND_ASSIGN(AppListView); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace aura_shell | 59 } // namespace ash |
60 | 60 |
61 #endif // ASH_APP_LIST_APP_LIST_VIEW_H_ | 61 #endif // ASH_APP_LIST_APP_LIST_VIEW_H_ |
OLD | NEW |