| 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/fullscreen_controller_test.h" | 5 #include "chrome/browser/ui/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_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 10 #include "chrome/browser/ui/fullscreen_controller.h" | 10 #include "chrome/browser/ui/fullscreen_controller.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return type != FEB_TYPE_NONE; | 96 return type != FEB_TYPE_NONE; |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool FullscreenControllerTest::IsFullscreenBubbleDisplayingButtons() { | 99 bool FullscreenControllerTest::IsFullscreenBubbleDisplayingButtons() { |
| 100 FullscreenExitBubbleType type = | 100 FullscreenExitBubbleType type = |
| 101 browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); | 101 browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); |
| 102 return fullscreen_bubble::ShowButtonsForType(type); | 102 return fullscreen_bubble::ShowButtonsForType(type); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void FullscreenControllerTest::AcceptCurrentFullscreenOrMouseLockRequest() { | 105 void FullscreenControllerTest::AcceptCurrentFullscreenOrMouseLockRequest() { |
| 106 WebContents* fullscreen_tab = browser()->GetSelectedWebContents(); | 106 WebContents* fullscreen_tab = browser()->GetActiveWebContents(); |
| 107 FullscreenExitBubbleType type = | 107 FullscreenExitBubbleType type = |
| 108 browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); | 108 browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); |
| 109 browser()->OnAcceptFullscreenPermission(fullscreen_tab->GetURL(), type); | 109 browser()->OnAcceptFullscreenPermission(fullscreen_tab->GetURL(), type); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void FullscreenControllerTest::DenyCurrentFullscreenOrMouseLockRequest() { | 112 void FullscreenControllerTest::DenyCurrentFullscreenOrMouseLockRequest() { |
| 113 FullscreenExitBubbleType type = | 113 FullscreenExitBubbleType type = |
| 114 browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); | 114 browser()->fullscreen_controller_->GetFullscreenExitBubbleType(); |
| 115 browser()->OnDenyFullscreenPermission(type); | 115 browser()->OnDenyFullscreenPermission(type); |
| 116 } | 116 } |
| OLD | NEW |