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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 10407035: Extension/Platform App window isolation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index ff7881de4aac72bb417aeeb8e0a6cf8354d9c246..56b762ea3ce9ec5a68f61b23ff91517b9abbad34 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -46,6 +46,9 @@ class ShellWindowController : public ExtensionWindowController {
virtual void SetFullscreenMode(bool is_fullscreen,
const GURL& extension_url) const OVERRIDE;
+ protected:
+ virtual bool IsVisibleToExtension(const Extension* extension) const OVERRIDE;
+
private:
ShellWindow* shell_window_;
@@ -81,6 +84,11 @@ void ShellWindowController::SetFullscreenMode(bool is_fullscreen,
// TODO(mihaip): implement
}
+bool ShellWindowController::IsVisibleToExtension(const Extension* extension)
+ const {
+ return shell_window_->extension() == extension;
+}
+
} // namespace internal
ShellWindow* ShellWindow::Create(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698