OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ | 5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ |
6 #define COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ | 6 #define COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "components/wallpaper/wallpaper_layout.h" | 10 #include "components/wallpaper/wallpaper_layout.h" |
11 #include "components/wallpaper/wallpaper_resizer_observer.h" | 11 #include "components/wallpaper/wallpaper_resizer_observer.h" |
12 #include "skia/ext/image_operations.h" | 12 #include "skia/ext/image_operations.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/gfx/geometry/size.h" |
15 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
16 #include "ui/gfx/size.h" | |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class SequencedWorkerPool; | 19 class SequencedWorkerPool; |
20 } | 20 } |
21 | 21 |
22 namespace wallpaper { | 22 namespace wallpaper { |
23 | 23 |
24 class WallpaperResizerObserver; | 24 class WallpaperResizerObserver; |
25 | 25 |
26 // Stores the current wallpaper data and resize it to |target_size| if needed. | 26 // Stores the current wallpaper data and resize it to |target_size| if needed. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 base::SequencedWorkerPool* worker_pool_; | 73 base::SequencedWorkerPool* worker_pool_; |
74 | 74 |
75 base::WeakPtrFactory<WallpaperResizer> weak_ptr_factory_; | 75 base::WeakPtrFactory<WallpaperResizer> weak_ptr_factory_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(WallpaperResizer); | 77 DISALLOW_COPY_AND_ASSIGN(WallpaperResizer); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace wallpaper | 80 } // namespace wallpaper |
81 | 81 |
82 #endif // COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ | 82 #endif // COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ |
OLD | NEW |