| 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/aura/window.h" | 5 #include "ui/aura/window.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/aura/client/stacking_client.h" | 11 #include "ui/aura/client/stacking_client.h" |
| 12 #include "ui/aura/client/visibility_client.h" | 12 #include "ui/aura/client/visibility_client.h" |
| 13 #include "ui/aura/event.h" | 13 #include "ui/aura/event.h" |
| 14 #include "ui/aura/focus_manager.h" | 14 #include "ui/aura/focus_manager.h" |
| 15 #include "ui/aura/layout_manager.h" | 15 #include "ui/aura/layout_manager.h" |
| 16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
| 17 #include "ui/aura/root_window_observer.h" | 17 #include "ui/aura/root_window_observer.h" |
| 18 #include "ui/aura/test/aura_test_base.h" | 18 #include "ui/aura/test/aura_test_base.h" |
| 19 #include "ui/aura/test/event_generator.h" | 19 #include "ui/aura/test/event_generator.h" |
| 20 #include "ui/aura/test/test_window_delegate.h" | 20 #include "ui/aura/test/test_window_delegate.h" |
| 21 #include "ui/aura/test/test_windows.h" | 21 #include "ui/aura/test/test_windows.h" |
| 22 #include "ui/aura/window_delegate.h" | 22 #include "ui/aura/window_delegate.h" |
| 23 #include "ui/aura/window_observer.h" | 23 #include "ui/aura/window_observer.h" |
| 24 #include "ui/aura/window_property.h" | 24 #include "ui/aura/window_property.h" |
| 25 #include "ui/base/hit_test.h" | 25 #include "ui/base/hit_test.h" |
| 26 #include "ui/base/keycodes/keyboard_codes.h" | 26 #include "ui/base/keycodes/keyboard_codes.h" |
| 27 #include "ui/compositor/layer.h" |
| 28 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 27 #include "ui/gfx/canvas.h" | 29 #include "ui/gfx/canvas.h" |
| 28 #include "ui/gfx/compositor/layer.h" | |
| 29 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" | |
| 30 #include "ui/gfx/screen.h" | 30 #include "ui/gfx/screen.h" |
| 31 | 31 |
| 32 DECLARE_WINDOW_PROPERTY_TYPE(const char*) | 32 DECLARE_WINDOW_PROPERTY_TYPE(const char*) |
| 33 DECLARE_WINDOW_PROPERTY_TYPE(int) | 33 DECLARE_WINDOW_PROPERTY_TYPE(int) |
| 34 | 34 |
| 35 namespace aura { | 35 namespace aura { |
| 36 namespace test { | 36 namespace test { |
| 37 | 37 |
| 38 typedef AuraTestBase WindowTest; | 38 typedef AuraTestBase WindowTest; |
| 39 | 39 |
| (...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 w2->SetParent(w1.get()); | 1933 w2->SetParent(w1.get()); |
| 1934 | 1934 |
| 1935 w1.reset(); | 1935 w1.reset(); |
| 1936 | 1936 |
| 1937 // We should be able to deref w2 still, but its parent should now be NULL. | 1937 // We should be able to deref w2 still, but its parent should now be NULL. |
| 1938 EXPECT_EQ(NULL, w2->parent()); | 1938 EXPECT_EQ(NULL, w2->parent()); |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 } // namespace test | 1941 } // namespace test |
| 1942 } // namespace aura | 1942 } // namespace aura |
| OLD | NEW |