OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
6 #include "chrome/browser/views/dom_view.h" | 6 #include "chrome/browser/views/dom_view.h" |
7 #include "chrome/test/in_process_browser_test.h" | 7 #include "chrome/test/in_process_browser_test.h" |
8 #include "chrome/test/ui_test_utils.h" | 8 #include "chrome/test/ui_test_utils.h" |
9 #include "views/widget/root_view.h" | 9 #include "views/widget/root_view.h" |
10 #include "views/widget/widget.h" | 10 #include "views/widget/widget.h" |
11 | 11 |
12 using namespace views; | 12 using namespace views; |
13 | 13 |
14 class DOMViewTest : public InProcessBrowserTest { | 14 class DOMViewTest : public InProcessBrowserTest { |
15 public: | 15 public: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // Re-attach to another Widget. | 85 // Re-attach to another Widget. |
86 Widget* two = CreatePopupWindow(); | 86 Widget* two = CreatePopupWindow(); |
87 two->GetRootView()->AddChildView(dom_view); | 87 two->GetRootView()->AddChildView(dom_view); |
88 two->Show(); | 88 two->Show(); |
89 | 89 |
90 ui_test_utils::RunAllPendingInMessageLoop(); | 90 ui_test_utils::RunAllPendingInMessageLoop(); |
91 | 91 |
92 two->Hide(); | 92 two->Hide(); |
93 } | 93 } |
OLD | NEW |