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

Side by Side Diff: ash/display/root_window_transformers_unittest.cc

Issue 802473003: Fix references to ui/gfx headers in a*/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/display/root_window_transformers.cc ('k') | ash/drag_drop/drag_drop_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "ash/display/root_window_transformers.h" 5 #include "ash/display/root_window_transformers.h"
6 6
7 #include "ash/display/display_info.h" 7 #include "ash/display/display_info.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/host/root_window_transformer.h" 9 #include "ash/host/root_window_transformer.h"
10 #include "ash/magnifier/magnification_controller.h" 10 #include "ash/magnifier/magnification_controller.h"
11 #include "ash/screen_util.h" 11 #include "ash/screen_util.h"
12 #include "ash/shelf/shelf.h" 12 #include "ash/shelf/shelf.h"
13 #include "ash/shelf/shelf_widget.h" 13 #include "ash/shelf/shelf_widget.h"
14 #include "ash/shell.h" 14 #include "ash/shell.h"
15 #include "ash/test/ash_test_base.h" 15 #include "ash/test/ash_test_base.h"
16 #include "ash/test/cursor_manager_test_api.h" 16 #include "ash/test/cursor_manager_test_api.h"
17 #include "ash/test/display_manager_test_api.h" 17 #include "ash/test/display_manager_test_api.h"
18 #include "ash/test/mirror_window_test_api.h" 18 #include "ash/test/mirror_window_test_api.h"
19 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
20 #include "ui/aura/env.h" 20 #include "ui/aura/env.h"
21 #include "ui/aura/window_event_dispatcher.h" 21 #include "ui/aura/window_event_dispatcher.h"
22 #include "ui/aura/window_tracker.h" 22 #include "ui/aura/window_tracker.h"
23 #include "ui/events/event_handler.h" 23 #include "ui/events/event_handler.h"
24 #include "ui/events/test/event_generator.h" 24 #include "ui/events/test/event_generator.h"
25 #include "ui/gfx/display.h" 25 #include "ui/gfx/display.h"
26 #include "ui/gfx/rect_conversions.h" 26 #include "ui/gfx/geometry/rect_conversions.h"
27 #include "ui/gfx/screen.h" 27 #include "ui/gfx/screen.h"
28 #include "ui/views/widget/widget.h" 28 #include "ui/views/widget/widget.h"
29 29
30 namespace ash { 30 namespace ash {
31 namespace { 31 namespace {
32 32
33 const char kDesktopBackgroundView[] = "DesktopBackgroundView"; 33 const char kDesktopBackgroundView[] = "DesktopBackgroundView";
34 34
35 class TestEventHandler : public ui::EventHandler { 35 class TestEventHandler : public ui::EventHandler {
36 public: 36 public:
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // Y margin must be margin is (500 - 500/400 * 200) / 2 = 125. 404 // Y margin must be margin is (500 - 500/400 * 200) / 2 = 125.
405 EXPECT_EQ("0,125,0,125", transformer->GetHostInsets().ToString()); 405 EXPECT_EQ("0,125,0,125", transformer->GetHostInsets().ToString());
406 406
407 UpdateDisplay("200x400,500x500"); 407 UpdateDisplay("200x400,500x500");
408 // The aspect ratio is flipped, so X margin is now 125. 408 // The aspect ratio is flipped, so X margin is now 125.
409 transformer = test_api.CreateCurrentRootWindowTransformer(); 409 transformer = test_api.CreateCurrentRootWindowTransformer();
410 EXPECT_EQ("125,0,125,0", transformer->GetHostInsets().ToString()); 410 EXPECT_EQ("125,0,125,0", transformer->GetHostInsets().ToString());
411 } 411 }
412 412
413 } // namespace ash 413 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/root_window_transformers.cc ('k') | ash/drag_drop/drag_drop_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698