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/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2453 { | 2453 { |
2454 ui::ScopedXI2Event xev; | 2454 ui::ScopedXI2Event xev; |
2455 xev.InitGenericButtonEvent(11, ui::ET_MOUSE_RELEASED, kLeftAndAltFlag); | 2455 xev.InitGenericButtonEvent(11, ui::ET_MOUSE_RELEASED, kLeftAndAltFlag); |
2456 ui::MouseEvent release(xev); | 2456 ui::MouseEvent release(xev); |
2457 RewriteLocatedEvent(&rewriter, &release); | 2457 RewriteLocatedEvent(&rewriter, &release); |
2458 EXPECT_TRUE(ui::EF_RIGHT_MOUSE_BUTTON & release.flags()); | 2458 EXPECT_TRUE(ui::EF_RIGHT_MOUSE_BUTTON & release.flags()); |
2459 } | 2459 } |
2460 } | 2460 } |
2461 | 2461 |
2462 #endif // OS_CHROMEOS | 2462 #endif // OS_CHROMEOS |
OLD | NEW |