|
@@ -12,22 +12,12 @@
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
-bool OpenExternal(const GURL& url, mate::Arguments* args) {
|
|
|
- bool without_activation = false;
|
|
|
- if (args->Length() == 2) {
|
|
|
- mate::Dictionary options;
|
|
|
- args->GetNext(&options);
|
|
|
- options.Get("withoutActivation", &without_activation);
|
|
|
- }
|
|
|
- return platform_util::OpenExternal(url, without_activation);
|
|
|
-}
|
|
|
-
|
|
|
void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
|
|
v8::Local<v8::Context> context, void* priv) {
|
|
|
mate::Dictionary dict(context->GetIsolate(), exports);
|
|
|
dict.SetMethod("showItemInFolder", &platform_util::ShowItemInFolder);
|
|
|
dict.SetMethod("openItem", &platform_util::OpenItem);
|
|
|
- dict.SetMethod("openExternal", &OpenExternal);
|
|
|
+ dict.SetMethod("_openExternal", &platform_util::OpenExternal);
|
|
|
dict.SetMethod("moveItemToTrash", &platform_util::MoveItemToTrash);
|
|
|
dict.SetMethod("beep", &platform_util::Beep);
|
|
|
}
|