OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/jumplist_win.h" | 5 #include "chrome/browser/jumplist_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shobjidl.h> | 8 #include <shobjidl.h> |
9 #include <propkey.h> | 9 #include <propkey.h> |
10 #include <propvarutil.h> | 10 #include <propvarutil.h> |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
39 #include "content/public/browser/notification_source.h" | 39 #include "content/public/browser/notification_source.h" |
40 #include "googleurl/src/gurl.h" | 40 #include "googleurl/src/gurl.h" |
41 #include "grit/chromium_strings.h" | 41 #include "grit/chromium_strings.h" |
42 #include "grit/generated_resources.h" | 42 #include "grit/generated_resources.h" |
43 #include "third_party/skia/include/core/SkBitmap.h" | 43 #include "third_party/skia/include/core/SkBitmap.h" |
44 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
45 #include "ui/gfx/codec/png_codec.h" | 45 #include "ui/gfx/codec/png_codec.h" |
46 #include "ui/gfx/icon_util.h" | 46 #include "ui/gfx/icon_util.h" |
47 | 47 |
| 48 using content::BrowserThread; |
48 | 49 |
49 namespace { | 50 namespace { |
50 | 51 |
51 // COM interfaces used in this file. | 52 // COM interfaces used in this file. |
52 // These interface declarations are copied from Windows SDK 7.0. | 53 // These interface declarations are copied from Windows SDK 7.0. |
53 // TODO(hbono): Bug 16903: delete them when we use Windows SDK 7.0. | 54 // TODO(hbono): Bug 16903: delete them when we use Windows SDK 7.0. |
54 #ifndef __IObjectArray_INTERFACE_DEFINED__ | 55 #ifndef __IObjectArray_INTERFACE_DEFINED__ |
55 #define __IObjectArray_INTERFACE_DEFINED__ | 56 #define __IObjectArray_INTERFACE_DEFINED__ |
56 | 57 |
57 MIDL_INTERFACE("92CA9DCD-5622-4bba-A805-5E9F541BD8C9") | 58 MIDL_INTERFACE("92CA9DCD-5622-4bba-A805-5E9F541BD8C9") |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 if ((*item)->data().get() && | 796 if ((*item)->data().get() && |
796 gfx::PNGCodec::Decode((*item)->data()->front(), | 797 gfx::PNGCodec::Decode((*item)->data()->front(), |
797 (*item)->data()->size(), | 798 (*item)->data()->size(), |
798 &icon_bitmap)) { | 799 &icon_bitmap)) { |
799 FilePath icon_path; | 800 FilePath icon_path; |
800 if (CreateIconFile(icon_bitmap, icon_dir_, &icon_path)) | 801 if (CreateIconFile(icon_bitmap, icon_dir_, &icon_path)) |
801 (*item)->SetIcon(icon_path.value(), 0, true); | 802 (*item)->SetIcon(icon_path.value(), 0, true); |
802 } | 803 } |
803 } | 804 } |
804 } | 805 } |
OLD | NEW |