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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
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/views/extensions/extension_keybinding_registry_views .h" 5 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views .h"
6 6
7 #include "chrome/browser/extensions/api/commands/command_service.h" 7 #include "chrome/browser/extensions/api/commands/command_service.h"
8 #include "chrome/browser/extensions/extension_keybinding_registry.h" 8 #include "chrome/browser/extensions/extension_keybinding_registry.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/extensions/extension.h" 11 #include "extensions/common/extension.h"
12 #include "ui/views/focus/focus_manager.h" 12 #include "ui/views/focus/focus_manager.h"
13 13
14 // static 14 // static
15 void extensions::ExtensionKeybindingRegistry::SetShortcutHandlingSuspended( 15 void extensions::ExtensionKeybindingRegistry::SetShortcutHandlingSuspended(
16 bool suspended) { 16 bool suspended) {
17 views::FocusManager::set_shortcut_handling_suspended(suspended); 17 views::FocusManager::set_shortcut_handling_suspended(suspended);
18 } 18 }
19 19
20 ExtensionKeybindingRegistryViews::ExtensionKeybindingRegistryViews( 20 ExtensionKeybindingRegistryViews::ExtensionKeybindingRegistryViews(
21 Profile* profile, 21 Profile* profile,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 CommandExecuted(it->second.first, it->second.second); 82 CommandExecuted(it->second.first, it->second.second);
83 83
84 return true; 84 return true;
85 } 85 }
86 86
87 bool ExtensionKeybindingRegistryViews::CanHandleAccelerators() const { 87 bool ExtensionKeybindingRegistryViews::CanHandleAccelerators() const {
88 return true; 88 return true;
89 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698