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

Unified Diff: chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript

Issue 8118030: Add Applescript commands to enter presentation mode (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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
Index: chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript
diff --git a/chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript b/chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript
index 90a028826f12d735e765dd79de63c20a64410fb0..2e86a3f8918dc6fd8e4a679caff4b00c48b8adb5 100644
--- a/chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript
+++ b/chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript
@@ -18,5 +18,12 @@ tell application "Chromium"
-- Open multiple tabs.
set active tab index of window 1 to 2 -- Selects the second tab.
+ -- Enter/exit presentation mode
+ if window 1 is not presenting
+ tell window 1 to enter presentation mode
+ end if
+ if window 1 is presenting
+ tell window 1 to exit presentation mode
+ end if
end tell

Powered by Google App Engine
This is Rietveld 408576698