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 "ash/scoped_target_root_window.h" | 5 #include "ash/scoped_target_root_window.h" |
6 #include "ash/screen_util.h" | 6 #include "ash/screen_util.h" |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/test/test_shell_delegate.h" | 9 #include "ash/test/test_shell_delegate.h" |
10 #include "ash/wm/window_positioner.h" | 10 #include "ash/wm/window_positioner.h" |
11 #include "ash/wm/window_resizer.h" | 11 #include "ash/wm/window_resizer.h" |
12 #include "ash/wm/window_state.h" | 12 #include "ash/wm/window_state.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "chrome/browser/ui/ash/ash_init.h" | 14 #include "chrome/browser/ui/ash/ash_util.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/window_sizer/window_sizer_common_unittest.h" | 16 #include "chrome/browser/ui/window_sizer/window_sizer_common_unittest.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
19 #include "content/public/test/render_view_test.h" | 19 #include "content/public/test/render_view_test.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "ui/aura/client/aura_constants.h" | 21 #include "ui/aura/client/aura_constants.h" |
22 #include "ui/aura/env.h" | 22 #include "ui/aura/env.h" |
23 #include "ui/aura/test/test_windows.h" | 23 #include "ui/aura/test/test_windows.h" |
24 #include "ui/aura/window_event_dispatcher.h" | 24 #include "ui/aura/window_event_dispatcher.h" |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 p1600x1200)); | 1004 p1600x1200)); |
1005 // A popup that is sized to occupy the whole work area has default state. | 1005 // A popup that is sized to occupy the whole work area has default state. |
1006 EXPECT_EQ(ui::SHOW_STATE_DEFAULT, | 1006 EXPECT_EQ(ui::SHOW_STATE_DEFAULT, |
1007 GetWindowShowState(ui::SHOW_STATE_DEFAULT, | 1007 GetWindowShowState(ui::SHOW_STATE_DEFAULT, |
1008 ui::SHOW_STATE_NORMAL, | 1008 ui::SHOW_STATE_NORMAL, |
1009 BOTH, | 1009 BOTH, |
1010 trusted_popup->browser(), | 1010 trusted_popup->browser(), |
1011 p1600x1200, | 1011 p1600x1200, |
1012 p1600x1200)); | 1012 p1600x1200)); |
1013 } | 1013 } |
OLD | NEW |