Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: ui/app_list/views/contents_view.h

Issue 947903002: Change ContentsView::SetActivePage to use States rather than indexes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Shows/hides the search results. Hiding the search results will cause the 64 // Shows/hides the search results. Hiding the search results will cause the
65 // app list to return to the page that was displayed before 65 // app list to return to the page that was displayed before
66 // ShowSearchResults(true) was invoked. 66 // ShowSearchResults(true) was invoked.
67 void ShowSearchResults(bool show); 67 void ShowSearchResults(bool show);
68 bool IsShowingSearchResults() const; 68 bool IsShowingSearchResults() const;
69 69
70 void ShowFolderContent(AppListFolderItem* folder); 70 void ShowFolderContent(AppListFolderItem* folder);
71 71
72 // Sets the active launcher page and animates the pages into place. 72 // Sets the active launcher page and animates the pages into place.
73 void SetActivePage(int page_index); 73 void SetActivePage(AppListModel::State state);
Matt Giuca 2015/02/23 23:57:27 I think this should be renamed to SetActiveState.
calamity 2015/02/24 06:40:24 Done.
74 void SetActivePage(int page_index, bool animate); 74 void SetActivePage(AppListModel::State state, bool animate);
75 75
76 // The index of the currently active launcher page. 76 // The index of the currently active launcher page.
77 int GetActivePageIndex() const; 77 int GetActivePageIndex() const;
78 78
79 // The currently active state. 79 // The currently active state.
80 AppListModel::State GetActiveState() const; 80 AppListModel::State GetActiveState() const;
81 81
82 // True if |state| is the current active laucher page. 82 // True if |state| is the current active laucher page.
83 bool IsStateActive(AppListModel::State state) const; 83 bool IsStateActive(AppListModel::State state) const;
84 84
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 // The animator for transitions not found in |contents_animators_|. 247 // The animator for transitions not found in |contents_animators_|.
248 scoped_ptr<ContentsAnimator> default_animator_; 248 scoped_ptr<ContentsAnimator> default_animator_;
249 249
250 DISALLOW_COPY_AND_ASSIGN(ContentsView); 250 DISALLOW_COPY_AND_ASSIGN(ContentsView);
251 }; 251 };
252 252
253 } // namespace app_list 253 } // namespace app_list
254 254
255 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ 255 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698