Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/desktop_aura/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "ui/aura/client/cursor_client.h" 7 #include "ui/aura/client/cursor_client.h"
8 #include "ui/aura/root_window.h"
9 #include "ui/aura/test/test_window_delegate.h" 8 #include "ui/aura/test/test_window_delegate.h"
10 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/aura/window_event_dispatcher.h"
11 #include "ui/views/test/views_test_base.h" 11 #include "ui/views/test/views_test_base.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 typedef ViewsTestBase DesktopNativeWidgetAuraTest; 16 typedef ViewsTestBase DesktopNativeWidgetAuraTest;
17 17
18 // Verifies creating a Widget with a parent that is not in a RootWindow doesn't 18 // Verifies creating a Widget with a parent that is not in a RootWindow doesn't
19 // crash. 19 // crash.
20 TEST_F(DesktopNativeWidgetAuraTest, CreateWithParentNotInRootWindow) { 20 TEST_F(DesktopNativeWidgetAuraTest, CreateWithParentNotInRootWindow) {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Owned by |widget|. 180 // Owned by |widget|.
181 aura::Window* window = new aura::Window(&delegate); 181 aura::Window* window = new aura::Window(&delegate);
182 window->Show(); 182 window->Show();
183 widget.GetNativeWindow()->parent()->AddChild(window); 183 widget.GetNativeWindow()->parent()->AddChild(window);
184 184
185 widget.Show(); 185 widget.Show();
186 } 186 }
187 } 187 }
188 188
189 } // namespace views 189 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698