| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/views/test/widget_test.h" | 9 #include "ui/views/test/widget_test.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| 11 #include "ui/views/window/dialog_delegate.h" | 11 #include "ui/views/window/dialog_delegate.h" |
| 12 | 12 |
| 13 #if defined(USE_AURA) | 13 #if defined(USE_AURA) |
| 14 #include "ui/aura/client/activation_client.h" | 14 #include "ui/aura/client/activation_client.h" |
| 15 #include "ui/aura/client/focus_client.h" | 15 #include "ui/aura/client/focus_client.h" |
| 16 #include "ui/aura/env.h" | 16 #include "ui/aura/env.h" |
| 17 #include "ui/aura/root_window.h" | |
| 18 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| 18 #include "ui/aura/window_event_dispatcher.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 #if defined(USE_AURA) && !defined(OS_CHROMEOS) | 21 #if defined(USE_AURA) && !defined(OS_CHROMEOS) |
| 22 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 22 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 #include "ui/views/win/hwnd_util.h" | 26 #include "ui/views/win/hwnd_util.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 ui::EventDispatchDetails details = widget1.GetNativeWindow()-> | 780 ui::EventDispatchDetails details = widget1.GetNativeWindow()-> |
| 781 GetDispatcher()->OnEventFromSource(&mouse_event); | 781 GetDispatcher()->OnEventFromSource(&mouse_event); |
| 782 ASSERT_FALSE(details.dispatcher_destroyed); | 782 ASSERT_FALSE(details.dispatcher_destroyed); |
| 783 EXPECT_TRUE(widget1.GetAndClearGotMouseEvent()); | 783 EXPECT_TRUE(widget1.GetAndClearGotMouseEvent()); |
| 784 EXPECT_FALSE(widget2.GetAndClearGotMouseEvent()); | 784 EXPECT_FALSE(widget2.GetAndClearGotMouseEvent()); |
| 785 } | 785 } |
| 786 #endif | 786 #endif |
| 787 | 787 |
| 788 } // namespace test | 788 } // namespace test |
| 789 } // namespace views | 789 } // namespace views |
| OLD | NEW |