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

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

Powered by Google App Engine
This is Rietveld 408576698