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

Unified Diff: ui/aura_shell/examples/aura_shell_main.cc

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/examples/aura_shell_main.cc
diff --git a/ui/aura_shell/examples/aura_shell_main.cc b/ui/aura_shell/examples/aura_shell_main.cc
index 0c06b79f8668b38022a012175bb21ea1950e10fc..1c4c0f117c6d4172d66fca7d7b61eafcf9f51810 100644
--- a/ui/aura_shell/examples/aura_shell_main.cc
+++ b/ui/aura_shell/examples/aura_shell_main.cc
@@ -9,6 +9,7 @@
#include "base/message_loop.h"
#include "ui/aura/desktop.h"
#include "ui/aura_shell/examples/toplevel_window.h"
+#include "ui/aura_shell/launcher/launcher_model.h"
#include "ui/aura_shell/shell.h"
#include "ui/aura_shell/shell_delegate.h"
#include "ui/aura_shell/shell_factory.h"
@@ -32,6 +33,15 @@ class ShellDelegateImpl : public aura_shell::ShellDelegate {
virtual void ShowApps() OVERRIDE {
NOTIMPLEMENTED();
}
+
+ virtual void LauncherItemClicked(
+ const aura_shell::LauncherItem& item) OVERRIDE {
+ item.window->Activate();
+ }
+
+ virtual bool ConfigureLauncherItem(aura_shell::LauncherItem* item) OVERRIDE {
+ return true; // Makes the entry show up in the launcher.
+ }
};
} // namesapce

Powered by Google App Engine
This is Rietveld 408576698