summaryrefslogtreecommitdiffstats
path: root/apps/shell_window.cc
diff options
context:
space:
mode:
authorrockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 19:34:44 +0000
committerrockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 19:34:44 +0000
commitc0c271b6a40225a489c74e89d7eb128194a3c1dc (patch)
treec60e32d4211ac3890328beff656b145ad23bfabc /apps/shell_window.cc
parent008026df321d960ebfbdb0e3d2dd6e1b0e622caf (diff)
downloadchromium_src-c0c271b6a40225a489c74e89d7eb128194a3c1dc.zip
chromium_src-c0c271b6a40225a489c74e89d7eb128194a3c1dc.tar.gz
chromium_src-c0c271b6a40225a489c74e89d7eb128194a3c1dc.tar.bz2
Revert 227677 - Trigger visibilitychange events on app container state changes
Original CL: https://codereview.chromium.org/23473005/ BUG=312430 Review URL: https://codereview.chromium.org/54643005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/shell_window.cc')
-rw-r--r--apps/shell_window.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/shell_window.cc b/apps/shell_window.cc
index abed875..d37d481 100644
--- a/apps/shell_window.cc
+++ b/apps/shell_window.cc
@@ -139,8 +139,7 @@ ShellWindow::ShellWindow(Profile* profile,
delegate_(delegate),
image_loader_ptr_factory_(this),
fullscreen_for_window_api_(false),
- fullscreen_for_tab_(false),
- is_content_visible_(false) {
+ fullscreen_for_tab_(false) {
}
void ShellWindow::Init(const GURL& url,
@@ -300,16 +299,6 @@ void ShellWindow::OnNativeWindowChanged() {
SaveWindowPosition();
if (shell_window_contents_ && native_app_window_)
shell_window_contents_->NativeWindowChanged(native_app_window_.get());
-
- bool was_content_visible = is_content_visible_;
- NativeAppWindow* window = GetBaseWindow();
- if (window) {
- is_content_visible_ = window->IsVisible() && !window->IsMinimized();
- if (was_content_visible && !is_content_visible_)
- shell_window_contents_->GetWebContents()->WasHidden();
- else if (!was_content_visible && is_content_visible_)
- shell_window_contents_->GetWebContents()->WasShown();
- }
}
void ShellWindow::OnNativeWindowActivated() {