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

Side by Side Diff: ash/desktop_background/desktop_background_controller_unittest.cc

Issue 2032613002: Converts RootWindowLayoutManager to common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ash/DEPS ('k') | ash/desktop_background/desktop_background_widget_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/desktop_background/desktop_background_controller.h" 5 #include "ash/desktop_background/desktop_background_controller.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstdlib> 8 #include <cstdlib>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
11 #include "ash/desktop_background/desktop_background_view.h" 11 #include "ash/desktop_background/desktop_background_view.h"
12 #include "ash/desktop_background/desktop_background_widget_controller.h" 12 #include "ash/desktop_background/desktop_background_widget_controller.h"
13 #include "ash/root_window_controller.h" 13 #include "ash/root_window_controller.h"
14 #include "ash/shell.h" 14 #include "ash/shell.h"
15 #include "ash/shell_window_ids.h" 15 #include "ash/shell_window_ids.h"
16 #include "ash/test/ash_test_base.h" 16 #include "ash/test/ash_test_base.h"
17 #include "ash/test/test_user_wallpaper_delegate.h" 17 #include "ash/test/test_user_wallpaper_delegate.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/run_loop.h" 19 #include "base/run_loop.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "base/threading/sequenced_worker_pool.h" 21 #include "base/threading/sequenced_worker_pool.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "third_party/skia/include/core/SkBitmap.h" 23 #include "third_party/skia/include/core/SkBitmap.h"
24 #include "third_party/skia/include/core/SkColor.h" 24 #include "third_party/skia/include/core/SkColor.h"
25 #include "ui/aura/window_event_dispatcher.h" 25 #include "ui/aura/window_event_dispatcher.h"
26 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 26 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
27 #include "ui/compositor/test/layer_animator_test_controller.h" 27 #include "ui/compositor/test/layer_animator_test_controller.h"
28 #include "ui/gfx/canvas.h" 28 #include "ui/gfx/canvas.h"
29 #include "ui/views/widget/widget.h"
29 30
30 using aura::RootWindow; 31 using aura::RootWindow;
31 using aura::Window; 32 using aura::Window;
32 using wallpaper::WallpaperLayout; 33 using wallpaper::WallpaperLayout;
33 using wallpaper::WALLPAPER_LAYOUT_CENTER; 34 using wallpaper::WALLPAPER_LAYOUT_CENTER;
34 using wallpaper::WALLPAPER_LAYOUT_CENTER_CROPPED; 35 using wallpaper::WALLPAPER_LAYOUT_CENTER_CROPPED;
35 using wallpaper::WALLPAPER_LAYOUT_STRETCH; 36 using wallpaper::WALLPAPER_LAYOUT_STRETCH;
36 using wallpaper::WALLPAPER_LAYOUT_TILE; 37 using wallpaper::WALLPAPER_LAYOUT_TILE;
37 38
38 namespace ash { 39 namespace ash {
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 { 491 {
491 SCOPED_TRACE(base::StringPrintf("1200x600/u@1.5 low resolution")); 492 SCOPED_TRACE(base::StringPrintf("1200x600/u@1.5 low resolution"));
492 controller_->SetWallpaperImage(image_low_res, WALLPAPER_LAYOUT_CENTER); 493 controller_->SetWallpaperImage(image_low_res, WALLPAPER_LAYOUT_CENTER);
493 WallpaperFitToNativeResolution( 494 WallpaperFitToNativeResolution(
494 desktop_background_view(), low_dsf, low_resolution.width(), 495 desktop_background_view(), low_dsf, low_resolution.width(),
495 low_resolution.height(), kCustomWallpaperColor); 496 low_resolution.height(), kCustomWallpaperColor);
496 } 497 }
497 } 498 }
498 499
499 } // namespace ash 500 } // namespace ash
OLDNEW
« no previous file with comments | « ash/DEPS ('k') | ash/desktop_background/desktop_background_widget_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698