OLD | NEW |
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 UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "ui/app_list/app_list_export.h" | 10 #include "ui/app_list/app_list_export.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class SigninDelegate; | 28 class SigninDelegate; |
29 class SigninView; | 29 class SigninView; |
30 class SpeechView; | 30 class SpeechView; |
31 | 31 |
32 // AppListView is the top-level view and controller of app list UI. It creates | 32 // AppListView is the top-level view and controller of app list UI. It creates |
33 // and hosts a AppsGridView and passes AppListModel to it for display. | 33 // and hosts a AppsGridView and passes AppListModel to it for display. |
34 class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView, | 34 class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView, |
35 public AppListViewDelegateObserver, | 35 public AppListViewDelegateObserver, |
36 public SpeechUIModelObserver { | 36 public SpeechUIModelObserver { |
37 public: | 37 public: |
38 | |
39 // Takes ownership of |delegate|. | 38 // Takes ownership of |delegate|. |
40 explicit AppListView(AppListViewDelegate* delegate); | 39 explicit AppListView(AppListViewDelegate* delegate); |
41 virtual ~AppListView(); | 40 virtual ~AppListView(); |
42 | 41 |
43 // Initializes the widget and use a given |anchor| plus an |anchor_offset| for | 42 // Initializes the widget and use a given |anchor| plus an |anchor_offset| for |
44 // positioning. | 43 // positioning. |
45 void InitAsBubbleAttachedToAnchor(gfx::NativeView parent, | 44 void InitAsBubbleAttachedToAnchor(gfx::NativeView parent, |
46 PaginationModel* pagination_model, | 45 PaginationModel* pagination_model, |
47 views::View* anchor, | 46 views::View* anchor, |
48 const gfx::Vector2d& anchor_offset, | 47 const gfx::Vector2d& anchor_offset, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 146 |
148 ObserverList<AppListViewObserver> observers_; | 147 ObserverList<AppListViewObserver> observers_; |
149 scoped_ptr<HideViewAnimationObserver> animation_observer_; | 148 scoped_ptr<HideViewAnimationObserver> animation_observer_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(AppListView); | 150 DISALLOW_COPY_AND_ASSIGN(AppListView); |
152 }; | 151 }; |
153 | 152 |
154 } // namespace app_list | 153 } // namespace app_list |
155 | 154 |
156 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 155 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |