diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 74fb41afd21a..d94779028cff 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -757,7 +757,6 @@ bool WebContents::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_HANDLER(AtomViewHostMsg_Message, OnRendererMessage) IPC_MESSAGE_HANDLER_DELAY_REPLY(AtomViewHostMsg_Message_Sync, OnRendererMessageSync) - IPC_MESSAGE_HANDLER(AtomViewHostMsg_DidCommitCompositorFrame, OnViewPainted) IPC_MESSAGE_HANDLER_CODE(ViewHostMsg_SetCursor, OnCursorChange, handled = false) IPC_MESSAGE_UNHANDLED(handled = false) @@ -1331,10 +1330,6 @@ void WebContents::OnCursorChange(const content::WebCursor& cursor) { } } -void WebContents::OnViewPainted() { - Emit("view-painted"); -} - void WebContents::SetSize(const SetSizeParams& params) { if (guest_delegate_) guest_delegate_->SetSize(params); diff --git a/atom/browser/api/atom_api_web_contents.h b/atom/browser/api/atom_api_web_contents.h index 3a6cbaa3f9e1..e2e08192ccf2 100644 --- a/atom/browser/api/atom_api_web_contents.h +++ b/atom/browser/api/atom_api_web_contents.h @@ -307,9 +307,6 @@ class WebContents : public mate::TrackableObject, const base::ListValue& args, IPC::Message* message); - // Called when the hosted view gets graphical updates. - void OnViewPainted(); - v8::Global session_; v8::Global devtools_web_contents_; v8::Global debugger_; diff --git a/atom/common/api/api_messages.h b/atom/common/api/api_messages.h index 7a9fdb04ebc2..ab27d5a2516e 100644 --- a/atom/common/api/api_messages.h +++ b/atom/common/api/api_messages.h @@ -39,7 +39,5 @@ IPC_MESSAGE_ROUTED3(AtomViewMsg_Message, IPC_MESSAGE_ROUTED1(AtomViewHostMsg_UpdateDraggableRegions, std::vector /* regions */) -IPC_MESSAGE_ROUTED0(AtomViewHostMsg_DidCommitCompositorFrame) - // Update renderer process preferences. IPC_MESSAGE_CONTROL1(AtomMsg_UpdatePreferences, base::ListValue) diff --git a/atom/renderer/atom_render_view_observer.cc b/atom/renderer/atom_render_view_observer.cc index ea5727893d94..45a41eef8acc 100644 --- a/atom/renderer/atom_render_view_observer.cc +++ b/atom/renderer/atom_render_view_observer.cc @@ -141,10 +141,6 @@ void AtomRenderViewObserver::DraggableRegionsChanged(blink::WebFrame* frame) { Send(new AtomViewHostMsg_UpdateDraggableRegions(routing_id(), regions)); } -void AtomRenderViewObserver::DidCommitCompositorFrame() { - Send(new AtomViewHostMsg_DidCommitCompositorFrame(routing_id())); -} - bool AtomRenderViewObserver::OnMessageReceived(const IPC::Message& message) { bool handled = true; IPC_BEGIN_MESSAGE_MAP(AtomRenderViewObserver, message) diff --git a/atom/renderer/atom_render_view_observer.h b/atom/renderer/atom_render_view_observer.h index 29488960545f..376138f0849a 100644 --- a/atom/renderer/atom_render_view_observer.h +++ b/atom/renderer/atom_render_view_observer.h @@ -28,7 +28,6 @@ class AtomRenderViewObserver : public content::RenderViewObserver { // content::RenderViewObserver implementation. void DidCreateDocumentElement(blink::WebLocalFrame* frame) override; void DraggableRegionsChanged(blink::WebFrame* frame) override; - void DidCommitCompositorFrame() override; bool OnMessageReceived(const IPC::Message& message) override; void OnBrowserMessage(bool send_to_all, diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 8856d85d116e..c27237b1c70e 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -457,10 +457,6 @@ app.on('ready', () => { }) ``` -#### Event: 'view-painted' - -Emitted when a page's view is repainted. - #### Event: 'paint' Returns: