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_CONTENTS_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 // and animates the transition between show states. | 38 // and animates the transition between show states. |
39 class APP_LIST_EXPORT ContentsView : public views::View { | 39 class APP_LIST_EXPORT ContentsView : public views::View { |
40 public: | 40 public: |
41 enum ShowState { | 41 enum ShowState { |
42 SHOW_APPS, | 42 SHOW_APPS, |
43 SHOW_SEARCH_RESULTS, | 43 SHOW_SEARCH_RESULTS, |
44 SHOW_START_PAGE, | 44 SHOW_START_PAGE, |
45 }; | 45 }; |
46 | 46 |
47 ContentsView(AppListMainView* app_list_main_view, | 47 ContentsView(AppListMainView* app_list_main_view, |
48 PaginationModel* pagination_model, | |
49 AppListModel* model, | 48 AppListModel* model, |
50 AppListViewDelegate* view_delegate); | 49 AppListViewDelegate* view_delegate); |
51 virtual ~ContentsView(); | 50 virtual ~ContentsView(); |
52 | 51 |
53 // The app list gets closed and drag and drop operations need to be cancelled. | 52 // The app list gets closed and drag and drop operations need to be cancelled. |
54 void CancelDrag(); | 53 void CancelDrag(); |
55 | 54 |
56 // If |drag_and_drop| is not NULL it will be called upon drag and drop | 55 // If |drag_and_drop| is not NULL it will be called upon drag and drop |
57 // operations outside the application list. | 56 // operations outside the application list. |
58 void SetDragAndDropHostOfCurrentAppList( | 57 void SetDragAndDropHostOfCurrentAppList( |
(...skipping 23 matching lines...) Expand all Loading... | |
82 void ShowStateChanged(); | 81 void ShowStateChanged(); |
83 | 82 |
84 void CalculateIdealBounds(); | 83 void CalculateIdealBounds(); |
85 void AnimateToIdealBounds(); | 84 void AnimateToIdealBounds(); |
86 | 85 |
87 // Overridden from ui::EventHandler: | 86 // Overridden from ui::EventHandler: |
88 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 87 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
89 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 88 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
90 | 89 |
91 ShowState show_state_; | 90 ShowState show_state_; |
92 PaginationModel* pagination_model_; // Owned by AppListController. | 91 PaginationModel* pagination_model_; // Owned by AppListGridView. |
xiyuan
2014/05/30 15:47:47
AppListGridView -> AppsGridView
Matt Giuca
2014/06/02 07:11:23
Done.
| |
93 | 92 |
94 AppsContainerView* apps_container_view_; // Owned by the views hierarchy. | 93 AppsContainerView* apps_container_view_; // Owned by the views hierarchy. |
95 StartPageView* start_page_view_; // Owned by the views hierarchy. | 94 StartPageView* start_page_view_; // Owned by the views hierarchy. |
96 | 95 |
97 AppListMainView* app_list_main_view_; // Parent view, owns this. | 96 AppListMainView* app_list_main_view_; // Parent view, owns this. |
98 | 97 |
99 scoped_ptr<views::ViewModel> view_model_; | 98 scoped_ptr<views::ViewModel> view_model_; |
100 scoped_ptr<views::BoundsAnimator> bounds_animator_; | 99 scoped_ptr<views::BoundsAnimator> bounds_animator_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(ContentsView); | 101 DISALLOW_COPY_AND_ASSIGN(ContentsView); |
103 }; | 102 }; |
104 | 103 |
105 } // namespace app_list | 104 } // namespace app_list |
106 | 105 |
107 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 106 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
OLD | NEW |