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

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

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/autoclick/autoclick_controller.cc ('k') | ash/cancel_mode.cc » ('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/autoclick/autoclick_controller.h" 5 #include "ash/autoclick/autoclick_controller.h"
6 #include "ash/shell.h" 6 #include "ash/shell.h"
7 #include "ash/test/ash_test_base.h" 7 #include "ash/test/ash_test_base.h"
8 #include "ui/aura/root_window.h"
9 #include "ui/aura/test/event_generator.h" 8 #include "ui/aura/test/event_generator.h"
10 #include "ui/aura/test/test_window_delegate.h" 9 #include "ui/aura/test/test_window_delegate.h"
11 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/aura/window_event_dispatcher.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/keycodes/keyboard_codes.h" 15 #include "ui/events/keycodes/keyboard_codes.h"
16 16
17 namespace ash { 17 namespace ash {
18 18
19 class MouseEventCapturer : public ui::EventHandler { 19 class MouseEventCapturer : public ui::EventHandler {
20 public: 20 public:
21 MouseEventCapturer() { Reset(); } 21 MouseEventCapturer() { Reset(); }
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 aura::test::EventCountDelegate delegate; 301 aura::test::EventCountDelegate delegate;
302 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate( 302 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithDelegate(
303 &delegate, 123, gfx::Rect(50, 50, 100, 100))); 303 &delegate, 123, gfx::Rect(50, 50, 100, 100)));
304 window->Show(); 304 window->Show();
305 events = WaitForMouseEvents(); 305 events = WaitForMouseEvents();
306 EXPECT_EQ(0u, events.size()); 306 EXPECT_EQ(0u, events.size());
307 EXPECT_EQ("1 1 0", delegate.GetMouseMotionCountsAndReset()); 307 EXPECT_EQ("1 1 0", delegate.GetMouseMotionCountsAndReset());
308 } 308 }
309 309
310 } // namespace ash 310 } // namespace ash
OLDNEW
« no previous file with comments | « ash/autoclick/autoclick_controller.cc ('k') | ash/cancel_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698