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

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

Issue 8118030: Add Applescript commands to enter presentation mode (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: adapt to api change Created 9 years, 2 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/cocoa/applescript/window_applescript.h ('k') | no next file » | 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 623a5117ef83d7f016478a447876516ef8e1a63b..b17a8761d8f0c6b199865ef54633c25380f8be1d 100644
--- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
@@ -244,4 +244,23 @@
browser_->window()->Close();
}
+- (NSNumber*)presenting {
+ BOOL presentingValue = NO;
+ if (browser_->window())
+ presentingValue = browser_->window()->InPresentationMode();
+ return [NSNumber numberWithBool:presentingValue];
+}
+
+- (void)handlesEnterPresentationMode:(NSScriptCommand*)command {
+ if (browser_->window()) {
+ browser_->window()->EnterPresentationMode(
+ GURL(), FEB_TYPE_FULLSCREEN_EXIT_INSTRUCTION);
+ }
+}
+
+- (void)handlesExitPresentationMode:(NSScriptCommand*)command {
+ if (browser_->window())
+ browser_->window()->ExitPresentationMode();
+}
+
@end
« no previous file with comments | « chrome/browser/ui/cocoa/applescript/window_applescript.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698