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

Side by Side Diff: content/browser/web_contents/popup_menu_helper_mac.mm

Issue 10024066: TabContents -> WebContentsImpl, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Carbon/Carbon.h> 5 #import <Carbon/Carbon.h>
6 6
7 #include "content/browser/tab_contents/popup_menu_helper_mac.h" 7 #include "content/browser/web_contents/popup_menu_helper_mac.h"
8 8
9 #import "base/mac/scoped_sending_event.h" 9 #import "base/mac/scoped_sending_event.h"
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "content/browser/renderer_host/render_view_host_impl.h" 12 #include "content/browser/renderer_host/render_view_host_impl.h"
13 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 13 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
14 #include "content/public/browser/notification_source.h" 14 #include "content/public/browser/notification_source.h"
15 #include "content/public/browser/notification_types.h" 15 #include "content/public/browser/notification_types.h"
16 #import "ui/base/cocoa/base_view.h" 16 #import "ui/base/cocoa/base_view.h"
17 #include "webkit/glue/webmenurunner_mac.h" 17 #include "webkit/glue/webmenurunner_mac.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void PopupMenuHelper::Observe( 83 void PopupMenuHelper::Observe(
84 int type, 84 int type,
85 const content::NotificationSource& source, 85 const content::NotificationSource& source,
86 const content::NotificationDetails& details) { 86 const content::NotificationDetails& details) {
87 DCHECK(type == content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED); 87 DCHECK(type == content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED);
88 DCHECK(content::Source<RenderWidgetHost>(source).ptr() == render_view_host_); 88 DCHECK(content::Source<RenderWidgetHost>(source).ptr() == render_view_host_);
89 render_view_host_ = NULL; 89 render_view_host_ = NULL;
90 } 90 }
91 91
OLDNEW
« no previous file with comments | « content/browser/web_contents/popup_menu_helper_mac.h ('k') | content/browser/web_contents/render_view_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698