summaryrefslogtreecommitdiffstats
path: root/apps/native_app_window.h
diff options
context:
space:
mode:
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 10:01:51 +0000
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 10:01:51 +0000
commita39dcb42c9cc46fa6598744d043f3461c542d967 (patch)
treee4319f455404b21c725e4d1f50b05775a19f3236 /apps/native_app_window.h
parent21b91ac7a95a94d77d8e0c91ce51387e4218bee0 (diff)
downloadchromium_src-a39dcb42c9cc46fa6598744d043f3461c542d967.zip
chromium_src-a39dcb42c9cc46fa6598744d043f3461c542d967.tar.gz
chromium_src-a39dcb42c9cc46fa6598744d043f3461c542d967.tar.bz2
Differentiate windows hidden by AppWindow.hide API and Mac-style Hide/Show.
Windows hidden by AppWindow.hide will not be shown when the app is unhidden. Similarly, when AppWindow.show is called in a hidden app, the app is unhidden. BUG=257537 TEST=Open a packaged app that hides windows using AppWindow.hide. Right click the dock icon and select Hide, then Show. Only the windows that were visible should be shown. Windows hidden with AppWindow.hide should stay hidden. Review URL: https://chromiumcodereview.appspot.com/18758002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/native_app_window.h')
-rw-r--r--apps/native_app_window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/native_app_window.h b/apps/native_app_window.h
index fcad3ce..9a1e05b 100644
--- a/apps/native_app_window.h
+++ b/apps/native_app_window.h
@@ -51,6 +51,12 @@ class NativeAppWindow : public ui::BaseWindow,
// borders) and the content bounds, if any.
virtual gfx::Insets GetFrameInsets() const = 0;
+ // Hide or show this window as part of hiding or showing the app.
+ // This may have different logic to Hide, Show, and ShowInactive as those are
+ // called via the AppWindow javascript API.
+ virtual void ShowWithApp() = 0;
+ virtual void HideWithApp() = 0;
+
virtual ~NativeAppWindow() {}
};