| 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" | 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|