OLD | NEW |
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/renderer_host/popup_menu_helper_mac.h" | 7 #include "content/browser/renderer_host/popup_menu_helper_mac.h" |
8 | 8 |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
10 #import "base/mac/scoped_sending_event.h" | 10 #import "base/mac/scoped_sending_event.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/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/browser/renderer_host/webmenurunner_mac.h" | 14 #include "content/browser/renderer_host/webmenurunner_mac.h" |
15 #include "content/public/browser/notification_source.h" | 15 #include "content/public/browser/notification_source.h" |
16 #include "content/public/browser/notification_types.h" | 16 #include "content/public/browser/notification_types.h" |
17 #import "ui/base/cocoa/base_view.h" | 17 #import "ui/base/cocoa/base_view.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 void PopupMenuHelper::Observe(int type, | 104 void PopupMenuHelper::Observe(int type, |
105 const NotificationSource& source, | 105 const NotificationSource& source, |
106 const NotificationDetails& details) { | 106 const NotificationDetails& details) { |
107 DCHECK(type == NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED); | 107 DCHECK(type == NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED); |
108 DCHECK(Source<RenderWidgetHost>(source).ptr() == render_view_host_); | 108 DCHECK(Source<RenderWidgetHost>(source).ptr() == render_view_host_); |
109 render_view_host_ = NULL; | 109 render_view_host_ = NULL; |
110 } | 110 } |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
OLD | NEW |