Chromium Code Reviews| 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_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_H_ |
| 6 #define UI_APP_LIST_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/app_list/app_list_export.h" | 9 #include "ui/app_list/app_list_export.h" |
| 10 #include "ui/app_list/search_box_view_delegate.h" | 10 #include "ui/app_list/search_box_view_delegate.h" |
| 11 #include "ui/app_list/search_result_list_view_delegate.h" | 11 #include "ui/app_list/search_result_list_view_delegate.h" |
| 12 #include "ui/views/bubble/bubble_delegate.h" | 12 #include "ui/views/bubble/bubble_delegate.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 | 14 |
| 15 namespace views { | |
| 16 class Widget; | |
| 17 } | |
| 18 | |
| 15 namespace app_list { | 19 namespace app_list { |
| 16 | 20 |
| 17 class AppListModel; | 21 class AppListModel; |
| 18 class AppListViewDelegate; | 22 class AppListViewDelegate; |
| 19 class ContentsView; | 23 class ContentsView; |
| 20 class PaginationModel; | 24 class PaginationModel; |
| 21 class SearchBoxView; | 25 class SearchBoxView; |
| 22 | 26 |
| 23 // AppListView is the top-level view and controller of app list UI. It creates | 27 // AppListView is the top-level view and controller of app list UI. It creates |
| 24 // and hosts a AppsGridView and passes AppListModel to it for display. | 28 // and hosts a AppsGridView and passes AppListModel to it for display. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 // Overridden from SearchBoxViewDelegate: | 70 // Overridden from SearchBoxViewDelegate: |
| 67 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; | 71 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; |
| 68 | 72 |
| 69 // Overridden from SearchResultListViewDelegate: | 73 // Overridden from SearchResultListViewDelegate: |
| 70 virtual void OpenResult(const SearchResult& result, | 74 virtual void OpenResult(const SearchResult& result, |
| 71 int event_flags) OVERRIDE; | 75 int event_flags) OVERRIDE; |
| 72 virtual void InvokeResultAction(const SearchResult& result, | 76 virtual void InvokeResultAction(const SearchResult& result, |
| 73 int action_index, | 77 int action_index, |
| 74 int event_flags) OVERRIDE; | 78 int event_flags) OVERRIDE; |
| 75 | 79 |
| 80 // Overridden from views::WidgetDelegateObserver: | |
|
xiyuan
2012/10/09 17:43:15
nit: views::WidgetObserver?
benwells
2012/10/10 00:55:21
Done.
| |
| 81 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; | |
| 82 virtual void OnWidgetActivationChanged(views::Widget* widget, bool active) | |
| 83 OVERRIDE; | |
| 84 | |
| 76 scoped_ptr<AppListModel> model_; | 85 scoped_ptr<AppListModel> model_; |
| 77 scoped_ptr<AppListViewDelegate> delegate_; | 86 scoped_ptr<AppListViewDelegate> delegate_; |
| 78 | 87 |
| 79 SearchBoxView* search_box_view_; // Owned by views hierarchy. | 88 SearchBoxView* search_box_view_; // Owned by views hierarchy. |
| 80 ContentsView* contents_view_; // Owned by views hierarchy. | 89 ContentsView* contents_view_; // Owned by views hierarchy. |
| 81 | 90 |
| 82 DISALLOW_COPY_AND_ASSIGN(AppListView); | 91 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 83 }; | 92 }; |
| 84 | 93 |
| 85 } // namespace app_list | 94 } // namespace app_list |
| 86 | 95 |
| 87 #endif // UI_APP_LIST_APP_LIST_VIEW_H_ | 96 #endif // UI_APP_LIST_APP_LIST_VIEW_H_ |
| OLD | NEW |