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 #include "chrome/browser/extensions/browser_extension_window_controller.h" | 5 #include "chrome/browser/extensions/browser_extension_window_controller.h" |
6 | 6 |
7 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 7 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
8 #include "chrome/browser/extensions/extension_tab_util.h" | 8 #include "chrome/browser/extensions/extension_tab_util.h" |
9 #include "chrome/browser/extensions/window_controller_list.h" | 9 #include "chrome/browser/extensions/window_controller_list.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 browser_->ToggleFullscreenModeWithExtension(extension_url); | 82 browser_->ToggleFullscreenModeWithExtension(extension_url); |
83 } | 83 } |
84 | 84 |
85 Browser* BrowserExtensionWindowController::GetBrowser() const { | 85 Browser* BrowserExtensionWindowController::GetBrowser() const { |
86 return browser_; | 86 return browser_; |
87 } | 87 } |
88 | 88 |
89 bool BrowserExtensionWindowController::IsVisibleToExtension( | 89 bool BrowserExtensionWindowController::IsVisibleToExtension( |
90 const extensions::Extension* extension) const { | 90 const extensions::Extension* extension) const { |
91 // Platform apps can only see their own windows. | 91 // Platform apps can only see their own windows. |
92 return !extension->is_platform_app(); | 92 return !browser_->is_devtools() && !extension->is_platform_app(); |
93 } | 93 } |
OLD | NEW |