parent
b9789ef191
commit
83b36ce40b
2 changed files with 12 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
|
#include "ui/base/win/shell.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using atom::Browser;
|
using atom::Browser;
|
||||||
|
@ -318,6 +319,12 @@ std::string App::GetLocale() {
|
||||||
return l10n_util::GetApplicationLocale("");
|
return l10n_util::GetApplicationLocale("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(OS_WIN)
|
||||||
|
bool App::IsAeroGlassEnabled() {
|
||||||
|
return ui::win::IsAeroGlassEnabled();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool App::MakeSingleInstance(
|
bool App::MakeSingleInstance(
|
||||||
const ProcessSingleton::NotificationCallback& callback) {
|
const ProcessSingleton::NotificationCallback& callback) {
|
||||||
if (process_singleton_.get())
|
if (process_singleton_.get())
|
||||||
|
@ -361,6 +368,7 @@ mate::ObjectTemplateBuilder App::GetObjectTemplateBuilder(
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
.SetMethod("setUserTasks",
|
.SetMethod("setUserTasks",
|
||||||
base::Bind(&Browser::SetUserTasks, browser))
|
base::Bind(&Browser::SetUserTasks, browser))
|
||||||
|
.SetMethod("isAeroGlassEnabled", &App::IsAeroGlassEnabled)
|
||||||
#endif
|
#endif
|
||||||
.SetMethod("setPath", &App::SetPath)
|
.SetMethod("setPath", &App::SetPath)
|
||||||
.SetMethod("getPath", &App::GetPath)
|
.SetMethod("getPath", &App::GetPath)
|
||||||
|
|
|
@ -88,6 +88,10 @@ class App : public AtomBrowserClient::Delegate,
|
||||||
const ProcessSingleton::NotificationCallback& callback);
|
const ProcessSingleton::NotificationCallback& callback);
|
||||||
std::string GetLocale();
|
std::string GetLocale();
|
||||||
|
|
||||||
|
#if defined(OS_WIN)
|
||||||
|
bool IsAeroGlassEnabled();
|
||||||
|
#endif
|
||||||
|
|
||||||
scoped_ptr<ProcessSingleton> process_singleton_;
|
scoped_ptr<ProcessSingleton> process_singleton_;
|
||||||
|
|
||||||
DISALLOW_COPY_AND_ASSIGN(App);
|
DISALLOW_COPY_AND_ASSIGN(App);
|
||||||
|
|
Loading…
Reference in a new issue