| 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 "base/memory/scoped_ptr.h" |
| 5 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
| 7 | 8 |
| 8 #if defined(USE_X11) | 9 #if defined(USE_X11) |
| 9 #include <X11/Xlib.h> | 10 #include <X11/Xlib.h> |
| 10 #include "ui/base/x/x11_util.h" | 11 #include "ui/base/x/x11_util.h" |
| 11 #endif | 12 #endif |
| 12 | 13 |
| 13 namespace ui { | 14 namespace ui { |
| 14 | 15 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 } | 285 } |
| 285 { | 286 { |
| 286 KeyEvent keyev(ET_KEY_RELEASED, VKEY_MENU, EF_ALT_DOWN, false); | 287 KeyEvent keyev(ET_KEY_RELEASED, VKEY_MENU, EF_ALT_DOWN, false); |
| 287 EXPECT_EQ(EF_ALT_DOWN, keyev.flags()); | 288 EXPECT_EQ(EF_ALT_DOWN, keyev.flags()); |
| 288 keyev.NormalizeFlags(); | 289 keyev.NormalizeFlags(); |
| 289 EXPECT_EQ(EF_NONE, keyev.flags()); | 290 EXPECT_EQ(EF_NONE, keyev.flags()); |
| 290 } | 291 } |
| 291 } | 292 } |
| 292 | 293 |
| 293 } // namespace ui | 294 } // namespace ui |
| OLD | NEW |