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

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

Issue 889403005: Make start page fill app list bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_apps_grid_paddings
Patch Set: address_comment 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/contents_animator.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SearchBoxView* GetSearchBoxView() const; 107 SearchBoxView* GetSearchBoxView() const;
108 108
109 AppListMainView* app_list_main_view() const { return app_list_main_view_; } 109 AppListMainView* app_list_main_view() const { return app_list_main_view_; }
110 110
111 // Adds a blank launcher page. For use in tests only. 111 // Adds a blank launcher page. For use in tests only.
112 void AddBlankPageForTesting(); 112 void AddBlankPageForTesting();
113 113
114 // Returns the pagination model for the ContentsView. 114 // Returns the pagination model for the ContentsView.
115 const PaginationModel& pagination_model() { return pagination_model_; } 115 const PaginationModel& pagination_model() { return pagination_model_; }
116 116
117 // Gets the on-screen page bounds for a given launcher page with index
118 // |page_index|.
119 gfx::Rect GetOnscreenPageBounds(int page_index) const;
120
121 // Gets the the off-screen resting place for a given launcher page with index
122 // |page_index|.
123 gfx::Rect GetOffscreenPageBounds(int page_index) const;
124
117 // Returns search box bounds to use for content views that do not specify 125 // Returns search box bounds to use for content views that do not specify
118 // their own custom layout. 126 // their own custom layout.
119 gfx::Rect GetDefaultSearchBoxBounds() const; 127 gfx::Rect GetDefaultSearchBoxBounds() const;
120 128
121 // Returns search box bounds to use for a given state. 129 // Returns search box bounds to use for a given state.
122 gfx::Rect GetSearchBoxBoundsForState(AppListModel::State state) const; 130 gfx::Rect GetSearchBoxBoundsForState(AppListModel::State state) const;
123 131
124 // Returns search box bounds to use for a given page index. 132 // Returns search box bounds to use for a given page index.
125 gfx::Rect GetSearchBoxBoundsForPageIndex(int index) const; 133 gfx::Rect GetSearchBoxBoundsForPageIndex(int index) const;
126 134
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 249
242 // The animator for transitions not found in |contents_animators_|. 250 // The animator for transitions not found in |contents_animators_|.
243 scoped_ptr<ContentsAnimator> default_animator_; 251 scoped_ptr<ContentsAnimator> default_animator_;
244 252
245 DISALLOW_COPY_AND_ASSIGN(ContentsView); 253 DISALLOW_COPY_AND_ASSIGN(ContentsView);
246 }; 254 };
247 255
248 } // namespace app_list 256 } // namespace app_list
249 257
250 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ 258 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/contents_animator.cc ('k') | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698