OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |