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

Side by Side Diff: Source/platform/KeyCodeConversionGtk.cpp

Issue 106103009: Move remaining KeyCode files to platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add missing include Created 7 years 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 | « Source/platform/KeyCodeConversionAndroid.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 3 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
4 * Copyright (C) 2007 Holger Hans Peter Freyther 4 * Copyright (C) 2007 Holger Hans Peter Freyther
5 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 5 * Copyright (C) 2008 Collabora, Ltd. All rights reserved.
6 * Copyright (C) 2008, 2009 Google Inc. 6 * Copyright (C) 2008, 2009 Google Inc.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 12 matching lines...) Expand all
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 // windowsKeyCodeForKeyEvent is copied from platform/gtk/KeyEventGtk.cpp 30 // windowsKeyCodeForKeyEvent is copied from platform/gtk/KeyEventGtk.cpp
31 31
32 #include "config.h" 32 #include "config.h"
33 #include "core/platform/chromium/KeyCodeConversion.h" 33
34 #include "platform/KeyCodeConversion.h"
34 35
35 #include "platform/KeyboardCodes.h" 36 #include "platform/KeyboardCodes.h"
36 37
37 #include <gdk/gdkkeysyms.h> 38 #include <gdk/gdkkeysyms.h>
38 39
39 namespace WebCore { 40 namespace WebCore {
40 41
41 int windowsKeyCodeForKeyEvent(unsigned keycode) 42 int windowsKeyCodeForKeyEvent(unsigned keycode)
42 { 43 {
43 switch (keycode) { 44 switch (keycode) {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 case GDK_F22: 428 case GDK_F22:
428 case GDK_F23: 429 case GDK_F23:
429 case GDK_F24: 430 case GDK_F24:
430 return VKEY_F1 + (keycode - GDK_F1); 431 return VKEY_F1 + (keycode - GDK_F1);
431 default: 432 default:
432 return 0; 433 return 0;
433 } 434 }
434 } 435 }
435 436
436 } // namespace WebCore 437 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/platform/KeyCodeConversionAndroid.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698