[M69 Dev][Tizen] Enable touch events for mobile/wearable profile
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / content / browser / web_contents / web_contents_view_efl.cc
index 8478c47..809e86b 100644 (file)
 #include "content/public/browser/render_view_host.h"
 #include "content/public/browser/web_contents_view_delegate.h"
 #include "content/public/browser/web_contents_view_efl_delegate.h"
+#include "content/public/common/content_switches.h"
 #include "efl/window_factory.h"
 #include "tizen/system_info.h"
 #include "ui/display/screen_efl.h"
-#include "ui/events/event_switches.h"
 #include "ui/gfx/image/image_skia.h"
 #include "ui/gl/gl_shared_context_efl.h"
 
@@ -46,13 +46,12 @@ WebContentsViewEfl::WebContentsViewEfl(WebContents* contents,
       touch_enabled_(IsMobileProfile() || IsWearableProfile()),
       page_scale_factor_(1.0f),
       web_contents_(contents) {
-#if !defined(EWK_BRINGUP)  // FIXME: m67 bringup
   base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess();
-  if (cmdline->HasSwitch(switches::kTouchEvents)) {
-    touch_enabled_ = cmdline->GetSwitchValueASCII(switches::kTouchEvents) ==
-                     switches::kTouchEventsEnabled;
+  if (cmdline->HasSwitch(switches::kTouchEventFeatureDetection)) {
+    touch_enabled_ =
+        cmdline->GetSwitchValueASCII(switches::kTouchEventFeatureDetection) ==
+        switches::kTouchEventFeatureDetectionEnabled;
   }
-#endif
 }
 
 WebContentsViewEfl::~WebContentsViewEfl() {}