#include "content/public/common/content_switches.h"
#include "native_mate/constructor.h"
#include "native_mate/dictionary.h"
+#include "tizen/common/env_variables.h"
#include "ui/gfx/geometry/rect.h"
#if defined(TOOLKIT_VIEWS)
void Window::WillDestroyNativeObject() {
// Close all child windows before closing current window.
- v8::Locker locker(isolate());
+ if (!::tizen::is_single_process)
+ v8::Locker locker(isolate());
v8::HandleScope handle_scope(isolate());
for (v8::Local<v8::Value> value : child_windows_.Values(isolate())) {
mate::Handle<Window> child;
}
#endif
-#if defined(USE_EFL)
+#if defined(OS_TIZEN)
void Window::OnSuspend() {
Emit("app-on-suspend");
}
void Window::OnResume() {
Emit("app-on-resume");
}
+
+void Window::OnAppControl() {
+ Emit("app-on-appcontrol");
+}
#endif
// static