fixup! Refactor disambiguation popup
authorKANGYONG PARK <kaka.park@samsung.com>
Fri, 5 Dec 2014 08:01:01 +0000 (17:01 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Disable disambiguation popup in DTV.
It is unnecessary feature in DTV, and disambiguation
popup is not supported in DTV browser base on Webkit.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9647
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I2814d80df2d96bc874bca105f1216d56a5bd0d30
Signed-off-by: KANGYONG PARK <kaka.park@samsung.com>
tizen_src/impl/browser/renderer_host/render_widget_host_view_efl.cc

index 4aa3703..401e994 100755 (executable)
@@ -133,7 +133,9 @@ RenderWidgetHostViewEfl::RenderWidgetHostViewEfl(RenderWidgetHost* widget, EWebV
 
   gesture_recognizer_->AddGestureEventHelper(this);
 
+#if defined(OS_TIZEN_MOBILE)
   disambiguation_popup_.reset(new DisambiguationPopupEfl(content_image_, this));
+#endif
 }
 
 RenderWidgetHostViewEfl::~RenderWidgetHostViewEfl() {
@@ -732,7 +734,8 @@ void RenderWidgetHostViewEfl::DidStopFlinging() {
 }
 
 void RenderWidgetHostViewEfl::ShowDisambiguationPopup(const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap) {
-  disambiguation_popup_->Show(rect_pixels, zoomed_bitmap);
+  if (disambiguation_popup_)
+    disambiguation_popup_->Show(rect_pixels, zoomed_bitmap);
 }
 
 bool RenderWidgetHostViewEfl::CanDispatchToConsumer(ui::GestureConsumer* consumer) {