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

Side by Side Diff: ash/accelerators/accelerator_controller.cc

Issue 14584004: Remove ash-disable-launcher-per-display flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | ash/ash_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/accelerators/accelerator_controller.h" 5 #include "ash/accelerators/accelerator_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <iostream> 9 #include <iostream>
10 #include <string> 10 #include <string>
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 return true; 693 return true;
694 case SHOW_OAK: 694 case SHOW_OAK:
695 if (CommandLine::ForCurrentProcess()->HasSwitch( 695 if (CommandLine::ForCurrentProcess()->HasSwitch(
696 switches::kAshEnableOak)) { 696 switches::kAshEnableOak)) {
697 oak::ShowOakWindowWithContext(Shell::GetPrimaryRootWindow()); 697 oak::ShowOakWindowWithContext(Shell::GetPrimaryRootWindow());
698 return true; 698 return true;
699 } 699 }
700 break; 700 break;
701 case SHOW_SYSTEM_TRAY_BUBBLE: { 701 case SHOW_SYSTEM_TRAY_BUBBLE: {
702 internal::RootWindowController* controller = 702 internal::RootWindowController* controller =
703 Shell::IsLauncherPerDisplayEnabled() ? 703 internal::RootWindowController::ForActiveRootWindow();
704 internal::RootWindowController::ForActiveRootWindow() :
705 Shell::GetPrimaryRootWindowController();
706 if (!controller->GetSystemTray()->HasSystemBubble()) 704 if (!controller->GetSystemTray()->HasSystemBubble())
707 controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW); 705 controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW);
708 break; 706 break;
709 } 707 }
710 case SHOW_MESSAGE_CENTER_BUBBLE: { 708 case SHOW_MESSAGE_CENTER_BUBBLE: {
711 internal::RootWindowController* controller = 709 internal::RootWindowController* controller =
712 Shell::IsLauncherPerDisplayEnabled() ? 710 internal::RootWindowController::ForActiveRootWindow();
713 internal::RootWindowController::ForActiveRootWindow() :
714 Shell::GetPrimaryRootWindowController();
715 internal::StatusAreaWidget* status_area_widget = 711 internal::StatusAreaWidget* status_area_widget =
716 controller->shelf()->status_area_widget(); 712 controller->shelf()->status_area_widget();
717 if (status_area_widget) { 713 if (status_area_widget) {
718 WebNotificationTray* notification_tray = 714 WebNotificationTray* notification_tray =
719 status_area_widget->web_notification_tray(); 715 status_area_widget->web_notification_tray();
720 if (notification_tray->visible()) 716 if (notification_tray->visible())
721 notification_tray->ShowMessageCenterBubble(); 717 notification_tray->ShowMessageCenterBubble();
722 } 718 }
723 break; 719 break;
724 } 720 }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 keyboard_brightness_control_delegate) { 957 keyboard_brightness_control_delegate) {
962 keyboard_brightness_control_delegate_ = 958 keyboard_brightness_control_delegate_ =
963 keyboard_brightness_control_delegate.Pass(); 959 keyboard_brightness_control_delegate.Pass();
964 } 960 }
965 961
966 bool AcceleratorController::CanHandleAccelerators() const { 962 bool AcceleratorController::CanHandleAccelerators() const {
967 return true; 963 return true;
968 } 964 }
969 965
970 } // namespace ash 966 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/ash_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698