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

Side by Side Diff: ash/mus/accelerators/accelerator_controller_delegate_mus.cc

Issue 2170753005: Moves AcceleratorController from Shell to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no-find-copies Created 4 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/mus/accelerators/accelerator_controller_delegate_mus.h"
6
7 namespace ash {
8 namespace mus {
9
10 AcceleratorControllerDelegateMus::AcceleratorControllerDelegateMus() {}
11
12 AcceleratorControllerDelegateMus::~AcceleratorControllerDelegateMus() {}
13
14 bool AcceleratorControllerDelegateMus::HandlesAction(AcceleratorAction action) {
15 // This is the list of actions that are not ported from aura. The actions are
16 // replicated here to make sure we don't forget any. This list should
17 // eventually be empty. If there are any actions that don't make sense for
18 // mus, then they should be removed from AcceleratorAction.
19 // http://crbug.com/612331.
20 switch (action) {
21 case DEBUG_TOGGLE_DESKTOP_BACKGROUND_MODE:
22 case DEBUG_TOGGLE_DEVICE_SCALE_FACTOR:
23 case DEBUG_TOGGLE_ROOT_WINDOW_FULL_SCREEN:
24 case DEBUG_TOGGLE_SHOW_DEBUG_BORDERS:
25 case DEBUG_TOGGLE_SHOW_FPS_COUNTER:
26 case DEBUG_TOGGLE_SHOW_PAINT_RECTS:
27 case FOCUS_SHELF:
28 case LAUNCH_APP_0:
29 case LAUNCH_APP_1:
30 case LAUNCH_APP_2:
31 case LAUNCH_APP_3:
32 case LAUNCH_APP_4:
33 case LAUNCH_APP_5:
34 case LAUNCH_APP_6:
35 case LAUNCH_APP_7:
36 case LAUNCH_LAST_APP:
37 case MAGNIFY_SCREEN_ZOOM_IN:
38 case MAGNIFY_SCREEN_ZOOM_OUT:
39 case NEW_INCOGNITO_WINDOW:
40 case NEW_TAB:
41 case NEW_WINDOW:
42 case OPEN_FEEDBACK_PAGE:
43 case RESTORE_TAB:
44 case ROTATE_SCREEN:
45 case ROTATE_WINDOW:
46 case SCALE_UI_DOWN:
47 case SCALE_UI_RESET:
48 case SCALE_UI_UP:
49 case SHOW_KEYBOARD_OVERLAY:
50 case SHOW_MESSAGE_CENTER_BUBBLE:
51 case SHOW_SYSTEM_TRAY_BUBBLE:
52 case SHOW_TASK_MANAGER:
53 case TAKE_PARTIAL_SCREENSHOT:
54 case TAKE_SCREENSHOT:
55 case TAKE_WINDOW_SCREENSHOT:
56 case TOGGLE_APP_LIST:
57 case UNPIN:
58 NOTIMPLEMENTED();
59 return false;
60
61 #if defined(OS_CHROMEOS)
62 case DEBUG_ADD_REMOVE_DISPLAY:
63 case DEBUG_TOGGLE_UNIFIED_DESKTOP:
64 case DISABLE_GPU_WATCHDOG:
65 case LOCK_PRESSED:
66 case LOCK_RELEASED:
67 case OPEN_CROSH:
68 case OPEN_FILE_MANAGER:
69 case OPEN_GET_HELP:
70 case POWER_PRESSED:
71 case POWER_RELEASED:
72 case SWAP_PRIMARY_DISPLAY:
73 case TOGGLE_MIRROR_MODE:
74 case TOUCH_HUD_CLEAR:
75 case TOUCH_HUD_MODE_CHANGE:
76 case TOUCH_HUD_PROJECTION_TOGGLE:
77 NOTIMPLEMENTED();
78 return false;
79 #endif
80
81 default:
82 break;
83 }
84 return false;
85 }
86
87 bool AcceleratorControllerDelegateMus::CanPerformAction(
88 AcceleratorAction action,
89 const ui::Accelerator& accelerator,
90 const ui::Accelerator& previous_accelerator) {
91 return false;
92 }
93
94 void AcceleratorControllerDelegateMus::PerformAction(
95 AcceleratorAction action,
96 const ui::Accelerator& accelerator) {
97 // Should never be hit as HandlesAction() unconditionally returns false.
98 NOTREACHED();
99 }
100
101 void AcceleratorControllerDelegateMus::ShowDeprecatedAcceleratorNotification(
102 const char* const notification_id,
103 int message_id,
104 int old_shortcut_id,
105 int new_shortcut_id) {
106 // TODO: http://crbug.com/630316.
107 NOTIMPLEMENTED();
108 }
109
110 } // namespace mus
111 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698