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

Side by Side Diff: ash/autoclick/autoclick_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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
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/autoclick/autoclick_controller.h" 5 #include "ash/autoclick/autoclick_controller.h"
6 #include "ash/display/display_manager.h"
7 #include "ash/shell.h" 6 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
9 #include "ui/aura/test/test_window_delegate.h" 8 #include "ui/aura/test/test_window_delegate.h"
10 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
11 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
11 #include "ui/display/manager/display_manager.h"
12 #include "ui/events/event.h" 12 #include "ui/events/event.h"
13 #include "ui/events/event_constants.h" 13 #include "ui/events/event_constants.h"
14 #include "ui/events/event_handler.h" 14 #include "ui/events/event_handler.h"
15 #include "ui/events/event_utils.h" 15 #include "ui/events/event_utils.h"
16 #include "ui/events/keycodes/keyboard_codes.h" 16 #include "ui/events/keycodes/keyboard_codes.h"
17 #include "ui/events/test/event_generator.h" 17 #include "ui/events/test/event_generator.h"
18 18
19 namespace ash { 19 namespace ash {
20 20
21 class MouseEventCapturer : public ui::EventHandler { 21 class MouseEventCapturer : public ui::EventHandler {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 aura::test::EventCountDelegate delegate; 283 aura::test::EventCountDelegate delegate;
284 std::unique_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate( 284 std::unique_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate(
285 &delegate, 123, gfx::Rect(50, 50, 100, 100))); 285 &delegate, 123, gfx::Rect(50, 50, 100, 100)));
286 window->Show(); 286 window->Show();
287 events = WaitForMouseEvents(); 287 events = WaitForMouseEvents();
288 EXPECT_EQ(0u, events.size()); 288 EXPECT_EQ(0u, events.size());
289 EXPECT_EQ("1 1 0", delegate.GetMouseMotionCountsAndReset()); 289 EXPECT_EQ("1 1 0", delegate.GetMouseMotionCountsAndReset());
290 } 290 }
291 291
292 } // namespace ash 292 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/content/display/screen_orientation_controller_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698