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 /content | |
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 'content')
-rw-r--r-- | content/public/browser/content_browser_client.cc | 6 | ||||
-rw-r--r-- | content/public/browser/content_browser_client.h | 7 | ||||
-rw-r--r-- | content/public/browser/favicon_status.cc | 3 | ||||
-rw-r--r-- | content/shell/shell_content_browser_client.cc | 1 |
4 files changed, 7 insertions, 10 deletions
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc index 859204f..b5abf12c 100644 --- a/content/public/browser/content_browser_client.cc +++ b/content/public/browser/content_browser_client.cc @@ -5,7 +5,7 @@ #include "content/public/browser/content_browser_client.h" #include "base/file_path.h" -#include "ui/gfx/image/image_skia.h" +#include "third_party/skia/include/core/SkBitmap.h" namespace content { @@ -78,8 +78,8 @@ std::string ContentBrowserClient::GetAcceptLangs(BrowserContext* context) { return std::string(); } -gfx::ImageSkia* ContentBrowserClient::GetDefaultFavicon() { - static gfx::ImageSkia* empty = new gfx::ImageSkia(); +SkBitmap* ContentBrowserClient::GetDefaultFavicon() { + static SkBitmap* empty = new SkBitmap(); return empty; } diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h index 54569e7..fcf53c7 100644 --- a/content/public/browser/content_browser_client.h +++ b/content/public/browser/content_browser_client.h @@ -21,6 +21,7 @@ class FilePath; class GURL; class PluginProcessHost; class ResourceDispatcherHost; +class SkBitmap; namespace webkit_glue { struct WebPreferences; @@ -30,10 +31,6 @@ namespace crypto { class CryptoModuleBlockingPasswordDelegate; } -namespace gfx { -class ImageSkia; -} - namespace net { class CookieList; class CookieOptions; @@ -177,7 +174,7 @@ class CONTENT_EXPORT ContentBrowserClient { virtual std::string GetAcceptLangs(BrowserContext* context); // Returns the default favicon. The callee doesn't own the given bitmap. - virtual gfx::ImageSkia* GetDefaultFavicon(); + virtual SkBitmap* GetDefaultFavicon(); // Allow the embedder to control if an AppCache can be used for the given url. // This is called on the IO thread. diff --git a/content/public/browser/favicon_status.cc b/content/public/browser/favicon_status.cc index c9da916..2ab0e8a 100644 --- a/content/public/browser/favicon_status.cc +++ b/content/public/browser/favicon_status.cc @@ -5,12 +5,11 @@ #include "content/public/browser/favicon_status.h" #include "content/public/browser/content_browser_client.h" -#include "ui/gfx/image/image_skia.h" namespace content { FaviconStatus::FaviconStatus() : valid(false) { - bitmap = *GetContentClient()->browser()->GetDefaultFavicon()->bitmap(); + bitmap = *GetContentClient()->browser()->GetDefaultFavicon(); } } // namespace content diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc index dca4df0..530fa4a 100644 --- a/content/shell/shell_content_browser_client.cc +++ b/content/shell/shell_content_browser_client.cc @@ -14,6 +14,7 @@ #include "content/shell/shell_resource_dispatcher_host_delegate.h" #include "content/shell/shell_switches.h" #include "googleurl/src/gurl.h" +#include "third_party/skia/include/core/SkBitmap.h" namespace content { |