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

Unified Diff: chrome/browser/ui/cocoa/applescript/scripting.sdef

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
Index: chrome/browser/ui/cocoa/applescript/scripting.sdef
diff --git a/chrome/browser/ui/cocoa/applescript/scripting.sdef b/chrome/browser/ui/cocoa/applescript/scripting.sdef
index 661890fba709dbb7ef3c86e95e5a31c72c599fdc..854330b9b72bf2b72f11e638ee299ab070e6a676 100644
--- a/chrome/browser/ui/cocoa/applescript/scripting.sdef
+++ b/chrome/browser/ui/cocoa/applescript/scripting.sdef
@@ -263,6 +263,17 @@
<property name="URL" code="URL " description="The URL of the bookmark." type="text"/>
<property name="index" code="indx" description="Returns the index with respect to its parent bookmark folder" type="number" access="r"/>
</class>
+ <class-extension extends="window">
+ <property name="presenting" code="pres" description="Whether the window is in presentation mode." type="boolean" access="r">
+ <cocoa key="presenting"/>
+ </property>
+ <responds-to command="enter presentation mode">
+ <cocoa method="handlesEnterPresentationMode:"/>
+ </responds-to>
+ <responds-to command="exit presentation mode">
+ <cocoa method="handlesExitPresentationMode:"/>
+ </responds-to>
+ </class-extension>
<command name="reload" code="CrSuRlod" description="Reload a tab.">
<direct-parameter description="The tab to execute the command in." type="specifier"/>
</command>
@@ -303,5 +314,11 @@
</parameter>
<result type="any"/>
</command>
+ <command name="enter presentation mode" code="CrSuEnPM" description="Enter presentation mode in window.">
+ <direct-parameter description="The window to enter presentation mode." type="specifier"/>
+ </command>
+ <command name="exit presentation mode" code="CrSuExPM" description="Exit presentation mode in window.">
+ <direct-parameter description="The window to exit presentation mode." type="specifier"/>
+ </command>
</suite>
</dictionary>

Powered by Google App Engine
This is Rietveld 408576698