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

Side by Side Diff: chrome/browser/ui/exclusive_access/fullscreen_controller_state_unittest.cc

Issue 1704793002: Remove kDisableDownloadNotification and stop compiling shelf code on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_tabstrip.h" 8 #include "chrome/browser/ui/browser_tabstrip.h"
9 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
10 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" 10 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 Profile* FullscreenControllerTestWindow::GetProfile() { 227 Profile* FullscreenControllerTestWindow::GetProfile() {
228 return browser_->profile(); 228 return browser_->profile();
229 } 229 }
230 230
231 content::WebContents* FullscreenControllerTestWindow::GetActiveWebContents() { 231 content::WebContents* FullscreenControllerTestWindow::GetActiveWebContents() {
232 return browser_->tab_strip_model()->GetActiveWebContents(); 232 return browser_->tab_strip_model()->GetActiveWebContents();
233 } 233 }
234 234
235 void FullscreenControllerTestWindow::UnhideDownloadShelf() { 235 void FullscreenControllerTestWindow::UnhideDownloadShelf() {
236 #if !defined(OS_CHROMEOS)
236 GetDownloadShelf()->Unhide(); 237 GetDownloadShelf()->Unhide();
238 #endif
237 } 239 }
238 240
239 void FullscreenControllerTestWindow::HideDownloadShelf() { 241 void FullscreenControllerTestWindow::HideDownloadShelf() {
242 #if !defined(OS_CHROMEOS)
240 GetDownloadShelf()->Hide(); 243 GetDownloadShelf()->Hide();
244 #endif
241 } 245 }
242 246
243 void FullscreenControllerTestWindow::UpdateExclusiveAccessExitBubbleContent( 247 void FullscreenControllerTestWindow::UpdateExclusiveAccessExitBubbleContent(
244 const GURL& url, 248 const GURL& url,
245 ExclusiveAccessBubbleType bubble_type) {} 249 ExclusiveAccessBubbleType bubble_type) {}
246 250
247 void FullscreenControllerTestWindow::OnExclusiveAccessUserInput() {} 251 void FullscreenControllerTestWindow::OnExclusiveAccessUserInput() {}
248 252
249 // FullscreenControllerStateUnitTest ------------------------------------------- 253 // FullscreenControllerStateUnitTest -------------------------------------------
250 254
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 EXPECT_FALSE(wc_delegate->IsFullscreenForTabOrPending(tab)); 889 EXPECT_FALSE(wc_delegate->IsFullscreenForTabOrPending(tab));
886 EXPECT_FALSE(second_wc_delegate->IsFullscreenForTabOrPending(tab)); 890 EXPECT_FALSE(second_wc_delegate->IsFullscreenForTabOrPending(tab));
887 EXPECT_FALSE(GetFullscreenController()->IsWindowFullscreenForTabOrPending()); 891 EXPECT_FALSE(GetFullscreenController()->IsWindowFullscreenForTabOrPending());
888 EXPECT_FALSE(second_browser->exclusive_access_manager() 892 EXPECT_FALSE(second_browser->exclusive_access_manager()
889 ->fullscreen_controller() 893 ->fullscreen_controller()
890 ->IsWindowFullscreenForTabOrPending()); 894 ->IsWindowFullscreenForTabOrPending());
891 895
892 // Required tear-down specific to this test. 896 // Required tear-down specific to this test.
893 second_browser->tab_strip_model()->CloseAllTabs(); 897 second_browser->tab_strip_model()->CloseAllTabs();
894 } 898 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698