summaryrefslogtreecommitdiffstats
path: root/ash/shell_delegate.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 17:27:28 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 17:27:28 +0000
commit6416a9a9c8f50dc9368123478147a0e4b9c7951f (patch)
tree5b1b7c6dd4a74c9c2b9284d37d3faf10f5e468fd /ash/shell_delegate.h
parentec7b271972848c075878d14fe07f29197ebec6d6 (diff)
downloadchromium_src-6416a9a9c8f50dc9368123478147a0e4b9c7951f.zip
chromium_src-6416a9a9c8f50dc9368123478147a0e4b9c7951f.tar.gz
chromium_src-6416a9a9c8f50dc9368123478147a0e4b9c7951f.tar.bz2
Aura: ShellDelegate GetCycleWindowList can request order by activity
alicet@ is working on window switching animations for compact mode. We're finding that while most-recently-used cycling works pretty well for normal mode it's pretty confusing for compact mode, since you can't see an overview of the windows. This patch allows the window cycler controller to choose between most-recently-used and traditional linear order while we're sorting out which works better. BUG=none TEST=aura_shell_unittests WindowCycleControllerTest Review URL: https://chromiumcodereview.appspot.com/9112044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r--ash/shell_delegate.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index 0bb1ce6..0f39756 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -32,6 +32,11 @@ struct LauncherItem;
// Delegate of the Shell.
class ASH_EXPORT ShellDelegate {
public:
+ enum CycleOrder {
+ ORDER_MRU, // Most recently used
+ ORDER_LINEAR
+ };
+
// The Shell owns the delegate.
virtual ~ShellDelegate() {}
@@ -50,10 +55,12 @@ class ASH_EXPORT ShellDelegate {
virtual AppListViewDelegate* CreateAppListViewDelegate() = 0;
// Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab
- // or the window switching key). Windows should be in most-recently-used
- // order with the currently active window at the front of the list. The list
+ // or the window switching key). If |order_by_activity| is true then windows
+ // are returned in most-recently-used order with the currently active window
+ // at the front of the list. Otherwise any order may be returned. The list
// does not contain NULL pointers.
- virtual std::vector<aura::Window*> GetCycleWindowList() const = 0;
+ virtual std::vector<aura::Window*> GetCycleWindowList(
+ CycleOrder order) const = 0;
// Invoked when the user clicks on a window entry in the launcher.
virtual void LauncherItemClicked(const LauncherItem& item) = 0;