#if defined(OS_WIN)
#include "base/strings/utf_string_conversions.h"
+#include "ui/base/win/shell.h"
#endif
using atom::Browser;
return l10n_util::GetApplicationLocale("");
}
+#if defined(OS_WIN)
+bool App::IsAeroGlassEnabled() {
+ return ui::win::IsAeroGlassEnabled();
+}
+#endif
+
bool App::MakeSingleInstance(
const ProcessSingleton::NotificationCallback& callback) {
if (process_singleton_.get())
#if defined(OS_WIN)
.SetMethod("setUserTasks",
base::Bind(&Browser::SetUserTasks, browser))
+ .SetMethod("isAeroGlassEnabled", &App::IsAeroGlassEnabled)
#endif
.SetMethod("setPath", &App::SetPath)
.SetMethod("getPath", &App::GetPath)
const ProcessSingleton::NotificationCallback& callback);
std::string GetLocale();
+#if defined(OS_WIN)
+ bool IsAeroGlassEnabled();
+#endif
+
scoped_ptr<ProcessSingleton> process_singleton_;
DISALLOW_COPY_AND_ASSIGN(App);