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

Side by Side Diff: chrome/browser/ui/app_list/extension_app_item.cc

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/app_list/extension_app_item.h" 5 #include "chrome/browser/ui/app_list/extension_app_item.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_util.h" 9 #include "chrome/browser/extensions/extension_util.h"
10 #include "chrome/browser/extensions/launch_util.h" 10 #include "chrome/browser/extensions/launch_util.h"
(...skipping 11 matching lines...) Expand all
22 #include "extensions/browser/extension_system.h" 22 #include "extensions/browser/extension_system.h"
23 #include "extensions/common/extension.h" 23 #include "extensions/common/extension.h"
24 #include "extensions/common/extension_icon_set.h" 24 #include "extensions/common/extension_icon_set.h"
25 #include "extensions/common/manifest_handlers/icons_handler.h" 25 #include "extensions/common/manifest_handlers/icons_handler.h"
26 #include "extensions/common/manifest_url_handlers.h" 26 #include "extensions/common/manifest_url_handlers.h"
27 #include "grit/theme_resources.h" 27 #include "grit/theme_resources.h"
28 #include "sync/api/string_ordinal.h" 28 #include "sync/api/string_ordinal.h"
29 #include "ui/base/resource/resource_bundle.h" 29 #include "ui/base/resource/resource_bundle.h"
30 #include "ui/gfx/canvas.h" 30 #include "ui/gfx/canvas.h"
31 #include "ui/gfx/color_utils.h" 31 #include "ui/gfx/color_utils.h"
32 #include "ui/gfx/geometry/rect.h"
32 #include "ui/gfx/image/canvas_image_source.h" 33 #include "ui/gfx/image/canvas_image_source.h"
33 #include "ui/gfx/image/image_skia_operations.h" 34 #include "ui/gfx/image/image_skia_operations.h"
34 #include "ui/gfx/rect.h"
35 35
36 using extensions::Extension; 36 using extensions::Extension;
37 37
38 namespace { 38 namespace {
39 39
40 // Overlays a shortcut icon over the bottom left corner of a given image. 40 // Overlays a shortcut icon over the bottom left corner of a given image.
41 class ShortcutOverlayImageSource : public gfx::CanvasImageSource { 41 class ShortcutOverlayImageSource : public gfx::CanvasImageSource {
42 public: 42 public:
43 explicit ShortcutOverlayImageSource(const gfx::ImageSkia& icon) 43 explicit ShortcutOverlayImageSource(const gfx::ImageSkia& icon)
44 : gfx::CanvasImageSource(icon.size(), false), 44 : gfx::CanvasImageSource(icon.size(), false),
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 const syncer::StringOrdinal& launch = 356 const syncer::StringOrdinal& launch =
357 GetAppSorting(profile_)->GetAppLaunchOrdinal(extension_id_); 357 GetAppSorting(profile_)->GetAppLaunchOrdinal(extension_id_);
358 set_position(syncer::StringOrdinal( 358 set_position(syncer::StringOrdinal(
359 page.ToInternalValue() + launch.ToInternalValue())); 359 page.ToInternalValue() + launch.ToInternalValue()));
360 } 360 }
361 361
362 AppListControllerDelegate* ExtensionAppItem::GetController() { 362 AppListControllerDelegate* ExtensionAppItem::GetController() {
363 return AppListService::Get(chrome::GetActiveDesktop())-> 363 return AppListService::Get(chrome::GetActiveDesktop())->
364 GetControllerDelegate(); 364 GetControllerDelegate();
365 } 365 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac_unittest.mm ('k') | chrome/browser/ui/apps/chrome_app_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698