web_view_->OnMHTMLContentGet(mhtml_content, callback_id);
}
- void OnDidChangeMaxScrollOffset(int maxScrollX, int maxScrollY) {
- if (web_view_)
- web_view_->GetScrollDetector()->SetMaxScroll(maxScrollX, maxScrollY);
- }
-
- void OnDidChangeScrollOffset(int scrollX, int scrollY) {
- if (web_view_)
- web_view_->GetScrollDetector()->OnChangeScrollOffset(gfx::Vector2d(scrollX, scrollY));
- }
-
- void OnFormSubmit(const GURL&url) {
- if (web_view_)
- web_view_->SmartCallback<EWebViewCallbacks::FormSubmit>().call(url.GetContent().c_str());
- }
-
void OnStartContentIntent(const GURL& content_url, bool is_main_frame) {
// [M48_2564] Need to apply the new is_main_frame argument in this function
// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15388
web_view_->ShowContentsDetectedPopup(content_url.spec().c_str());
}
- void OnRequestSelectCollectionInformationUpdateACK(
- int formElementCount, int currentNodeIndex,
- bool prevState, bool nextState) {
- if (web_view_)
- web_view_->UpdateFormNavigation(formElementCount,
- currentNodeIndex, prevState, nextState);
- }
-
- void OnDidNotAllowScript() {
- if (web_view_)
- web_view_->SmartCallback<EWebViewCallbacks::DidNotAllowScript>().call();
- }
-
void Observe(int type, const content::NotificationSource& source,
const content::NotificationDetails& details) override {
#if !defined(EWK_BRINGUP) // FIXME: m94 bringup
WebViewBrowserMessageFilterPrivate::OnSelectionTextStyleState)
IPC_MESSAGE_FORWARD(EwkHostMsg_ReadMHTMLData, private_,
WebViewBrowserMessageFilterPrivate::OnMHTMLContentGet)
- IPC_MESSAGE_FORWARD(EwkHostMsg_DidChangeMaxScrollOffset, private_,
- WebViewBrowserMessageFilterPrivate::OnDidChangeMaxScrollOffset)
- IPC_MESSAGE_FORWARD(EwkHostMsg_DidChangeScrollOffset, private_,
- WebViewBrowserMessageFilterPrivate::OnDidChangeScrollOffset)
- IPC_MESSAGE_FORWARD(EwkHostMsg_FormSubmit, private_,
- WebViewBrowserMessageFilterPrivate::OnFormSubmit)
#if !defined(EWK_BRINGUP) // FIXME: m67 bringup
IPC_MESSAGE_FORWARD(ViewHostMsg_StartContentIntent, private_,
WebViewBrowserMessageFilterPrivate::OnStartContentIntent)
#endif
- IPC_MESSAGE_FORWARD(EwkHostMsg_RequestSelectCollectionInformationUpdateACK,
- private_, WebViewBrowserMessageFilterPrivate::OnRequestSelectCollectionInformationUpdateACK)
- IPC_MESSAGE_FORWARD(EwkHostMsg_DidNotAllowScript, private_,
- WebViewBrowserMessageFilterPrivate::OnDidNotAllowScript)
-
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
RenderFrameHost* render_frame_host) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(WebContentsObserverEfl, message)
+ IPC_MESSAGE_HANDLER(EwkHostMsg_RequestSelectCollectionInformationUpdateACK,
+ OnRequestSelectCollectionInformationUpdateACK)
+ IPC_MESSAGE_HANDLER(EwkHostMsg_DidChangeMaxScrollOffset,
+ OnDidChangeMaxScrollOffset)
+ IPC_MESSAGE_HANDLER(EwkHostMsg_DidChangeScrollOffset,
+ OnDidChangeScrollOffset)
+ IPC_MESSAGE_HANDLER(EwkHostMsg_FormSubmit, OnFormSubmit)
+ IPC_MESSAGE_HANDLER(EwkHostMsg_DidNotAllowScript, OnDidNotAllowScript)
IPC_MESSAGE_HANDLER(EwkHostMsg_DidCreateDocumentElement,
OnDidCreateDocumentElement)
IPC_MESSAGE_HANDLER(EwkHostMsg_DidPrintPagesToPdf,
Send(reply);
}
+void WebContentsObserverEfl::OnRequestSelectCollectionInformationUpdateACK(
+ int form_element_count,
+ int current_node_index,
+ bool prev_state,
+ bool next_state) {
+ web_view_->UpdateFormNavigation(form_element_count, current_node_index,
+ prev_state, next_state);
+}
+
+void WebContentsObserverEfl::OnDidChangeMaxScrollOffset(int max_scroll_x,
+ int max_scroll_y) {
+ web_view_->GetScrollDetector()->SetMaxScroll(max_scroll_x, max_scroll_y);
+}
+
+void WebContentsObserverEfl::OnDidChangeScrollOffset(int scroll_x,
+ int scroll_y) {
+ web_view_->GetScrollDetector()->OnChangeScrollOffset(
+ gfx::Vector2d(scroll_x, scroll_y));
+}
+
+void WebContentsObserverEfl::OnFormSubmit(const GURL& url) {
+ web_view_->SmartCallback<EWebViewCallbacks::FormSubmit>().call(
+ url.GetContent().c_str());
+}
+
+void WebContentsObserverEfl::OnDidNotAllowScript() {
+ web_view_->SmartCallback<EWebViewCallbacks::DidNotAllowScript>().call();
+}
+
void WebContentsObserverEfl::OnDidChangeContentsSize(int width, int height) {
web_view_->DidChangeContentsSize(width, height);
}
// IPC message handlers:
void OnDidCreateDocumentElement();
void OnPrintedMetafileReceived(const DidPrintPagesParams& params);
+ void OnRequestSelectCollectionInformationUpdateACK(int form_element_count,
+ int current_node_index,
+ bool prev_state,
+ bool nest_state);
+ void OnDidChangeMaxScrollOffset(int max_scroll_x, int max_scroll_y);
+ void OnDidChangeScrollOffset(int scroll_x, int scroll_y);
+ void OnFormSubmit(const GURL& url);
+ void OnDidNotAllowScript();
void OnWrtPluginMessage(const Ewk_Wrt_Message_Data& data);
void OnWrtPluginSyncMessage(const Ewk_Wrt_Message_Data& data,
IPC::Message* reply);