scroll_detector_(new EflWebview::ScrollDetector()),
m_IsEvasGLInit(0),
device_scale_factor_(1.0f),
+ m_magnifier(false),
egl_image_(0),
current_pixmap_id_(0),
next_pixmap_id_(0) {
host_->LostCapture();
}
+void RenderWidgetHostViewEfl::set_magnifier(bool status) {
+ m_magnifier = status;
+}
+
void RenderWidgetHostViewEfl::HandleEvasEvent(const Evas_Event_Mouse_Down* event) {
host_->ForwardMouseEvent(WebEventFactoryEfl::toWebMouseEvent(web_view_->GetEvas(), web_view_->evas_object(), event, device_scale_factor_));
}
fling_cancel.type = blink::WebInputEvent::GestureFlingCancel;
fling_cancel.sourceDevice = blink::WebGestureDeviceTouchscreen;
host_->ForwardGestureEvent(fling_cancel);
+ } else if (event->type() == ui::ET_GESTURE_SCROLL_UPDATE) {
+ if (m_magnifier)
+ return;
} else if (event->type() == ui::ET_GESTURE_SCROLL_BEGIN) {
if (GetSelectionController())
GetSelectionController()->SetScrollStatus(true);
return evas_;
}
+ void set_magnifier(bool status);
+
void Init_EvasGL(int width, int height);
void set_eweb_view(EWebView*);
// The current composition character bounds.
std::vector<gfx::Rect> composition_character_bounds_;
+ bool m_magnifier;
+
// YUV readback pipeline.
scoped_ptr<content::ReadbackYUVInterface>
yuv_readback_pipeline_;
return true;
}
+void EWebView::set_magnifier(bool status) {
+ rwhv()->set_magnifier(status);
+}
+
const char* EWebView::GetUserAgent() const {
#warning "[M37] Fix GetUserAgent"
// NOTE: web_contents_delegate_->web_contents()->GetUserAgentOverride();
return orientation_;
}
+ void set_magnifier(bool status);
+
// ewk_view api
void SetURL(const char* url_string);
const char* GetURL() const;
void SelectionMagnifierEfl::Show() {
evas_object_show(container_);
controller_->GetParentView()->SmartCallback<EWebViewCallbacks::MagnifierShow>().call();
+ controller_->GetParentView()->set_magnifier(true);
}
void SelectionMagnifierEfl::Hide() {
evas_object_hide(content_image_);
evas_object_hide(container_);
controller_->GetParentView()->SmartCallback<EWebViewCallbacks::MagnifierHide>().call();
+ controller_->GetParentView()->set_magnifier(false);
}
}