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

Side by Side Diff: ash/sticky_keys/sticky_keys_unittest.cc

Issue 188223002: Clean up WindowEventDispatcher some more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/sticky_keys/sticky_keys_overlay_unittest.cc ('k') | ash/wm/overview/window_overview.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/sticky_keys/sticky_keys_controller.h" 5 #include "ash/sticky_keys/sticky_keys_controller.h"
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 #undef None 8 #undef None
9 #undef Bool 9 #undef Bool
10 #undef RootWindow 10 #undef RootWindow
11 11
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/test/ash_test_base.h" 13 #include "ash/test/ash_test_base.h"
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "ui/aura/window.h" 17 #include "ui/aura/window.h"
18 #include "ui/aura/window_event_dispatcher.h" 18 #include "ui/aura/window_event_dispatcher.h"
19 #include "ui/aura/window_tree_host_delegate.h"
20 #include "ui/events/event_handler.h" 19 #include "ui/events/event_handler.h"
21 #include "ui/events/test/events_test_utils_x11.h" 20 #include "ui/events/test/events_test_utils_x11.h"
22 #include "ui/events/x/device_data_manager.h" 21 #include "ui/events/x/device_data_manager.h"
23 22
24 namespace ash { 23 namespace ash {
25 24
26 namespace { 25 namespace {
27 26
28 // The device id of the test scroll device. 27 // The device id of the test scroll device.
29 const unsigned int kScrollDeviceId = 1; 28 const unsigned int kScrollDeviceId = 1;
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 static_cast<ui::MouseWheelEvent*>(events[0])->y_offset()); 909 static_cast<ui::MouseWheelEvent*>(events[0])->y_offset());
911 EXPECT_TRUE(events[0]->flags() & ui::EF_CONTROL_DOWN); 910 EXPECT_TRUE(events[0]->flags() & ui::EF_CONTROL_DOWN);
912 EXPECT_EQ(ui::ET_KEY_RELEASED, events[1]->type()); 911 EXPECT_EQ(ui::ET_KEY_RELEASED, events[1]->type());
913 EXPECT_EQ(ui::VKEY_CONTROL, 912 EXPECT_EQ(ui::VKEY_CONTROL,
914 static_cast<ui::KeyEvent*>(events[1])->key_code()); 913 static_cast<ui::KeyEvent*>(events[1])->key_code());
915 914
916 Shell::GetInstance()->RemovePreTargetHandler(&buffer); 915 Shell::GetInstance()->RemovePreTargetHandler(&buffer);
917 } 916 }
918 917
919 } // namespace ash 918 } // namespace ash
OLDNEW
« no previous file with comments | « ash/sticky_keys/sticky_keys_overlay_unittest.cc ('k') | ash/wm/overview/window_overview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698