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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/error_applescript.h

Issue 2477633003: [Mac] Add a feature flag to disable Javascript execution in Applescript (Closed)
Patch Set: nit Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_ERROR_APPLESCRIPT_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_ERROR_APPLESCRIPT_H_
6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_ERROR_APPLESCRIPT_H_ 6 #define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_ERROR_APPLESCRIPT_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 namespace AppleScript { 10 namespace AppleScript {
(...skipping 13 matching lines...) Expand all
24 errInitiatePrinting, 24 errInitiatePrinting,
25 // Error when invalid tab save type is entered. 25 // Error when invalid tab save type is entered.
26 errInvalidSaveType, 26 errInvalidSaveType,
27 // Error when invalid browser mode is entered. 27 // Error when invalid browser mode is entered.
28 errInvalidMode, 28 errInvalidMode,
29 // Error when tab index is out of bounds. 29 // Error when tab index is out of bounds.
30 errInvalidTabIndex, 30 errInvalidTabIndex,
31 // Error when mode is set after browser window is created. 31 // Error when mode is set after browser window is created.
32 errSetMode, 32 errSetMode,
33 // Error when index of browser window is out of bounds. 33 // Error when index of browser window is out of bounds.
34 errWrongIndex 34 errWrongIndex,
35 // Error when JavaScript execution is disabled.
36 errJavaScriptUnsupported
35 }; 37 };
36 38
37 // This function sets an error message to the currently executing command. 39 // This function sets an error message to the currently executing command.
38 void SetError(ErrorCode errorCode); 40 void SetError(ErrorCode errorCode);
39 } 41 }
40 42
41 #endif // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_ERROR_APPLESCRIPT_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_ERROR_APPLESCRIPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698