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

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

Issue 289283015: Extract touchscreen device management into a generic manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ash/touch/touch_hud_debug.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_tree_host.h" 18 #include "ui/aura/window_tree_host.h"
19 #include "ui/events/event_source.h" 19 #include "ui/events/event_source.h"
20 #include "ui/events/test/events_test_utils_x11.h" 20 #include "ui/events/test/events_test_utils_x11.h"
21 #include "ui/events/x/device_data_manager.h"
22 21
23 namespace ash { 22 namespace ash {
24 23
25 namespace { 24 namespace {
26 25
27 // The device id of the test touchpad device. 26 // The device id of the test touchpad device.
28 const unsigned int kTouchPadDeviceId = 1; 27 const unsigned int kTouchPadDeviceId = 1;
29 28
30 } // namespace 29 } // namespace
31 30
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 gfx::Point(0, 0))); 702 gfx::Point(0, 0)));
704 released = false; 703 released = false;
705 mod_down_flags = 0; 704 mod_down_flags = 0;
706 sticky_key.HandleMouseEvent(*mev.get(), &mod_down_flags, &released); 705 sticky_key.HandleMouseEvent(*mev.get(), &mod_down_flags, &released);
707 EXPECT_TRUE(mod_down_flags & ui::EF_CONTROL_DOWN); 706 EXPECT_TRUE(mod_down_flags & ui::EF_CONTROL_DOWN);
708 EXPECT_TRUE(released); 707 EXPECT_TRUE(released);
709 EXPECT_EQ(STICKY_KEY_STATE_DISABLED, sticky_key.current_state()); 708 EXPECT_EQ(STICKY_KEY_STATE_DISABLED, sticky_key.current_state());
710 } 709 }
711 710
712 } // namespace ash 711 } // namespace ash
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ash/touch/touch_hud_debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698