diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-19 23:17:07 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-19 23:17:07 +0000 |
commit | ad50def5e1165d0cc74b98f988bbd5962587d9f4 (patch) | |
tree | 3a751abaed2cc056ca60b8b1e3ff54532a6f4d3f /content/browser/renderer_host/render_widget_host.cc | |
parent | 75c920505ddfb2d49c194c76bde64edd6b3f91f2 (diff) | |
download | chromium_src-ad50def5e1165d0cc74b98f988bbd5962587d9f4.zip chromium_src-ad50def5e1165d0cc74b98f988bbd5962587d9f4.tar.gz chromium_src-ad50def5e1165d0cc74b98f988bbd5962587d9f4.tar.bz2 |
Make NotificationService an interface in the content namespace, and switch callers to use it. Move the implementation to content/browser. Stop creating it in all child processes since it's only used in the browser.
BUG=98716
Review URL: http://codereview.chromium.org/8342048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_widget_host.cc')
-rw-r--r-- | content/browser/renderer_host/render_widget_host.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc index b98a702..c826f07 100644 --- a/content/browser/renderer_host/render_widget_host.cc +++ b/content/browser/renderer_host/render_widget_host.cc @@ -21,7 +21,7 @@ #include "content/browser/renderer_host/render_widget_host_view.h" #include "content/browser/user_metrics.h" #include "content/common/gpu/gpu_messages.h" -#include "content/common/notification_service.h" +#include "content/public/browser/notification_service.h" #include "content/common/result_codes.h" #include "content/common/view_messages.h" #include "content/public/browser/native_web_keyboard_event.h" @@ -265,7 +265,7 @@ void RenderWidgetHost::WasHidden() { process_->WidgetHidden(); bool is_visible = false; - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, content::Source<RenderWidgetHost>(this), content::Details<bool>(&is_visible)); @@ -300,7 +300,7 @@ void RenderWidgetHost::WasRestored() { process_->WidgetRestored(); bool is_visible = true; - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, content::Source<RenderWidgetHost>(this), content::Details<bool>(&is_visible)); @@ -833,10 +833,10 @@ bool RenderWidgetHost::IsFullscreen() const { } void RenderWidgetHost::Destroy() { - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, content::Source<RenderWidgetHost>(this), - NotificationService::NoDetails()); + content::NotificationService::NoDetails()); // Tell the view to die. // Note that in the process of the view shutting down, it can call a ton @@ -861,10 +861,10 @@ void RenderWidgetHost::CheckRendererIsUnresponsive() { } // OK, looks like we have a hung renderer! - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDERER_PROCESS_HANG, content::Source<RenderWidgetHost>(this), - NotificationService::NoDetails()); + content::NotificationService::NoDetails()); is_unresponsive_ = true; NotifyRendererUnresponsive(); } @@ -934,7 +934,7 @@ void RenderWidgetHost::OnMsgRequestMove(const gfx::Rect& pos) { void RenderWidgetHost::OnMsgPaintAtSizeAck(int tag, const gfx::Size& size) { PaintAtSizeAckDetails details = {tag, size}; gfx::Size size_details = size; - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, content::Source<RenderWidgetHost>(this), content::Details<PaintAtSizeAckDetails>(&details)); @@ -1038,10 +1038,10 @@ void RenderWidgetHost::OnMsgUpdateRect( view_being_painted_ = false; } - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDER_WIDGET_HOST_DID_PAINT, content::Source<RenderWidgetHost>(this), - NotificationService::NoDetails()); + content::NotificationService::NoDetails()); // If we got a resize ack, then perhaps we have another resize to send? if (is_resize_ack && view_) { @@ -1090,7 +1090,7 @@ void RenderWidgetHost::OnMsgInputEventAck(WebInputEvent::Type event_type, } } // This is used only for testing. - NotificationService::current()->Notify( + content::NotificationService::current()->Notify( content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_INPUT_EVENT_ACK, content::Source<RenderWidgetHost>(this), content::Details<int>(&type)); |