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 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 "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // AppListView is the top-level view and controller of app list UI. It creates | 23 // AppListView is the top-level view and controller of app list UI. It creates |
24 // and hosts a AppListModelView and passes AppListModel to it for display. | 24 // and hosts a AppListModelView and passes AppListModel to it for display. |
25 class AppListView : public views::WidgetDelegateView, | 25 class AppListView : public views::WidgetDelegateView, |
26 public views::ButtonListener { | 26 public views::ButtonListener { |
27 public: | 27 public: |
28 // Takes ownership of |delegate|. | 28 // Takes ownership of |delegate|. |
29 AppListView(AppListViewDelegate* delegate, | 29 AppListView(AppListViewDelegate* delegate, |
30 const gfx::Rect& bounds); | 30 const gfx::Rect& bounds); |
31 virtual ~AppListView(); | 31 virtual ~AppListView(); |
32 | 32 |
33 // Closes app list. | 33 void AnimateShow(); |
| 34 void AnimateHide(); |
| 35 |
34 void Close(); | 36 void Close(); |
35 | 37 |
36 private: | 38 private: |
37 // Initializes the window. | 39 // Initializes the window. |
38 void Init(const gfx::Rect& bounds); | 40 void Init(const gfx::Rect& bounds); |
39 | 41 |
40 // Updates model using query text in search box. | 42 // Updates model using query text in search box. |
41 void UpdateModel(); | 43 void UpdateModel(); |
42 | 44 |
43 // Overridden from views::WidgetDelegateView: | 45 // Overridden from views::WidgetDelegateView: |
(...skipping 13 matching lines...) Expand all Loading... |
57 scoped_ptr<AppListViewDelegate> delegate_; | 59 scoped_ptr<AppListViewDelegate> delegate_; |
58 | 60 |
59 AppListModelView* model_view_; | 61 AppListModelView* model_view_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(AppListView); | 63 DISALLOW_COPY_AND_ASSIGN(AppListView); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace ash | 66 } // namespace ash |
65 | 67 |
66 #endif // ASH_APP_LIST_APP_LIST_VIEW_H_ | 68 #endif // ASH_APP_LIST_APP_LIST_VIEW_H_ |
OLD | NEW |