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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc

Issue 10514003: Config UI for Extension Commands (part 1). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | 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/gtk/extensions/extension_keybinding_registry_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.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/api/commands/command_service_factory.h" 8 #include "chrome/browser/extensions/api/commands/command_service_factory.h"
9 #include "chrome/browser/extensions/extension_browser_event_router.h" 9 #include "chrome/browser/extensions/extension_browser_event_router.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/common/extensions/extension.h" 12 #include "chrome/common/extensions/extension.h"
13 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" 13 #include "ui/base/keycodes/keyboard_code_conversion_gtk.h"
14 14
15 // static
16 void extensions::ExtensionKeybindingRegistry::SetShortcutHandlingSuspended(
17 bool suspended) {
18 // TODO(finnur): Implement.
19 NOTIMPLEMENTED();
20 }
21
15 ExtensionKeybindingRegistryGtk::ExtensionKeybindingRegistryGtk( 22 ExtensionKeybindingRegistryGtk::ExtensionKeybindingRegistryGtk(
16 Profile* profile, gfx::NativeWindow window) 23 Profile* profile, gfx::NativeWindow window)
17 : ExtensionKeybindingRegistry(profile), 24 : ExtensionKeybindingRegistry(profile),
18 profile_(profile), 25 profile_(profile),
19 window_(window), 26 window_(window),
20 accel_group_(NULL) { 27 accel_group_(NULL) {
21 Init(); 28 Init();
22 } 29 }
23 30
24 ExtensionKeybindingRegistryGtk::~ExtensionKeybindingRegistryGtk() { 31 ExtensionKeybindingRegistryGtk::~ExtensionKeybindingRegistryGtk() {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (it == event_targets_.end()) { 146 if (it == event_targets_.end()) {
140 NOTREACHED(); // Shouldn't get this event for something not registered. 147 NOTREACHED(); // Shouldn't get this event for something not registered.
141 return FALSE; 148 return FALSE;
142 } 149 }
143 150
144 service->browser_event_router()->CommandExecuted( 151 service->browser_event_router()->CommandExecuted(
145 profile_, it->second.first, it->second.second); 152 profile_, it->second.first, it->second.second);
146 153
147 return TRUE; 154 return TRUE;
148 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698