Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: ui/aura_shell/shell_delegate.h

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestDesktopDelegate Created 9 years, 2 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
Index: ui/aura_shell/shell_delegate.h
diff --git a/ui/aura_shell/shell_delegate.h b/ui/aura_shell/shell_delegate.h
index 60b04ec80d693afdc9588f0eed0cda3ed40f43d4..1fdb7358c3acbe3b9229a3b79a0c154785e3e2ee 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

Powered by Google App Engine
This is Rietveld 408576698