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

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: Tweaks 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
« no previous file with comments | « ui/aura_shell/desktop_window.cc ('k') | ui/aura_shell/launcher/launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1d02144add0aaa6490022e9de45811167de19170 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_types.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
« no previous file with comments | « ui/aura_shell/desktop_window.cc ('k') | ui/aura_shell/launcher/launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698