| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "ui/base/events/event_utils.h" | 10 #include "ui/base/events/event_utils.h" |
| (...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 class DesktopAuraFullscreenChildWindowDestructionTest | 1341 class DesktopAuraFullscreenChildWindowDestructionTest |
| 1342 : public views::TestViewsDelegate, | 1342 : public views::TestViewsDelegate, |
| 1343 public aura::WindowObserver { | 1343 public aura::WindowObserver { |
| 1344 public: | 1344 public: |
| 1345 DesktopAuraFullscreenChildWindowDestructionTest() | 1345 DesktopAuraFullscreenChildWindowDestructionTest() |
| 1346 : full_screen_widget_(NULL), | 1346 : full_screen_widget_(NULL), |
| 1347 child_window_(NULL), | 1347 child_window_(NULL), |
| 1348 parent_destroyed_(false), | 1348 parent_destroyed_(false), |
| 1349 child_destroyed_(false) {} | 1349 child_destroyed_(false) {} |
| 1350 | 1350 |
| 1351 ~DesktopAuraFullscreenChildWindowDestructionTest() { | 1351 virtual ~DesktopAuraFullscreenChildWindowDestructionTest() { |
| 1352 EXPECT_TRUE(parent_destroyed_); | 1352 EXPECT_TRUE(parent_destroyed_); |
| 1353 EXPECT_TRUE(child_destroyed_); | 1353 EXPECT_TRUE(child_destroyed_); |
| 1354 full_screen_widget_ = NULL; | 1354 full_screen_widget_ = NULL; |
| 1355 child_window_ = NULL; | 1355 child_window_ = NULL; |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 // views::TestViewsDelegate overrides. | 1358 // views::TestViewsDelegate overrides. |
| 1359 virtual void OnBeforeWidgetInit( | 1359 virtual void OnBeforeWidgetInit( |
| 1360 Widget::InitParams* params, | 1360 Widget::InitParams* params, |
| 1361 internal::NativeWidgetDelegate* delegate) OVERRIDE { | 1361 internal::NativeWidgetDelegate* delegate) OVERRIDE { |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1780 gfx::Point click_location(45, 15); | 1780 gfx::Point click_location(45, 15); |
| 1781 ui::MouseEvent press(ui::ET_MOUSE_PRESSED, click_location, click_location, | 1781 ui::MouseEvent press(ui::ET_MOUSE_PRESSED, click_location, click_location, |
| 1782 ui::EF_LEFT_MOUSE_BUTTON); | 1782 ui::EF_LEFT_MOUSE_BUTTON); |
| 1783 widget->OnMouseEvent(&press); | 1783 widget->OnMouseEvent(&press); |
| 1784 | 1784 |
| 1785 // Yay we did not crash! | 1785 // Yay we did not crash! |
| 1786 } | 1786 } |
| 1787 | 1787 |
| 1788 } // namespace | 1788 } // namespace |
| 1789 } // namespace views | 1789 } // namespace views |
| OLD | NEW |