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

Unified Diff: chrome/browser/tab_contents/thumbnail_generator.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: chrome/browser/tab_contents/thumbnail_generator.cc
===================================================================
--- chrome/browser/tab_contents/thumbnail_generator.cc (revision 91968)
+++ chrome/browser/tab_contents/thumbnail_generator.cc (working copy)
@@ -146,9 +146,9 @@
// subclass, RenderViewHost when it is in a tab. We don't make thumbnails
// for RenderViewHosts that aren't in tabs, or RenderWidgetHosts that
// aren't views like select popups.
- registrar_.Add(this, NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
+ registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB,
Source<TabContents>(tab_contents));
- registrar_.Add(this, NotificationType::TAB_CONTENTS_DISCONNECTED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_DISCONNECTED,
Source<TabContents>(tab_contents));
}
}
@@ -159,26 +159,26 @@
bool currently_monitored =
registrar_.IsRegistered(
this,
- NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
renderer_source);
if (monitor != currently_monitored) {
if (monitor) {
registrar_.Add(
this,
- NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
renderer_source);
registrar_.Add(
this,
- NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED,
+ content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
renderer_source);
} else {
registrar_.Remove(
this,
- NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
+ content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
renderer_source);
registrar_.Remove(
this,
- NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED,
+ content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
renderer_source);
}
}
@@ -307,23 +307,23 @@
}
}
-void ThumbnailGenerator::Observe(NotificationType type,
+void ThumbnailGenerator::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB: {
+ switch (type) {
+ case content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB: {
// Install our observer for all new RVHs.
RenderViewHost* renderer = Details<RenderViewHost>(details).ptr();
MonitorRenderer(renderer, true);
break;
}
- case NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED:
+ case content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED:
if (!*Details<bool>(details).ptr())
WidgetHidden(Source<RenderWidgetHost>(source).ptr());
break;
- case NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK: {
+ case content::NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK: {
RenderWidgetHost::PaintAtSizeAckDetails* size_ack_details =
Details<RenderWidgetHost::PaintAtSizeAckDetails>(details).ptr();
WidgetDidReceivePaintAtSizeAck(
@@ -333,12 +333,12 @@
break;
}
- case NotificationType::TAB_CONTENTS_DISCONNECTED:
+ case content::NOTIFICATION_TAB_CONTENTS_DISCONNECTED:
TabContentsDisconnected(Source<TabContents>(source).ptr());
break;
default:
- NOTREACHED() << "Unexpected notification type: " << type.value;
+ NOTREACHED() << "Unexpected notification type: " << type;
}
}
« no previous file with comments | « chrome/browser/tab_contents/thumbnail_generator.h ('k') | chrome/browser/tab_contents/thumbnail_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698