OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/views/extensions/extension_dialog.h" | 5 #include "chrome/browser/ui/views/extensions/extension_dialog.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_host.h" | 7 #include "chrome/browser/extensions/extension_host.h" |
8 #include "chrome/browser/extensions/extension_process_manager.h" | 8 #include "chrome/browser/extensions/extension_process_manager.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
12 #include "chrome/browser/ui/views/extensions/extension_dialog_observer.h" | 12 #include "chrome/browser/ui/views/extensions/extension_dialog_observer.h" |
13 #include "chrome/browser/ui/views/window.h" // CreateViewsWindow | 13 #include "chrome/browser/ui/views/window.h" // CreateViewsWindow |
14 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
15 #include "content/browser/renderer_host/render_view_host.h" | 15 #include "content/browser/renderer_host/render_view_host.h" |
16 #include "content/browser/renderer_host/render_widget_host_view.h" | 16 #include "content/browser/renderer_host/render_widget_host_view.h" |
17 #include "content/browser/tab_contents/tab_contents.h" | 17 #include "content/browser/tab_contents/tab_contents.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
24 #include "chrome/browser/chromeos/frame/bubble_window.h" | 24 #include "chrome/browser/chromeos/frame/bubble_window.h" |
25 #endif | 25 #endif |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 views::Widget* CreateWindow(gfx::NativeWindow parent, | 29 views::Widget* CreateWindow(gfx::NativeWindow parent, |
30 views::WidgetDelegate* delegate) { | 30 views::WidgetDelegate* delegate) { |
31 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) | 31 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // If we aren't the host of the popup, then disregard the notification. | 167 // If we aren't the host of the popup, then disregard the notification. |
168 if (content::Details<ExtensionHost>(host()) != details) | 168 if (content::Details<ExtensionHost>(host()) != details) |
169 return; | 169 return; |
170 Close(); | 170 Close(); |
171 break; | 171 break; |
172 default: | 172 default: |
173 NOTREACHED() << L"Received unexpected notification"; | 173 NOTREACHED() << L"Received unexpected notification"; |
174 break; | 174 break; |
175 } | 175 } |
176 } | 176 } |
OLD | NEW |