| 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/exclusive_access/fullscreen_controller_test.h" | 5 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void FullscreenControllerTest::Reload() { | 81 void FullscreenControllerTest::Reload() { |
| 82 content::TestNavigationObserver observer( | 82 content::TestNavigationObserver observer( |
| 83 browser()->tab_strip_model()->GetActiveWebContents(), 1); | 83 browser()->tab_strip_model()->GetActiveWebContents(), 1); |
| 84 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB); | 84 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB); |
| 85 observer.Wait(); | 85 observer.Wait(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void FullscreenControllerTest::SetPrivilegedFullscreen(bool is_privileged) { | 88 void FullscreenControllerTest::SetPrivilegedFullscreen(bool is_privileged) { |
| 89 GetFullscreenController()->SetPrivilegedFullscreenForTesting(is_privileged); | 89 GetFullscreenController()->SetPrivilegedFullscreenForTesting(is_privileged); |
| 90 } | 90 } |
| 91 |
| 92 void FullscreenControllerTest::EnterActiveTabFullscreen() { |
| 93 WebContents* tab = browser()->tab_strip_model()->GetActiveWebContents(); |
| 94 FullscreenNotificationObserver fullscreen_observer; |
| 95 browser()->EnterFullscreenModeForTab(tab, GURL()); |
| 96 fullscreen_observer.Wait(); |
| 97 } |
| OLD | NEW |