Add missing code - set webview event handler
authorSeungkeun Lee <sngn.lee@samsung.com>
Fri, 10 Apr 2015 09:43:49 +0000 (18:43 +0900)
committerSeungkeun Lee <sngn.lee@samsung.com>
Fri, 10 Apr 2015 09:43:49 +0000 (18:43 +0900)
Change-Id: I60b1ac4208112bdd3a2eea53847d899bae812fed

src/runtime/web_application.cc
src/runtime/web_view.cc

index 0ab5f64..65c832d 100755 (executable)
@@ -102,6 +102,7 @@ bool WebApplication::Initialize(NativeWindow* window) {
 void WebApplication::Launch() {
   initialized_ = true;
   WebView* view = new WebView(window_, ewk_context_);
+  view->SetEventListener(this);
 
   // TODO(sngn.lee): Get the start file
   view->LoadUrl("file:///index.html");
index 5798616..ba5c3b0 100755 (executable)
@@ -336,6 +336,10 @@ void WebView::OnKeyEvent(Ea_Callback_Type key_type) {
     listener_->OnHardwareKey(this, keyname);
 }
 
+void WebView::SetEventListener(EventListener* listener) {
+  listener_ = listener;
+}
+
 
 }  // namespace wrt