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

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

Issue 8747021: [Aura] Polish app list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: set tile-page-scrollbar color Created 9 years 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/app_list.cc ('k') | ui/aura_shell/shell_delegate.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 56e76904758d54b460591063019af3d1d759a9b8..e15957f54006d11ae32f8b93ecbabb36d0e07038 100644
--- a/ui/aura_shell/examples/aura_shell_main.cc
+++ b/ui/aura_shell/examples/aura_shell_main.cc
@@ -28,11 +28,12 @@ class AppListWindow : public views::WidgetDelegateView {
}
// static
- static views::Widget* Create() {
+ static views::Widget* Create(const gfx::Rect& bounds) {
AppListWindow* app_list = new AppListWindow;
views::Widget::InitParams widget_params(
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
+ widget_params.bounds = bounds;
widget_params.delegate = app_list;
widget_params.keep_on_top = true;
widget_params.transparent = true;
@@ -66,8 +67,9 @@ class ShellDelegateImpl : public aura_shell::ShellDelegate {
}
virtual void RequestAppListWidget(
+ const gfx::Rect& bounds,
const SetWidgetCallback& callback) OVERRIDE {
- callback.Run(AppListWindow::Create());
+ callback.Run(AppListWindow::Create(bounds));
}
virtual void LauncherItemClicked(
« no previous file with comments | « ui/aura_shell/app_list.cc ('k') | ui/aura_shell/shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698