Hardware Backkey callback was already registered and called but
inside of it, there was nothing implemented related with WebApp.
Now hardware backkey work as it should be, like going back history
and App quit when there is no history to go back.
Change-Id: Ib95be89c8dc4da0628b7c69c531f36ff921c1b04
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
void UiRuntime::OnTerminate() {
atom::Browser *browser_model = atom::Browser::Get();
- browser_model->Shutdown();
}
void UiRuntime::OnPause() {
#include "atom/browser/browser.h"
#include <string>
+#include <app.h>
#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/browser_observer.h"
if (base::ThreadTaskRunnerHandle::IsSet()) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
+ ui_app_exit();
} else {
// There is no message loop available so we are in early stage.
exit(0);
}
void NativeWindowEfl::CloseImmediately() {
- NOTIMPLEMENTED();
if(window_)
evas_object_del(window_);
window_ = nullptr;
rfh->ExecuteJavaScriptWithUserGestureForTests(
base::UTF8ToUTF16(kBackKeyEventScript));
}
+ if (thiz->web_contents()->GetController().CanGoBack())
+ thiz->web_contents()->GetController().GoBack();
+ else
+ thiz->Close();
}
// static