Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: ash/wm/overview/window_selector_controller.h

Issue 1114383002: Show overview mode button in TouchView with open modal window (Closed) Base URL:
Patch Set: use SetBoundsInScreen() Created 5 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
« no previous file with comments | « ash/wm/dock/ ('k') | ash/wm/overview/ » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_controller.h
diff --git a/ash/wm/overview/window_selector_controller.h b/ash/wm/overview/window_selector_controller.h
index 8d4a625e13e72ec9aab2c160e03e59900d2648f6..be35f154a0586343ea23c46bcde061d66b88454b 100644
--- a/ash/wm/overview/window_selector_controller.h
+++ b/ash/wm/overview/window_selector_controller.h
@@ -32,8 +32,14 @@ class ASH_EXPORT WindowSelectorController
~WindowSelectorController() override;
- // Returns true if selecting windows in an overview is enabled. This is false
- // at certain times, such as when the lock screen is visible.
+ // Returns true if the user is in an active desktop environment, i.e., they
+ // are logged in, the screen is not locked, and they are not running in
+ // kiosk mode.
+ static bool IsUserInActiveDesktopEnvironment();
+ // Returns true if the user is permitted to engage overview mode (the user
+ // must be in an active desktop environment and must not have any modal
+ // windows open).
static bool CanSelect();
// Enters overview mode. This is essentially the window cycling mode however
« no previous file with comments | « ash/wm/dock/ ('k') | ash/wm/overview/ » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698