| OLD | NEW |
| 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 "athena/screen/public/screen_manager.h" | 5 #include "athena/screen/public/screen_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "athena/common/container_priorities.h" | |
| 11 #include "athena/test/athena_test_base.h" | 10 #include "athena/test/athena_test_base.h" |
| 11 #include "athena/util/container_priorities.h" |
| 12 #include "ui/aura/test/test_window_delegate.h" | 12 #include "ui/aura/test/test_window_delegate.h" |
| 13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 14 #include "ui/events/test/event_generator.h" | 14 #include "ui/events/test/event_generator.h" |
| 15 #include "ui/wm/core/window_util.h" | 15 #include "ui/wm/core/window_util.h" |
| 16 | 16 |
| 17 typedef athena::test::AthenaTestBase ScreenManagerTest; | 17 typedef athena::test::AthenaTestBase ScreenManagerTest; |
| 18 | 18 |
| 19 namespace athena { | 19 namespace athena { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 EXPECT_EQ("0 0", grab_delegate.GetMouseButtonCountsAndReset()); | 230 EXPECT_EQ("0 0", grab_delegate.GetMouseButtonCountsAndReset()); |
| 231 | 231 |
| 232 // After release, further mouse events should not be sent to |normal_window| | 232 // After release, further mouse events should not be sent to |normal_window| |
| 233 // because grab_container grabs the input. | 233 // because grab_container grabs the input. |
| 234 event_generator.ClickLeftButton(); | 234 event_generator.ClickLeftButton(); |
| 235 EXPECT_EQ("0 0", normal_delegate.GetMouseButtonCountsAndReset()); | 235 EXPECT_EQ("0 0", normal_delegate.GetMouseButtonCountsAndReset()); |
| 236 EXPECT_EQ("0 0", grab_delegate.GetMouseButtonCountsAndReset()); | 236 EXPECT_EQ("0 0", grab_delegate.GetMouseButtonCountsAndReset()); |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace athena | 239 } // namespace athena |
| OLD | NEW |