OLD | NEW |
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 "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" | 5 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
9 #include "ash/shelf/shelf_layout_manager.h" | 9 #include "ash/shelf/shelf_layout_manager.h" |
10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/macros.h" |
14 #include "chrome/app/chrome_command_ids.h" | 15 #include "chrome/app/chrome_command_ids.h" |
15 #include "chrome/browser/ui/browser_commands.h" | 16 #include "chrome/browser/ui/browser_commands.h" |
16 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 17 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
17 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" | 18 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" |
18 #include "chrome/browser/ui/views/frame/browser_view.h" | 19 #include "chrome/browser/ui/views/frame/browser_view.h" |
19 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" | 20 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" |
20 #include "chrome/browser/ui/views/frame/top_container_view.h" | 21 #include "chrome/browser/ui/views/frame/top_container_view.h" |
21 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 22 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
22 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 23 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
23 #include "ui/aura/window.h" | 24 #include "ui/aura/window.h" |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 339 |
339 // Exit immersive fullscreen. The web contents should be back below the window | 340 // Exit immersive fullscreen. The web contents should be back below the window |
340 // header. | 341 // header. |
341 ToggleFullscreen(); | 342 ToggleFullscreen(); |
342 EXPECT_FALSE(browser_view()->GetWidget()->IsFullscreen()); | 343 EXPECT_FALSE(browser_view()->GetWidget()->IsFullscreen()); |
343 EXPECT_FALSE(controller()->IsEnabled()); | 344 EXPECT_FALSE(controller()->IsEnabled()); |
344 EXPECT_FALSE(tabstrip->visible()); | 345 EXPECT_FALSE(tabstrip->visible()); |
345 EXPECT_FALSE(toolbar->visible()); | 346 EXPECT_FALSE(toolbar->visible()); |
346 EXPECT_EQ(header_height, GetBoundsInWidget(contents_web_view).y()); | 347 EXPECT_EQ(header_height, GetBoundsInWidget(contents_web_view).y()); |
347 } | 348 } |
OLD | NEW |