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 "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" | 5 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" |
6 | 6 |
7 #include "ash/ash_constants.h" | 7 #include "ash/ash_constants.h" |
8 #include "ash/ash_switches.h" | 8 #include "ash/ash_switches.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/views/frame/browser_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_view.h" |
12 #include "chrome/browser/ui/views/immersive_mode_controller.h" | 12 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
13 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
14 #include "ui/base/hit_test.h" | 14 #include "ui/base/hit_test.h" |
15 #include "ui/views/controls/button/image_button.h" | 15 #include "ui/views/controls/button/image_button.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 | 17 |
18 using views::Widget; | 18 using views::Widget; |
19 | 19 |
20 typedef InProcessBrowserTest BrowserNonClientFrameViewAshTest; | 20 typedef InProcessBrowserTest BrowserNonClientFrameViewAshTest; |
21 | 21 |
22 IN_PROC_BROWSER_TEST_F(BrowserNonClientFrameViewAshTest, WindowHeader) { | 22 IN_PROC_BROWSER_TEST_F(BrowserNonClientFrameViewAshTest, WindowHeader) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 // Exiting fullscreen exits immersive mode. | 117 // Exiting fullscreen exits immersive mode. |
118 browser_view->ExitFullscreen(); | 118 browser_view->ExitFullscreen(); |
119 EXPECT_FALSE(browser_view->immersive_mode_controller()->enabled()); | 119 EXPECT_FALSE(browser_view->immersive_mode_controller()->enabled()); |
120 | 120 |
121 // Exiting immersive mode makes controls and frame visible again. | 121 // Exiting immersive mode makes controls and frame visible again. |
122 EXPECT_TRUE(frame_view->size_button_->visible()); | 122 EXPECT_TRUE(frame_view->size_button_->visible()); |
123 EXPECT_TRUE(frame_view->close_button_->visible()); | 123 EXPECT_TRUE(frame_view->close_button_->visible()); |
124 EXPECT_TRUE(frame_view->ShouldPaint()); | 124 EXPECT_TRUE(frame_view->ShouldPaint()); |
125 } | 125 } |
OLD | NEW |