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

Side by Side Diff: ui/app_list/views/start_page_view.cc

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_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/app_list/views/start_page_view.h" 5 #include "ui/app_list/views/start_page_view.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/app_list/app_list_constants.h" 8 #include "ui/app_list/app_list_constants.h"
9 #include "ui/app_list/app_list_item.h" 9 #include "ui/app_list/app_list_item.h"
10 #include "ui/app_list/app_list_model.h" 10 #include "ui/app_list/app_list_model.h"
(...skipping 18 matching lines...) Expand all
29 29
30 namespace { 30 namespace {
31 31
32 // Layout constants. 32 // Layout constants.
33 const int kInstantContainerSpacing = 11; 33 const int kInstantContainerSpacing = 11;
34 const int kSearchBoxAndTilesSpacing = 40; 34 const int kSearchBoxAndTilesSpacing = 40;
35 const int kStartPageSearchBoxWidth = 480; 35 const int kStartPageSearchBoxWidth = 480;
36 36
37 // WebView constants. 37 // WebView constants.
38 const int kWebViewWidth = 700; 38 const int kWebViewWidth = 700;
39 const int kWebViewHeight = 189; 39 const int kWebViewHeight = 254;
40 40
41 // Tile container constants. 41 // Tile container constants.
42 const size_t kNumStartPageTiles = 4; 42 const size_t kNumStartPageTiles = 4;
43 const int kTileSpacing = 10; 43 const int kTileSpacing = 10;
44 44
45 // An invisible placeholder view which fills the space for the search box view 45 // An invisible placeholder view which fills the space for the search box view
46 // in a box layout. The search box view itself is a child of the AppListView 46 // in a box layout. The search box view itself is a child of the AppListView
47 // (because it is visible on many different pages). 47 // (because it is visible on many different pages).
48 class SearchBoxSpacerView : public views::View { 48 class SearchBoxSpacerView : public views::View {
49 public: 49 public:
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 326 }
327 327
328 custom_page_clickzone->Hide(); 328 custom_page_clickzone->Hide();
329 } 329 }
330 330
331 TileItemView* StartPageView::GetTileItemView(size_t index) { 331 TileItemView* StartPageView::GetTileItemView(size_t index) {
332 return tiles_container_->GetTileItemView(index); 332 return tiles_container_->GetTileItemView(index);
333 } 333 }
334 334
335 } // namespace app_list 335 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698