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

Side by Side Diff: ui/app_list/views/all_apps_tile_item_view.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 | « ui/app_list/folder_image.cc ('k') | ui/app_list/views/folder_header_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/views/all_apps_tile_item_view.h" 5 #include "ui/app_list/views/all_apps_tile_item_view.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "ui/app_list/app_list_constants.h" 8 #include "ui/app_list/app_list_constants.h"
9 #include "ui/app_list/resources/grit/app_list_resources.h" 9 #include "ui/app_list/resources/grit/app_list_resources.h"
10 #include "ui/app_list/views/contents_view.h" 10 #include "ui/app_list/views/contents_view.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/image/canvas_image_source.h" 14 #include "ui/gfx/image/canvas_image_source.h"
15 #include "ui/resources/grit/ui_resources.h"
16 #include "ui/strings/grit/ui_strings.h" 15 #include "ui/strings/grit/ui_strings.h"
17 16
18 namespace app_list { 17 namespace app_list {
19 18
20 namespace { 19 namespace {
21 20
22 class AllAppsImageSource : public gfx::CanvasImageSource { 21 class AllAppsImageSource : public gfx::CanvasImageSource {
23 public: 22 public:
24 AllAppsImageSource(const gfx::ImageSkia& icon, const gfx::Size& size) 23 AllAppsImageSource(const gfx::ImageSkia& icon, const gfx::Size& size)
25 : gfx::CanvasImageSource(size, false), icon_(icon) {} 24 : gfx::CanvasImageSource(size, false), icon_(icon) {}
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 60
62 void AllAppsTileItemView::ButtonPressed(views::Button* sender, 61 void AllAppsTileItemView::ButtonPressed(views::Button* sender,
63 const ui::Event& event) { 62 const ui::Event& event) {
64 UMA_HISTOGRAM_ENUMERATION(kPageOpenedHistogram, AppListModel::STATE_APPS, 63 UMA_HISTOGRAM_ENUMERATION(kPageOpenedHistogram, AppListModel::STATE_APPS,
65 AppListModel::STATE_LAST); 64 AppListModel::STATE_LAST);
66 65
67 contents_view_->SetActiveState(AppListModel::STATE_APPS); 66 contents_view_->SetActiveState(AppListModel::STATE_APPS);
68 } 67 }
69 68
70 } // namespace app_list 69 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/folder_image.cc ('k') | ui/app_list/views/folder_header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698