blob: 9ef8aadf7745ed3fd461dd166af53ab994e9a33a [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_APPLE_EVENT_UTIL_H_
#define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_APPLE_EVENT_UTIL_H_
#import <Cocoa/Cocoa.h>
namespace base {
class Value;
}
class Profile;
namespace chrome {
namespace mac {
NSAppleEventDescriptor* ValueToAppleEventDescriptor(const base::Value* value);
// Returns true if Javascript in Apple Events is enabled for |profile|.
bool IsJavaScriptEnabledForProfile(Profile* profile);
} // namespace mac
} // namespace chrome
#endif // CHROME_BROWSER_UI_COCOA_APPLESCRIPT_APPLE_EVENT_UTIL_H_