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

Side by Side Diff: ui/app_list/folder_image.cc

Issue 2921523002: Clean up unused grit header includes in ui/. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | ui/app_list/views/all_apps_tile_item_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 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/folder_image.h" 5 #include "ui/app_list/folder_image.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/app_list/app_list_constants.h" 10 #include "ui/app_list/app_list_constants.h"
11 #include "ui/app_list/app_list_item.h" 11 #include "ui/app_list/app_list_item.h"
12 #include "ui/app_list/app_list_item_list.h" 12 #include "ui/app_list/app_list_item_list.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 #include "ui/gfx/canvas.h" 14 #include "ui/gfx/canvas.h"
15 #include "ui/gfx/geometry/point.h" 15 #include "ui/gfx/geometry/point.h"
16 #include "ui/gfx/geometry/point_f.h" 16 #include "ui/gfx/geometry/point_f.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/geometry/size.h" 18 #include "ui/gfx/geometry/size.h"
19 #include "ui/gfx/image/canvas_image_source.h" 19 #include "ui/gfx/image/canvas_image_source.h"
20 #include "ui/gfx/image/image_skia.h" 20 #include "ui/gfx/image/image_skia.h"
21 #include "ui/gfx/image/image_skia_operations.h" 21 #include "ui/gfx/image/image_skia_operations.h"
22 #include "ui/strings/grit/ui_strings.h"
23 22
24 namespace app_list { 23 namespace app_list {
25 24
26 namespace { 25 namespace {
27 26
28 const int kItemIconDimension = 16; 27 const int kItemIconDimension = 16;
29 28
30 // Gets the size of a small app icon inside the folder icon. 29 // Gets the size of a small app icon inside the folder icon.
31 gfx::Size ItemIconSize() { 30 gfx::Size ItemIconSize() {
32 return gfx::Size(kItemIconDimension, kItemIconDimension); 31 return gfx::Size(kItemIconDimension, kItemIconDimension);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 220
222 const gfx::Size icon_size = gfx::Size(kGridIconDimension, kGridIconDimension); 221 const gfx::Size icon_size = gfx::Size(kGridIconDimension, kGridIconDimension);
223 icon_ = 222 icon_ =
224 gfx::ImageSkia(new FolderImageSource(top_icons, icon_size), icon_size); 223 gfx::ImageSkia(new FolderImageSource(top_icons, icon_size), icon_size);
225 224
226 for (auto& observer : observers_) 225 for (auto& observer : observers_)
227 observer.OnFolderImageUpdated(); 226 observer.OnFolderImageUpdated();
228 } 227 }
229 228
230 } // namespace app_list 229 } // namespace app_list
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/views/all_apps_tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698