[M69 Dev][Tizen] Enable touch events for mobile/wearable profile
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / eweb_view.cc
index e970a20..cbd30bd 100644 (file)
@@ -35,6 +35,7 @@
 #include "content/public/browser/navigation_entry.h"
 #include "content/public/browser/resource_dispatcher_host.h"
 #include "content/public/common/content_client.h"
+#include "content/public/common/content_switches.h"
 #include "content/public/common/user_agent.h"
 #include "permission_popup_manager.cc"
 #include "private/ewk_back_forward_list_private.h"
@@ -53,7 +54,6 @@
 #include "tizen/system_info.h"
 #include "ui/base/l10n/l10n_util.h"
 #include "ui/display/screen.h"
-#include "ui/events/event_switches.h"
 #include "web_contents_delegate_efl.h"
 #include "web_contents_efl_delegate_ewk.h"
 #include "web_contents_view_efl_delegate_ewk.h"
@@ -193,13 +193,14 @@ void EWebView::Initialize() {
   settings_.reset(new Ewk_Settings(
       evas_object_,
       web_contents_->GetRenderViewHost()->GetWebkitPreferences()));
-#if !defined(EWK_BRINGUP)  // FIXME: m67 bringup
   base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess();
-  if (cmdline->HasSwitch(switches::kTouchEvents))
-    SetTouchEventsEnabled(true);
-  else
-#endif
+  if (cmdline->HasSwitch(switches::kTouchEventFeatureDetection)) {
+    SetTouchEventsEnabled(
+        cmdline->GetSwitchValueASCII(switches::kTouchEventFeatureDetection) ==
+        switches::kTouchEventFeatureDetectionEnabled);
+  } else {
     SetMouseEventsEnabled(true);
+  }
 
   popupMenuItems_ = 0;
   popupPicker_ = 0;