| 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_popup.h" | 5 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/browser/debugger/devtools_manager.h" | |
| 10 #include "chrome/browser/debugger/devtools_toggle_action.h" | |
| 11 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
| 12 #include "chrome/browser/extensions/extension_process_manager.h" | 10 #include "chrome/browser/extensions/extension_process_manager.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 16 #include "chrome/browser/ui/views/frame/browser_view.h" | 14 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 17 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
| 16 #include "content/browser/debugger/devtools_manager.h" |
| 17 #include "content/browser/debugger/devtools_toggle_action.h" |
| 18 #include "content/browser/renderer_host/render_view_host.h" | 18 #include "content/browser/renderer_host/render_view_host.h" |
| 19 #include "content/browser/renderer_host/render_widget_host_view.h" | 19 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 20 #include "content/common/notification_details.h" | 20 #include "content/common/notification_details.h" |
| 21 #include "content/common/notification_source.h" | 21 #include "content/common/notification_source.h" |
| 22 #include "content/common/notification_type.h" | 22 #include "content/common/notification_type.h" |
| 23 #include "views/widget/root_view.h" | 23 #include "views/widget/root_view.h" |
| 24 #include "views/widget/widget.h" | 24 #include "views/widget/widget.h" |
| 25 | 25 |
| 26 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
| 27 #include "chrome/browser/chromeos/wm_ipc.h" | 27 #include "chrome/browser/chromeos/wm_ipc.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 if (closing_) | 205 if (closing_) |
| 206 return; | 206 return; |
| 207 closing_ = true; | 207 closing_ = true; |
| 208 DetachFromBrowser(); | 208 DetachFromBrowser(); |
| 209 | 209 |
| 210 if (observer_) | 210 if (observer_) |
| 211 observer_->ExtensionPopupIsClosing(this); | 211 observer_->ExtensionPopupIsClosing(this); |
| 212 | 212 |
| 213 Release(); // Balanced in ctor. | 213 Release(); // Balanced in ctor. |
| 214 } | 214 } |
| OLD | NEW |