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

Unified Diff: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm

Issue 836933005: Refactor fullscreen_controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 5 years, 11 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/cocoa/exclusive_access_bubble_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
index d6c0de1689d19206affeb70769be10d861a2380a..6274888c0e486c504dddeee3354a636635b442e1 100644
--- a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
+++ b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm
@@ -96,12 +96,12 @@ const float kHideDuration = 0.7;
[[self window] setIgnoresMouseEvents:YES];
DCHECK(exclusive_access_bubble::ShowButtonsForType(bubbleType_));
- browser_->fullscreen_controller()->OnAcceptFullscreenPermission();
+ browser_->exclusive_access_manager()->OnAcceptExclusiveAccessPermission();
}
- (void)deny:(id)sender {
DCHECK(exclusive_access_bubble::ShowButtonsForType(bubbleType_));
- browser_->fullscreen_controller()->OnDenyFullscreenPermission();
+ browser_->exclusive_access_manager()->OnDenyExclusiveAccessPermission();
}
- (void)showButtons:(BOOL)show {
@@ -151,8 +151,9 @@ const float kHideDuration = 0.7;
- (BOOL)textView:(NSTextView*)textView
clickedOnLink:(id)link
atIndex:(NSUInteger)charIndex {
- browser_->fullscreen_controller()
- ->ExitTabOrBrowserFullscreenToPreviousState();
+ browser_->exclusive_access_manager()
+ ->fullscreen_controller()
+ ->ExitExclusiveAccessToPreviousState();
return YES;
}

Powered by Google App Engine
This is Rietveld 408576698