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

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

Issue 1202923002: Revert "Deprecating high-conflict accelerators" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « chrome/browser/ui/ash/ash_util.h ('k') | chrome/browser/ui/views/accelerator_table.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 "chrome/browser/ui/ash/ash_util.h" 5 #include "chrome/browser/ui/ash/ash_util.h"
6 6
7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/shell.h" 7 #include "ash/shell.h"
9 #include "chrome/browser/ui/ash/ash_init.h" 8 #include "chrome/browser/ui/ash/ash_init.h"
10 #include "chrome/browser/ui/host_desktop.h" 9 #include "chrome/browser/ui/host_desktop.h"
11 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
12 11
13 #if !defined(OS_CHROMEOS) 12 #if !defined(OS_CHROMEOS)
14 #include "base/command_line.h" 13 #include "base/command_line.h"
15 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
16 #endif 15 #endif
17 16
(...skipping 26 matching lines...) Expand all
44 return true; 43 return true;
45 } 44 }
46 45
47 return false; 46 return false;
48 } 47 }
49 48
50 bool IsNativeWindowInAsh(gfx::NativeWindow native_window) { 49 bool IsNativeWindowInAsh(gfx::NativeWindow native_window) {
51 return IsNativeViewInAsh(native_window); 50 return IsNativeViewInAsh(native_window);
52 } 51 }
53 52
54 bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) {
55 ash::AcceleratorController* controller =
56 ash::Shell::GetInstance()->accelerator_controller();
57 return controller->IsDeprecated(accelerator);
58 }
59
60 } // namespace chrome 53 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/ash_util.h ('k') | chrome/browser/ui/views/accelerator_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698