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

Side by Side Diff: ui/events/keycodes/keyboard_code_conversion_x.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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 "ui/events/keycodes/keyboard_code_conversion_x.h" 5 #include "ui/events/keycodes/keyboard_code_conversion_x.h"
6 6
7 #define XK_3270 // for XK_3270_BackTab 7 #define XK_3270 // for XK_3270_BackTab
8 #include <X11/keysym.h> 8 #include <X11/keysym.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 #include <X11/Xutil.h> 10 #include <X11/Xutil.h>
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 return VKEY_F14; 364 return VKEY_F14;
365 case XF86XK_Launch6: 365 case XF86XK_Launch6:
366 return VKEY_F15; 366 return VKEY_F15;
367 case XF86XK_Launch7: 367 case XF86XK_Launch7:
368 return VKEY_F16; 368 return VKEY_F16;
369 case XF86XK_Launch8: 369 case XF86XK_Launch8:
370 return VKEY_F17; 370 return VKEY_F17;
371 case XF86XK_Launch9: 371 case XF86XK_Launch9:
372 return VKEY_F18; 372 return VKEY_F18;
373 373
374 #if defined(TOOLKIT_GTK)
375 case XF86XK_Refresh:
376 case XF86XK_History:
377 case XF86XK_OpenURL:
378 case XF86XK_AddFavorite:
379 case XF86XK_Go:
380 case XF86XK_ZoomIn:
381 case XF86XK_ZoomOut:
382 // ui::AcceleratorGtk tries to convert the XF86XK_ keysyms on Chrome
383 // startup. It's safe to return VKEY_UNKNOWN here since ui::AcceleratorGtk
384 // also checks a Gdk keysym. http://crbug.com/109843
385 return VKEY_UNKNOWN;
386 #endif
387
388 // For supporting multimedia buttons on a USB keyboard. 374 // For supporting multimedia buttons on a USB keyboard.
389 case XF86XK_Back: 375 case XF86XK_Back:
390 return VKEY_BROWSER_BACK; 376 return VKEY_BROWSER_BACK;
391 case XF86XK_Forward: 377 case XF86XK_Forward:
392 return VKEY_BROWSER_FORWARD; 378 return VKEY_BROWSER_FORWARD;
393 case XF86XK_Reload: 379 case XF86XK_Reload:
394 return VKEY_BROWSER_REFRESH; 380 return VKEY_BROWSER_REFRESH;
395 case XF86XK_Stop: 381 case XF86XK_Stop:
396 return VKEY_BROWSER_STOP; 382 return VKEY_BROWSER_STOP;
397 case XF86XK_Search: 383 case XF86XK_Search:
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 case VKEY_KBD_BRIGHTNESS_UP: 804 case VKEY_KBD_BRIGHTNESS_UP:
819 return XF86XK_KbdBrightnessUp; 805 return XF86XK_KbdBrightnessUp;
820 806
821 default: 807 default:
822 LOG(WARNING) << "Unknown keycode:" << keycode; 808 LOG(WARNING) << "Unknown keycode:" << keycode;
823 return 0; 809 return 0;
824 } 810 }
825 } 811 }
826 812
827 } // namespace ui 813 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698