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

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

Issue 2949413002: Show separator in SearchResultTileItemListView (Closed)
Patch Set: Remove SearchResultSeparator Created 3 years, 5 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/search_result_tile_item_list_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/search_result_tile_item_view.h" 5 #include "ui/app_list/views/search_result_tile_item_view.h"
6 6
7 #include "base/i18n/number_formatting.h" 7 #include "base/i18n/number_formatting.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_features.h" 9 #include "ui/app_list/app_list_features.h"
10 #include "ui/app_list/app_list_view_delegate.h" 10 #include "ui/app_list/app_list_view_delegate.h"
11 #include "ui/app_list/search_result.h" 11 #include "ui/app_list/search_result.h"
12 #include "ui/app_list/views/search_result_container_view.h" 12 #include "ui/app_list/views/search_result_container_view.h"
13 #include "ui/views/controls/image_view.h" 13 #include "ui/views/controls/image_view.h"
14 #include "ui/views/controls/label.h" 14 #include "ui/views/controls/label.h"
15 #include "ui/views/controls/menu/menu_runner.h" 15 #include "ui/views/controls/menu/menu_runner.h"
16 16
17 namespace app_list { 17 namespace app_list {
18 18
19 namespace { 19 namespace {
20 20
21 constexpr int kSearchTileWidth = 80; 21 constexpr int kSearchTileWidth = 80;
22 constexpr int kSearchTileHeight = 92;
23 constexpr int kSearchTileTopPadding = 4; 22 constexpr int kSearchTileTopPadding = 4;
24 constexpr int kSearchTitleSpacing = 6; 23 constexpr int kSearchTitleSpacing = 6;
25 24
26 constexpr SkColor kSearchTitleColor = 25 constexpr SkColor kSearchTitleColor =
27 SkColorSetARGBMacro(0xDF, 0x00, 0x00, 0x00); 26 SkColorSetARGBMacro(0xDF, 0x00, 0x00, 0x00);
28 constexpr SkColor kSearchAppRatingColor = 27 constexpr SkColor kSearchAppRatingColor =
29 SkColorSetARGBMacro(0x8F, 0x00, 0x00, 0x00); 28 SkColorSetARGBMacro(0x8F, 0x00, 0x00, 0x00);
30 constexpr SkColor kSearchAppPriceColor = 29 constexpr SkColor kSearchAppPriceColor =
31 SkColorSetARGBMacro(0xFF, 0x0F, 0x9D, 0x58); 30 SkColorSetARGBMacro(0xFF, 0x0F, 0x9D, 0x58);
32 31
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 if (item_->display_type() == SearchResult::DISPLAY_RECOMMENDATION) 260 if (item_->display_type() == SearchResult::DISPLAY_RECOMMENDATION)
262 return gfx::Size(kGridTileWidth, kGridTileHeight); 261 return gfx::Size(kGridTileWidth, kGridTileHeight);
263 if (item_->display_type() == SearchResult::DISPLAY_TILE) 262 if (item_->display_type() == SearchResult::DISPLAY_TILE)
264 return gfx::Size(kSearchTileWidth, kSearchTileHeight); 263 return gfx::Size(kSearchTileWidth, kSearchTileHeight);
265 } 264 }
266 265
267 return TileItemView::CalculatePreferredSize(); 266 return TileItemView::CalculatePreferredSize();
268 } 267 }
269 268
270 } // namespace app_list 269 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/search_result_tile_item_list_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698