OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/ash/event_rewriter.h" | 5 #include "chrome/browser/ui/ash/event_rewriter.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/prefs/public/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "chrome/test/base/testing_pref_service_syncable.h" | 13 #include "chrome/test/base/testing_pref_service_syncable.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/base/events/event.h" | 15 #include "ui/base/events/event.h" |
16 | 16 |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 #include <X11/keysym.h> | 18 #include <X11/keysym.h> |
19 #include <X11/XF86keysym.h> | 19 #include <X11/XF86keysym.h> |
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2365 // flag in the event is True. | 2365 // flag in the event is True. |
2366 EXPECT_EQ(GetExpectedResultAsString(ui::VKEY_CONTROL, | 2366 EXPECT_EQ(GetExpectedResultAsString(ui::VKEY_CONTROL, |
2367 ui::EF_CONTROL_DOWN, | 2367 ui::EF_CONTROL_DOWN, |
2368 ui::ET_KEY_PRESSED, | 2368 ui::ET_KEY_PRESSED, |
2369 keycode_control_l_, | 2369 keycode_control_l_, |
2370 0U, | 2370 0U, |
2371 KeyPress), | 2371 KeyPress), |
2372 rewritten_event); | 2372 rewritten_event); |
2373 } | 2373 } |
2374 #endif // OS_CHROMEOS | 2374 #endif // OS_CHROMEOS |
OLD | NEW |