diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-31 13:28:21 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-31 13:28:21 +0000 |
commit | 2eb6b89474c70bf69590fe07ab57bd95ca407b69 (patch) | |
tree | d6742fb05829eae0800976fef4d668977ef25f02 /ash/shell/app_list.cc | |
parent | 7afa6f3a5c5a13fda9e96b65dee2c08071af0c05 (diff) | |
download | chromium_src-2eb6b89474c70bf69590fe07ab57bd95ca407b69.zip chromium_src-2eb6b89474c70bf69590fe07ab57bd95ca407b69.tar.gz chromium_src-2eb6b89474c70bf69590fe07ab57bd95ca407b69.tar.bz2 |
Revert 139776 - Convert ash and chromeos parts of chrome/ to ImageSkia
Used same conversion script as 10437006
Changed by hand afterwards:
1 ash/shell/app_list.cc
2 ash/shell/content_client/shell_content_browser_client.h
3 ash/shell/window_watcher.cc
4 ash/system/tray/tray_views.h
5 ash/system/user/tray_user.cc
6 ash/test/test_launcher_delegate.cc
7 ash/wm/frame_painter.cc
8 ash/wm/image_grid_unittest.cc
9 chrome/browser/chrome_content_browser_client.cc
10 chrome/browser/chrome_content_browser_client.h
11 chrome/browser/chromeos/extensions/file_manager_util.cc
12 chrome/browser/chromeos/login/message_bubble.h
13 chrome/browser/chromeos/login/take_photo_view.cc
14 chrome/browser/chromeos/login/take_photo_view.h
15 chrome/browser/chromeos/login/user.h
16 chrome/browser/chromeos/login/user_image_screen.cc
17 chrome/browser/chromeos/login/user_image_screen_actor.h
18 chrome/browser/chromeos/login/webui_login_view.cc
19 chrome/browser/chromeos/options/take_photo_dialog.cc
20 chrome/browser/chromeos/status/data_promo_notification.cc
21 chrome/browser/chromeos/status/network_menu_icon.cc
22 chrome/browser/chromeos/status/network_menu_icon.h
23 chrome/browser/chromeos/status/network_menu_icon_unittest.cc
24 chrome/browser/debugger/devtools_window.cc
25 chrome/browser/favicon/favicon_handler.cc
26 chrome/browser/favicon/favicon_tab_helper.cc
27 chrome/browser/instant/instant_loader.cc
28 chrome/browser/ui/toolbar/back_forward_menu_model.cc
29 chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc
30 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc
31 chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h
32 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc
33 chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.h
34 chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h
35 chrome/browser/ui/webui/options2/chromeos/user_image_source2.cc
36 chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.cc
37 content/browser/mock_content_browser_client.cc
38 content/browser/mock_content_browser_client.h
39 content/public/browser/content_browser_client.h
40 content/public/browser/favicon_status.cc
41 content/public/browser/favicon_status.h
42 content/shell/shell_content_browser_client.cc
43 content/shell/shell_content_browser_client.h
44 ui/views/examples/content_client/examples_content_browser_client.cc
45 ui/views/examples/content_client/examples_content_browser_client.h
Fixed headers and spacing
1 ash/desktop_background/desktop_background_controller.cc
2 ash/desktop_background/desktop_background_controller.h
3 ash/desktop_background/desktop_background_resources.cc
4 ash/desktop_background/desktop_background_resources.h
5 ash/shell.h
6 ash/shell_factory.h
7 ash/system/tray/system_tray_delegate.h
8 ash/wm/frame_painter.h
9 chrome/browser/chromeos/login/default_user_images.h
10 chrome/browser/chromeos/status/network_menu.cc
Test=Compiles
Bug=124566
Review URL: https://chromiumcodereview.appspot.com/10443062
TBR=pkotwicz@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10456054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell/app_list.cc')
-rw-r--r-- | ash/shell/app_list.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc index 4e5cb06..b9d1174 100644 --- a/ash/shell/app_list.cc +++ b/ash/shell/app_list.cc @@ -5,9 +5,9 @@ #include <string> #include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/shell/example_factory.h" #include "ash/shell/toplevel_window.h" -#include "ash/shell_delegate.h" #include "base/basictypes.h" #include "base/i18n/case_conversion.h" #include "base/i18n/string_search.h" @@ -46,7 +46,7 @@ class WindowTypeLauncherItem : public app_list::AppListItemModel { SetTitle(GetTitle(type)); } - static gfx::ImageSkia GetIcon(Type type) { + static SkBitmap GetIcon(Type type) { static const SkColor kColors[] = { SK_ColorRED, SK_ColorGREEN, @@ -60,7 +60,7 @@ class WindowTypeLauncherItem : public app_list::AppListItemModel { icon.setConfig(SkBitmap::kARGB_8888_Config, kIconSize, kIconSize); icon.allocPixels(); icon.eraseColor(kColors[static_cast<int>(type) % arraysize(kColors)]); - return gfx::ImageSkia(icon); + return icon; } // The text below is not localized as this is an example code. @@ -199,7 +199,7 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { } } - gfx::ImageSkia CreateSearchBoxIcon() { + SkBitmap CreateSearchBoxIcon() { const string16 icon_text = ASCIIToUTF16("ash"); const gfx::Size icon_size(32, 32); @@ -212,7 +212,7 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { gfx::Canvas::TEXT_VALIGN_MIDDLE | gfx::Canvas::NO_SUBPIXEL_RENDERING); - return gfx::ImageSkia(canvas.ExtractBitmap()); + return canvas.ExtractBitmap(); } void DecorateSearchBox(app_list::SearchBoxModel* search_box_model) { |