| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/apps/app_browsertest_util.h" | 5 #include "chrome/browser/apps/app_browsertest_util.h" |
| 6 #include "extensions/browser/app_window/native_app_window.h" | 6 #include "extensions/browser/app_window/native_app_window.h" |
| 7 | 7 |
| 8 using extensions::PlatformAppBrowserTest; | 8 namespace extensions { |
| 9 using extensions::Extension; | |
| 10 | |
| 11 namespace apps { | |
| 12 | 9 |
| 13 namespace { | 10 namespace { |
| 14 | 11 |
| 15 class AppWindowTest : public PlatformAppBrowserTest { | 12 class AppWindowTest : public PlatformAppBrowserTest { |
| 16 protected: | 13 protected: |
| 17 void CheckAlwaysOnTopToFullscreen(AppWindow* window) { | 14 void CheckAlwaysOnTopToFullscreen(AppWindow* window) { |
| 18 ASSERT_TRUE(window->GetBaseWindow()->IsAlwaysOnTop()); | 15 ASSERT_TRUE(window->GetBaseWindow()->IsAlwaysOnTop()); |
| 19 | 16 |
| 20 // The always-on-top property should be temporarily disabled when the window | 17 // The always-on-top property should be temporarily disabled when the window |
| 21 // enters fullscreen. | 18 // enters fullscreen. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 window->SetAlwaysOnTop(false); | 177 window->SetAlwaysOnTop(false); |
| 181 EXPECT_FALSE(window->GetBaseWindow()->IsAlwaysOnTop()); | 178 EXPECT_FALSE(window->GetBaseWindow()->IsAlwaysOnTop()); |
| 182 | 179 |
| 183 // Ensure that always-on-top remains disabled. | 180 // Ensure that always-on-top remains disabled. |
| 184 window->Restore(); | 181 window->Restore(); |
| 185 EXPECT_FALSE(window->GetBaseWindow()->IsAlwaysOnTop()); | 182 EXPECT_FALSE(window->GetBaseWindow()->IsAlwaysOnTop()); |
| 186 | 183 |
| 187 CloseAppWindow(window); | 184 CloseAppWindow(window); |
| 188 } | 185 } |
| 189 | 186 |
| 190 } // namespace apps | 187 } // namespace extensions |
| OLD | NEW |