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

Side by Side Diff: chrome/browser/ui/gtk/info_bubble_accelerators_gtk.cc

Issue 6296012: Update references part 2: files in chrome/browser/ui/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/gtk/info_bubble_accelerators_gtk.h" 5 #include "chrome/browser/ui/gtk/info_bubble_accelerators_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <glib.h> 8 #include <glib.h>
9 9
10 namespace { 10 namespace {
11 // Listing of the accelerators that are either handled or forwarded by 11 // Listing of the accelerators that are either handled or forwarded by
12 // info bubbles. Any accelerators that are not explicitly listed here 12 // info bubbles. Any accelerators that are not explicitly listed here
13 // are ignored and silently dropped. This table is expected to change 13 // are ignored and silently dropped. This table is expected to change
14 // after discussion over which accelerators should be addressed in 14 // after discussion over which accelerators should be addressed in
15 // info bubbles. For a complete listing of accelerators that are used 15 // info bubbles. For a complete listing of accelerators that are used
16 // in chrome consult accelerators_gtk.cc 16 // in chrome consult accelerators_gtk.cc
17 struct InfoBubbleAcceleratorGtk InfoBubbleAcceleratorGtkTable[] = { 17 struct InfoBubbleAcceleratorGtk InfoBubbleAcceleratorGtkTable[] = {
18 // Tab/window controls. 18 // Tab/window controls.
19 { GDK_w, GDK_CONTROL_MASK}, 19 { GDK_w, GDK_CONTROL_MASK},
20 20
21 // Navigation / toolbar buttons. 21 // Navigation / toolbar buttons.
22 { GDK_Escape, GdkModifierType(0)} 22 { GDK_Escape, GdkModifierType(0)}
23 }; 23 };
24 24
25 } // namespace 25 } // namespace
26 26
27 InfoBubbleAcceleratorGtkList InfoBubbleAcceleratorsGtk::GetList() { 27 InfoBubbleAcceleratorGtkList InfoBubbleAcceleratorsGtk::GetList() {
28 InfoBubbleAcceleratorGtkList accelerators; 28 InfoBubbleAcceleratorGtkList accelerators;
29 for (size_t i = 0; i < arraysize(InfoBubbleAcceleratorGtkTable); ++i) { 29 for (size_t i = 0; i < arraysize(InfoBubbleAcceleratorGtkTable); ++i) {
30 accelerators.push_back(InfoBubbleAcceleratorGtkTable[i]); 30 accelerators.push_back(InfoBubbleAcceleratorGtkTable[i]);
31 } 31 }
32 32
33 return accelerators; 33 return accelerators;
34 } 34 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/import_progress_dialog_gtk.cc ('k') | chrome/browser/ui/gtk/info_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698