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

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: 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 | « no previous file | chrome/browser/ui/cocoa/applescript/scripting.sdef » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..65d3fa7d2999b5001f258bee89d70c4c85a89cf5 100644
--- a/chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript
+++ b/chrome/browser/ui/cocoa/applescript/examples/window_operations.applescript
@@ -1,4 +1,4 @@
--- Copyright (c) 2010 The Chromium Authors. All rights reserved.
+-- Copyright (c) 2011 The Chromium Authors. All rights reserved.
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
@@ -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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/applescript/scripting.sdef » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698