| 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/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/shelf/shelf_layout_manager.h" | 8 #include "ash/shelf/shelf_layout_manager.h" |
| 9 #include "ash/shelf/shelf_types.h" | 9 #include "ash/shelf/shelf_types.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 12 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
| 13 #include "chrome/browser/ui/browser_commands.h" | 13 #include "chrome/browser/ui/browser_commands.h" |
| 14 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" | 14 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| 15 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" | 15 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" |
| 16 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 17 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" | 17 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" |
| 18 #include "chrome/browser/ui/views/frame/top_container_view.h" | 18 #include "chrome/browser/ui/views/frame/top_container_view.h" |
| 19 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 19 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 20 #include "chrome/browser/ui/views/toolbar_view.h" | 20 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| 21 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
| 22 #include "ui/views/controls/webview/webview.h" | 22 #include "ui/views/controls/webview/webview.h" |
| 23 | 23 |
| 24 // For now, immersive fullscreen is Chrome OS only. | 24 // For now, immersive fullscreen is Chrome OS only. |
| 25 #if defined(OS_CHROMEOS) | 25 #if defined(OS_CHROMEOS) |
| 26 | 26 |
| 27 class ImmersiveModeControllerAshTest : public TestWithBrowserView { | 27 class ImmersiveModeControllerAshTest : public TestWithBrowserView { |
| 28 public: | 28 public: |
| 29 ImmersiveModeControllerAshTest() {} | 29 ImmersiveModeControllerAshTest() {} |
| 30 virtual ~ImmersiveModeControllerAshTest() {} | 30 virtual ~ImmersiveModeControllerAshTest() {} |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // simultaneously correctly updates the shelf visibility and whether the tab | 245 // simultaneously correctly updates the shelf visibility and whether the tab |
| 246 // indicators should be hidden. | 246 // indicators should be hidden. |
| 247 SetTabFullscreen(true); | 247 SetTabFullscreen(true); |
| 248 ToggleFullscreen(); | 248 ToggleFullscreen(); |
| 249 ASSERT_FALSE(controller()->IsEnabled()); | 249 ASSERT_FALSE(controller()->IsEnabled()); |
| 250 EXPECT_EQ(ash::SHELF_VISIBLE, shelf->visibility_state()); | 250 EXPECT_EQ(ash::SHELF_VISIBLE, shelf->visibility_state()); |
| 251 EXPECT_TRUE(controller()->ShouldHideTabIndicators()); | 251 EXPECT_TRUE(controller()->ShouldHideTabIndicators()); |
| 252 } | 252 } |
| 253 | 253 |
| 254 #endif // defined(OS_CHROMEOS) | 254 #endif // defined(OS_CHROMEOS) |
| OLD | NEW |