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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 11094019: Auto hide app list on Windows when it loses focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/launcher/launcher_types.h" 7 #include "ash/launcher/launcher_types.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 #else 306 #else
307 return false; 307 return false;
308 #endif 308 #endif
309 } 309 }
310 310
311 app_list::AppListViewDelegate* 311 app_list::AppListViewDelegate*
312 ChromeShellDelegate::CreateAppListViewDelegate() { 312 ChromeShellDelegate::CreateAppListViewDelegate() {
313 DCHECK(ash::Shell::HasInstance()); 313 DCHECK(ash::Shell::HasInstance());
314 // Shell will own the created delegate, and the delegate will own 314 // Shell will own the created delegate, and the delegate will own
315 // the controller. 315 // the controller.
316 return new AppListViewDelegate(new AppListControllerAsh()); 316 return new AppListViewDelegate(new AppListControllerDelegateAsh());
317 } 317 }
318 318
319 ash::LauncherDelegate* ChromeShellDelegate::CreateLauncherDelegate( 319 ash::LauncherDelegate* ChromeShellDelegate::CreateLauncherDelegate(
320 ash::LauncherModel* model) { 320 ash::LauncherModel* model) {
321 ChromeLauncherController* controller = 321 ChromeLauncherController* controller =
322 new ChromeLauncherController(NULL, model); 322 new ChromeLauncherController(NULL, model);
323 controller->Init(); 323 controller->Init();
324 return controller; 324 return controller;
325 } 325 }
326 326
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 ash::Shell::GetInstance()->ShowLauncher(); 450 ash::Shell::GetInstance()->ShowLauncher();
451 break; 451 break;
452 default: 452 default:
453 NOTREACHED() << "Unexpected notification " << type; 453 NOTREACHED() << "Unexpected notification " << type;
454 } 454 }
455 #else 455 #else
456 // MSVC++ warns about switch statements without any cases. 456 // MSVC++ warns about switch statements without any cases.
457 NOTREACHED() << "Unexpected notification " << type; 457 NOTREACHED() << "Unexpected notification " << type;
458 #endif 458 #endif
459 } 459 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698