| 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 "ui/views/widget/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/aura/aura_switches.h" | 12 #include "ui/aura/aura_switches.h" |
| 13 #include "ui/aura/env.h" | 13 #include "ui/aura/env.h" |
| 14 #include "ui/aura/event.h" | 14 #include "ui/aura/event.h" |
| 15 #include "ui/aura/layout_manager.h" | 15 #include "ui/aura/layout_manager.h" |
| 16 #include "ui/aura/monitor_manager.h" | |
| 17 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
| 18 #include "ui/aura/single_monitor_manager.h" | |
| 19 #include "ui/aura/test/aura_test_helper.h" | 17 #include "ui/aura/test/aura_test_helper.h" |
| 20 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
| 21 #include "ui/gfx/screen.h" | 19 #include "ui/gfx/screen.h" |
| 22 #include "ui/views/layout/fill_layout.h" | 20 #include "ui/views/layout/fill_layout.h" |
| 23 #include "ui/views/widget/root_view.h" | 21 #include "ui/views/widget/root_view.h" |
| 24 #include "ui/views/widget/widget_delegate.h" | 22 #include "ui/views/widget/widget_delegate.h" |
| 25 | 23 |
| 26 namespace views { | 24 namespace views { |
| 27 namespace { | 25 namespace { |
| 28 | 26 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 parent->GetNativeWindow()->GetEventHandlerForPoint( | 350 parent->GetNativeWindow()->GetEventHandlerForPoint( |
| 353 gfx::Point(20, 20))); | 351 gfx::Point(20, 20))); |
| 354 | 352 |
| 355 // Work around for bug in NativeWidgetAura. | 353 // Work around for bug in NativeWidgetAura. |
| 356 // TODO: fix bug and remove this. | 354 // TODO: fix bug and remove this. |
| 357 parent->Close(); | 355 parent->Close(); |
| 358 } | 356 } |
| 359 | 357 |
| 360 } // namespace | 358 } // namespace |
| 361 } // namespace views | 359 } // namespace views |
| OLD | NEW |