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

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

Issue 11801027: More work to make ash_unittests pass when we require context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TableViewTest by making it a ViewsTestBase. Created 7 years, 11 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
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('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 <string> 9 #include <string>
10 10
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 case FOCUS_NEXT_PANE: 622 case FOCUS_NEXT_PANE:
623 return HandleRotatePaneFocus(Shell::FORWARD); 623 return HandleRotatePaneFocus(Shell::FORWARD);
624 case FOCUS_PREVIOUS_PANE: 624 case FOCUS_PREVIOUS_PANE:
625 return HandleRotatePaneFocus(Shell::BACKWARD); 625 return HandleRotatePaneFocus(Shell::BACKWARD);
626 case SHOW_KEYBOARD_OVERLAY: 626 case SHOW_KEYBOARD_OVERLAY:
627 ash::Shell::GetInstance()->delegate()->ShowKeyboardOverlay(); 627 ash::Shell::GetInstance()->delegate()->ShowKeyboardOverlay();
628 return true; 628 return true;
629 case SHOW_OAK: 629 case SHOW_OAK:
630 if (CommandLine::ForCurrentProcess()->HasSwitch( 630 if (CommandLine::ForCurrentProcess()->HasSwitch(
631 switches::kAshEnableOak)) { 631 switches::kAshEnableOak)) {
632 oak::ShowOakWindow(); 632 oak::ShowOakWindowWithContext(Shell::GetPrimaryRootWindow());
633 return true; 633 return true;
634 } 634 }
635 break; 635 break;
636 case SHOW_SYSTEM_TRAY_BUBBLE: { 636 case SHOW_SYSTEM_TRAY_BUBBLE: {
637 internal::RootWindowController* controller = 637 internal::RootWindowController* controller =
638 Shell::IsLauncherPerDisplayEnabled() ? 638 Shell::IsLauncherPerDisplayEnabled() ?
639 internal::RootWindowController::ForActiveRootWindow() : 639 internal::RootWindowController::ForActiveRootWindow() :
640 Shell::GetPrimaryRootWindowController(); 640 Shell::GetPrimaryRootWindowController();
641 if (!controller->GetSystemTray()->HasSystemBubble()) 641 if (!controller->GetSystemTray()->HasSystemBubble())
642 controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW); 642 controller->GetSystemTray()->ShowDefaultView(BUBBLE_CREATE_NEW);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 keyboard_brightness_control_delegate) { 851 keyboard_brightness_control_delegate) {
852 keyboard_brightness_control_delegate_ = 852 keyboard_brightness_control_delegate_ =
853 keyboard_brightness_control_delegate.Pass(); 853 keyboard_brightness_control_delegate.Pass();
854 } 854 }
855 855
856 bool AcceleratorController::CanHandleAccelerators() const { 856 bool AcceleratorController::CanHandleAccelerators() const {
857 return true; 857 return true;
858 } 858 }
859 859
860 } // namespace ash 860 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698