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

Unified Diff: chrome/browser/ui/cocoa/applescript/window_applescript.mm

Issue 12018007: Refactor BrowserWindow fullscreen and presentation on Mac to be consistent with other platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge TOT Created 7 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
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/window_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript.mm b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
index abb38d4037db796caa42b1f4e32e0d52e369f29f..1f3b7bbd8f128cf10917655e4ca088574e17a8b3 100644
--- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
@@ -249,20 +249,20 @@
- (NSNumber*)presenting {
BOOL presentingValue = NO;
if (browser_->window())
- presentingValue = browser_->window()->InPresentationMode();
+ presentingValue = browser_->window()->IsFullscreenWithoutChrome();
return [NSNumber numberWithBool:presentingValue];
}
- (void)handlesEnterPresentationMode:(NSScriptCommand*)command {
if (browser_->window()) {
- browser_->window()->EnterPresentationMode(
+ browser_->window()->EnterFullscreen(
GURL(), FEB_TYPE_FULLSCREEN_EXIT_INSTRUCTION);
}
}
- (void)handlesExitPresentationMode:(NSScriptCommand*)command {
if (browser_->window())
- browser_->window()->ExitPresentationMode();
+ browser_->window()->ExitFullscreen();
}
@end
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698