| 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/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "chrome/browser/api/prefs/pref_member.h" | 9 #include "chrome/browser/api/prefs/pref_member.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/test/base/testing_pref_service.h" | 11 #include "chrome/test/base/testing_pref_service.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/base/event.h" | 13 #include "ui/base/events/event.h" |
| 14 | 14 |
| 15 #if defined(OS_CHROMEOS) | 15 #if defined(OS_CHROMEOS) |
| 16 #include <X11/keysym.h> | 16 #include <X11/keysym.h> |
| 17 #include <X11/Xlib.h> | 17 #include <X11/Xlib.h> |
| 18 | 18 |
| 19 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h" | 19 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h" |
| 20 #include "chrome/browser/chromeos/login/mock_user_manager.h" | 20 #include "chrome/browser/chromeos/login/mock_user_manager.h" |
| 21 #include "chrome/browser/chromeos/preferences.h" | 21 #include "chrome/browser/chromeos/preferences.h" |
| 22 #include "ui/base/x/x11_util.h" | 22 #include "ui/base/x/x11_util.h" |
| 23 | 23 |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1641 // flag in the event is True. | 1641 // flag in the event is True. |
| 1642 EXPECT_EQ(GetExpectedResultAsString(ui::VKEY_CONTROL, | 1642 EXPECT_EQ(GetExpectedResultAsString(ui::VKEY_CONTROL, |
| 1643 ui::EF_CONTROL_DOWN, | 1643 ui::EF_CONTROL_DOWN, |
| 1644 ui::ET_KEY_PRESSED, | 1644 ui::ET_KEY_PRESSED, |
| 1645 keycode_control_l_, | 1645 keycode_control_l_, |
| 1646 0U, | 1646 0U, |
| 1647 KeyPress), | 1647 KeyPress), |
| 1648 rewritten_event); | 1648 rewritten_event); |
| 1649 } | 1649 } |
| 1650 #endif // OS_CHROMEOS | 1650 #endif // OS_CHROMEOS |
| OLD | NEW |