OLD | NEW |
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 Loading... |
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" | |
34 | 33 |
35 #include "core/platform/chromium/KeyboardCodes.h" | 34 #include "core/platform/chromium/KeyboardCodes.h" |
36 | 35 |
37 #include <gdk/gdkkeysyms.h> | 36 #include <gdk/gdkkeysyms.h> |
38 | 37 |
39 namespace WebCore { | 38 namespace WebCore { |
40 | 39 |
41 int windowsKeyCodeForKeyEvent(unsigned keycode) | 40 int windowsKeyCodeForKeyEvent(unsigned keycode) |
42 { | 41 { |
43 switch (keycode) { | 42 switch (keycode) { |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 case GDK_F22: | 426 case GDK_F22: |
428 case GDK_F23: | 427 case GDK_F23: |
429 case GDK_F24: | 428 case GDK_F24: |
430 return VKEY_F1 + (keycode - GDK_F1); | 429 return VKEY_F1 + (keycode - GDK_F1); |
431 default: | 430 default: |
432 return 0; | 431 return 0; |
433 } | 432 } |
434 } | 433 } |
435 | 434 |
436 } // namespace WebCore | 435 } // namespace WebCore |
OLD | NEW |