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

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

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
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 12 matching lines...) Expand all
23 #include "chrome/test/base/testing_pref_service_syncable.h" 23 #include "chrome/test/base/testing_pref_service_syncable.h"
24 #include "chromeos/chromeos_switches.h" 24 #include "chromeos/chromeos_switches.h"
25 #include "components/user_manager/fake_user_manager.h" 25 #include "components/user_manager/fake_user_manager.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 #include "ui/aura/window.h" 27 #include "ui/aura/window.h"
28 #include "ui/aura/window_tree_host.h" 28 #include "ui/aura/window_tree_host.h"
29 #include "ui/base/ime/chromeos/fake_ime_keyboard.h" 29 #include "ui/base/ime/chromeos/fake_ime_keyboard.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/event_utils.h" 32 #include "ui/events/event_utils.h"
33 #include "ui/events/keycodes/dom3/dom_code.h" 33 #include "ui/events/keycodes/dom/dom_code.h"
34 #include "ui/events/keycodes/dom3/dom_key.h" 34 #include "ui/events/keycodes/dom/dom_key.h"
35 #include "ui/events/keycodes/dom4/keycode_converter.h" 35 #include "ui/events/keycodes/dom/keycode_converter.h"
36 #include "ui/events/test/events_test_utils.h" 36 #include "ui/events/test/events_test_utils.h"
37 #include "ui/events/test/test_event_processor.h" 37 #include "ui/events/test/test_event_processor.h"
38 38
39 #if defined(USE_X11) 39 #if defined(USE_X11)
40 #include <X11/keysym.h> 40 #include <X11/keysym.h>
41 41
42 #include "ui/events/devices/x11/touch_factory_x11.h" 42 #include "ui/events/devices/x11/touch_factory_x11.h"
43 #include "ui/events/event_utils.h" 43 #include "ui/events/event_utils.h"
44 #include "ui/events/test/events_test_utils_x11.h" 44 #include "ui/events/test/events_test_utils_x11.h"
45 #include "ui/gfx/x/x11_types.h" 45 #include "ui/gfx/x/x11_types.h"
(...skipping 3625 matching lines...) Expand 10 before | Expand all | Expand 10 after
3671 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN)); 3671 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN));
3672 EXPECT_TRUE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN)); 3672 EXPECT_TRUE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN));
3673 3673
3674 // Turn off AltGr and Mod3. 3674 // Turn off AltGr and Mod3.
3675 sticky_keys_controller_->SetModifiersEnabled(false, false); 3675 sticky_keys_controller_->SetModifiersEnabled(false, false);
3676 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN)); 3676 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_ALTGR_DOWN));
3677 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN)); 3677 EXPECT_FALSE(overlay_->GetModifierVisible(ui::EF_MOD3_DOWN));
3678 } 3678 }
3679 3679
3680 } // namespace chromeos 3680 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter.cc ('k') | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698