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

Side by Side Diff: chrome/browser/ui/views/aura/chrome_shell_delegate.cc

Issue 8747021: [Aura] Polish app list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h"
6 6
7 #include "chrome/browser/profiles/profile_manager.h" 7 #include "chrome/browser/profiles/profile_manager.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/views/aura/app_list_window.h" 9 #include "chrome/browser/ui/views/aura/app_list_window.h"
10 #include "chrome/browser/ui/views/aura/status_area_host_aura.h" 10 #include "chrome/browser/ui/views/aura/status_area_host_aura.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 browser->window()->Show(); 50 browser->window()->Show();
51 } 51 }
52 52
53 views::Widget* ChromeShellDelegate::CreateStatusArea() { 53 views::Widget* ChromeShellDelegate::CreateStatusArea() {
54 status_area_host_.reset(new StatusAreaHostAura()); 54 status_area_host_.reset(new StatusAreaHostAura());
55 views::Widget* status_area_widget = 55 views::Widget* status_area_widget =
56 status_area_host_.get()->CreateStatusArea(); 56 status_area_host_.get()->CreateStatusArea();
57 return status_area_widget; 57 return status_area_widget;
58 } 58 }
59 59
60 void ChromeShellDelegate::RequestAppListWidget( 60 void ChromeShellDelegate::RequestAppListWidget(const gfx::Rect& bounds,
sky 2011/11/30 21:50:21 nit: wrap to next line.
xiyuan 2011/11/30 22:26:34 Done.
61 const SetWidgetCallback& callback) { 61 const SetWidgetCallback& callback) {
62 new AppListWindow(callback); // AppListWindow deletes itself when closed. 62 // AppListWindow deletes itself when closed.
63 new AppListWindow(bounds, callback);
63 } 64 }
64 65
65 void ChromeShellDelegate::LauncherItemClicked( 66 void ChromeShellDelegate::LauncherItemClicked(
66 const aura_shell::LauncherItem& item) { 67 const aura_shell::LauncherItem& item) {
67 item.window->Activate(); 68 item.window->Activate();
68 } 69 }
69 70
70 bool ChromeShellDelegate::ConfigureLauncherItem( 71 bool ChromeShellDelegate::ConfigureLauncherItem(
71 aura_shell::LauncherItem* item) { 72 aura_shell::LauncherItem* item) {
72 BrowserView* view = BrowserView::GetBrowserViewForNativeWindow(item->window); 73 BrowserView* view = BrowserView::GetBrowserViewForNativeWindow(item->window);
73 return view && 74 return view &&
74 ShouldCreateLauncherItemForBrowser(view->browser(), &(item->type)); 75 ShouldCreateLauncherItemForBrowser(view->browser(), &(item->type));
75 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698