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

Unified Diff: content/browser/renderer_host/popup_menu_helper_mac.mm

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/popup_menu_helper_mac.mm
===================================================================
--- content/browser/renderer_host/popup_menu_helper_mac.mm (revision 147462)
+++ content/browser/renderer_host/popup_menu_helper_mac.mm (working copy)
@@ -16,15 +16,13 @@
#import "ui/base/cocoa/base_view.h"
#include "webkit/glue/webmenurunner_mac.h"
-using content::RenderViewHost;
-using content::RenderViewHostImpl;
-using content::RenderWidgetHost;
+namespace content {
PopupMenuHelper::PopupMenuHelper(RenderViewHost* render_view_host)
: render_view_host_(static_cast<RenderViewHostImpl*>(render_view_host)) {
notification_registrar_.Add(
- this, content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
- content::Source<RenderWidgetHost>(render_view_host));
+ this, NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
+ Source<RenderWidgetHost>(render_view_host));
}
void PopupMenuHelper::ShowPopupMenu(
@@ -84,12 +82,12 @@
}
}
-void PopupMenuHelper::Observe(
- int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
- DCHECK(type == content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED);
- DCHECK(content::Source<RenderWidgetHost>(source).ptr() == render_view_host_);
+void PopupMenuHelper::Observe(int type,
+ const NotificationSource& source,
+ const NotificationDetails& details) {
+ DCHECK(type == NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED);
+ DCHECK(Source<RenderWidgetHost>(source).ptr() == render_view_host_);
render_view_host_ = NULL;
}
+} // namespace content
« no previous file with comments | « content/browser/renderer_host/popup_menu_helper_mac.h ('k') | content/browser/renderer_host/render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698