summaryrefslogtreecommitdiffstats
path: root/ui/aura_shell/shell_delegate.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 21:53:23 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-13 21:53:23 +0000
commit671a2aeb7136e2d7a07e18611d49fb17257f4cad (patch)
treeacdb3260b84bc64ce5090d8f5df5f732866f94bf /ui/aura_shell/shell_delegate.h
parenta643ecb54cccf5f6cdb2625150e7e4e95224f48c (diff)
downloadchromium_src-671a2aeb7136e2d7a07e18611d49fb17257f4cad.zip
chromium_src-671a2aeb7136e2d7a07e18611d49fb17257f4cad.tar.gz
chromium_src-671a2aeb7136e2d7a07e18611d49fb17257f4cad.tar.bz2
Positions the launcher in the bottom left corner. Adds ShellDelegate
API to allow configuring entries that are added to the launcher. Changes LauncherModel not to include fixed buttons (create new window and show apps buttons). BUG=97262 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/8247012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105383 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura_shell/shell_delegate.h')
-rw-r--r--ui/aura_shell/shell_delegate.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/aura_shell/shell_delegate.h b/ui/aura_shell/shell_delegate.h
index 60b04ec..1fdb735 100644
--- a/ui/aura_shell/shell_delegate.h
+++ b/ui/aura_shell/shell_delegate.h
@@ -10,6 +10,8 @@
namespace aura_shell {
+struct LauncherItem;
+
// Delegate of the Shell.
class AURA_SHELL_EXPORT ShellDelegate {
public:
@@ -22,6 +24,14 @@ class AURA_SHELL_EXPORT ShellDelegate {
// Invoked when the user clicks the app list button on the launcher.
virtual void ShowApps() = 0;
+
+ // Invoked when the user clicks on a window entry in the launcher.
+ virtual void LauncherItemClicked(const LauncherItem& item) = 0;
+
+ // Invoked when a window is added. If the delegate wants the launcher to show
+ // an entry for |item->window| it should configure |item| appropriately and
+ // return true.
+ virtual bool ConfigureLauncherItem(LauncherItem* item) = 0;
};
} // namespace aura_shell