Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: content/browser/renderer_host/render_widget_host.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host.cc
===================================================================
--- content/browser/renderer_host/render_widget_host.cc (revision 91968)
+++ content/browser/renderer_host/render_widget_host.cc (working copy)
@@ -249,7 +249,7 @@
bool is_visible = false;
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED,
+ content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
Source<RenderWidgetHost>(this),
Details<bool>(&is_visible));
}
@@ -284,7 +284,7 @@
bool is_visible = true;
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED,
+ content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
Source<RenderWidgetHost>(this),
Details<bool>(&is_visible));
@@ -757,7 +757,7 @@
void RenderWidgetHost::Destroy() {
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_HOST_DESTROYED,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
Source<RenderWidgetHost>(this),
NotificationService::NoDetails());
@@ -785,7 +785,7 @@
// OK, looks like we have a hung renderer!
NotificationService::current()->Notify(
- NotificationType::RENDERER_PROCESS_HANG,
+ content::NOTIFICATION_RENDERER_PROCESS_HANG,
Source<RenderWidgetHost>(this),
NotificationService::NoDetails());
is_unresponsive_ = true;
@@ -858,7 +858,7 @@
PaintAtSizeAckDetails details = {tag, size};
gfx::Size size_details = size;
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
Source<RenderWidgetHost>(this),
Details<PaintAtSizeAckDetails>(&details));
}
@@ -869,7 +869,7 @@
TimeTicks paint_start = TimeTicks::Now();
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_HOST_WILL_PAINT,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_WILL_PAINT,
Source<RenderWidgetHost>(this),
NotificationService::NoDetails());
@@ -966,7 +966,7 @@
}
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_HOST_DID_PAINT,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DID_PAINT,
Source<RenderWidgetHost>(this),
NotificationService::NoDetails());
@@ -1024,7 +1024,7 @@
}
// This is used only for testing.
NotificationService::current()->Notify(
- NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_INPUT_EVENT_ACK,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_INPUT_EVENT_ACK,
Source<RenderWidgetHost>(this),
Details<int>(&type));
}

Powered by Google App Engine
This is Rietveld 408576698