| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "aura/desktop.h" | |
| 6 #include "aura/event.h" | |
| 7 #include "aura/focus_manager.h" | |
| 8 #include "aura/root_window.h" | |
| 9 #include "aura/window_delegate.h" | |
| 10 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 12 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "ui/aura/desktop.h" |
| 10 #include "ui/aura/event.h" |
| 11 #include "ui/aura/focus_manager.h" |
| 12 #include "ui/aura/root_window.h" |
| 13 #include "ui/aura/window_delegate.h" |
| 14 #include "ui/gfx/canvas_skia.h" | 14 #include "ui/gfx/canvas_skia.h" |
| 15 #include "ui/base/keycodes/keyboard_codes.h" | 15 #include "ui/base/keycodes/keyboard_codes.h" |
| 16 | 16 |
| 17 #if !defined(OS_WIN) | 17 #if !defined(OS_WIN) |
| 18 #include "aura/hit_test.h" | 18 #include "ui/aura/hit_test.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace aura { | 21 namespace aura { |
| 22 namespace internal { | 22 namespace internal { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // WindowDelegate implementation with all methods stubbed out. | 26 // WindowDelegate implementation with all methods stubbed out. |
| 27 class WindowDelegateImpl : public WindowDelegate { | 27 class WindowDelegateImpl : public WindowDelegate { |
| 28 public: | 28 public: |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // Both the parent and child should have been destroyed. | 272 // Both the parent and child should have been destroyed. |
| 273 EXPECT_EQ(1, parent_delegate.destroying_count()); | 273 EXPECT_EQ(1, parent_delegate.destroying_count()); |
| 274 EXPECT_EQ(1, parent_delegate.destroyed_count()); | 274 EXPECT_EQ(1, parent_delegate.destroyed_count()); |
| 275 EXPECT_EQ(1, child_delegate.destroying_count()); | 275 EXPECT_EQ(1, child_delegate.destroying_count()); |
| 276 EXPECT_EQ(1, child_delegate.destroyed_count()); | 276 EXPECT_EQ(1, child_delegate.destroyed_count()); |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace internal | 279 } // namespace internal |
| 280 } // namespace aura | 280 } // namespace aura |
| 281 | 281 |
| OLD | NEW |