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

Side by Side Diff: chrome/browser/chromeos/events/event_rewriter_unittest.cc

Issue 685793002: Move all event related devices from ui/events/ to ui/events/devices/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internal-touchscreens
Patch Set: fix ozone Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/events/event_rewriter.h" 5 #include "chrome/browser/chromeos/events/event_rewriter.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/sticky_keys/sticky_keys_controller.h" 10 #include "ash/sticky_keys/sticky_keys_controller.h"
(...skipping 17 matching lines...) Expand all
28 #include "ui/aura/window.h" 28 #include "ui/aura/window.h"
29 #include "ui/aura/window_tree_host.h" 29 #include "ui/aura/window_tree_host.h"
30 #include "ui/events/event.h" 30 #include "ui/events/event.h"
31 #include "ui/events/event_rewriter.h" 31 #include "ui/events/event_rewriter.h"
32 #include "ui/events/test/events_test_utils.h" 32 #include "ui/events/test/events_test_utils.h"
33 #include "ui/events/test/test_event_processor.h" 33 #include "ui/events/test/test_event_processor.h"
34 34
35 #if defined(USE_X11) 35 #if defined(USE_X11)
36 #include <X11/keysym.h> 36 #include <X11/keysym.h>
37 37
38 #include "ui/events/devices/x11/touch_factory_x11.h"
38 #include "ui/events/event_utils.h" 39 #include "ui/events/event_utils.h"
39 #include "ui/events/test/events_test_utils_x11.h" 40 #include "ui/events/test/events_test_utils_x11.h"
40 #include "ui/events/x/touch_factory_x11.h"
41 #include "ui/gfx/x/x11_types.h" 41 #include "ui/gfx/x/x11_types.h"
42 #endif 42 #endif
43 43
44 namespace { 44 namespace {
45 45
46 // The device id of the test touchpad device. 46 // The device id of the test touchpad device.
47 const unsigned int kTouchPadDeviceId = 1; 47 const unsigned int kTouchPadDeviceId = 1;
48 const int kKeyboardDeviceId = 2; 48 const int kKeyboardDeviceId = 2;
49 const int kMasterKeyboardDeviceId = 3; 49 const int kMasterKeyboardDeviceId = 3;
50 50
(...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN)); 2487 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN));
2488 EXPECT_TRUE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN)); 2488 EXPECT_TRUE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN));
2489 2489
2490 // Turn off AltGr and Mod3. 2490 // Turn off AltGr and Mod3.
2491 sticky_keys_controller_->SetModifiersEnabled(false, false); 2491 sticky_keys_controller_->SetModifiersEnabled(false, false);
2492 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN)); 2492 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN));
2493 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN)); 2493 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN));
2494 } 2494 }
2495 2495
2496 } // namespace chromeos 2496 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/device_uma.cc ('k') | chrome/browser/metrics/chromeos_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698