| 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
| 5 #include "ui/base/hit_test.h" | 8 #include "ui/base/hit_test.h" |
| 6 #include "ui/events/event_utils.h" | 9 #include "ui/events/event_utils.h" |
| 7 #include "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
| 8 #include "ui/views/bubble/bubble_frame_view.h" | 11 #include "ui/views/bubble/bubble_frame_view.h" |
| 9 #include "ui/views/controls/button/label_button.h" | 12 #include "ui/views/controls/button/label_button.h" |
| 10 #include "ui/views/test/test_widget_observer.h" | 13 #include "ui/views/test/test_widget_observer.h" |
| 11 #include "ui/views/test/views_test_base.h" | 14 #include "ui/views/test/views_test_base.h" |
| 12 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 13 #include "ui/views/widget/widget_observer.h" | 16 #include "ui/views/widget/widget_observer.h" |
| 14 | 17 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 close_button, | 313 close_button, |
| 311 ui::MouseEvent(ui::ET_MOUSE_PRESSED, gfx::Point(0, 0), gfx::Point(0, 0), | 314 ui::MouseEvent(ui::ET_MOUSE_PRESSED, gfx::Point(0, 0), gfx::Point(0, 0), |
| 312 ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE)); | 315 ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE)); |
| 313 EXPECT_TRUE(bubble_widget->IsClosed()); | 316 EXPECT_TRUE(bubble_widget->IsClosed()); |
| 314 EXPECT_EQ(BubbleDelegateView::CloseReason::CLOSE_BUTTON, | 317 EXPECT_EQ(BubbleDelegateView::CloseReason::CLOSE_BUTTON, |
| 315 bubble_delegate->close_reason()); | 318 bubble_delegate->close_reason()); |
| 316 } | 319 } |
| 317 } | 320 } |
| 318 | 321 |
| 319 } // namespace views | 322 } // namespace views |
| OLD | NEW |