Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: chrome/browser/ui/fullscreen_controller_test.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/fullscreen_controller_test.cc
===================================================================
--- chrome/browser/ui/fullscreen_controller_test.cc (revision 144967)
+++ chrome/browser/ui/fullscreen_controller_test.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/fullscreen_controller.h"
#include "chrome/common/chrome_switches.h"
@@ -54,7 +55,7 @@
void FullscreenControllerTest::RequestToLockMouse(
bool user_gesture,
bool last_unlocked_by_target) {
- WebContents* tab = browser()->GetActiveWebContents();
+ WebContents* tab = chrome::GetActiveWebContents(browser());
browser()->RequestToLockMouse(tab, user_gesture,
last_unlocked_by_target);
}
@@ -109,7 +110,7 @@
}
void FullscreenControllerTest::AcceptCurrentFullscreenOrMouseLockRequest() {
- WebContents* fullscreen_tab = browser()->GetActiveWebContents();
+ WebContents* fullscreen_tab = chrome::GetActiveWebContents(browser());
FullscreenExitBubbleType type =
browser()->fullscreen_controller_->GetFullscreenExitBubbleType();
browser()->OnAcceptFullscreenPermission(fullscreen_tab->GetURL(), type);
@@ -151,7 +152,7 @@
void FullscreenControllerTest::ToggleTabFullscreen_Internal(
bool enter_fullscreen, bool retry_until_success) {
- WebContents* tab = browser()->GetActiveWebContents();
+ WebContents* tab = chrome::GetActiveWebContents(browser());
if (IsFullscreenForBrowser()) {
// Changing tab fullscreen state will not actually change the window
// when browser fullscreen is in effect.

Powered by Google App Engine
This is Rietveld 408576698