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

Side by Side Diff: ui/base/keycodes/keyboard_code_conversion_gtk.h

Issue 7740048: Chrome Linux DRT nativeKeyCode helper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move keyboard_code_conversion_gtk.cc function comment to the header. Created 9 years, 4 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 /* 5 /*
6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
7 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 7 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
8 * Copyright (C) 2007 Holger Hans Peter Freyther 8 * Copyright (C) 2007 Holger Hans Peter Freyther
9 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 9 * Copyright (C) 2008 Collabora, Ltd. All rights reserved.
10 * Copyright (C) 2008, 2009 Google Inc. 10 * Copyright (C) 2008, 2009 Google Inc.
(...skipping 30 matching lines...) Expand all
41 #include "ui/base/ui_export.h" 41 #include "ui/base/ui_export.h"
42 42
43 typedef struct _GdkEventKey GdkEventKey; 43 typedef struct _GdkEventKey GdkEventKey;
44 44
45 namespace ui { 45 namespace ui {
46 46
47 UI_EXPORT KeyboardCode WindowsKeyCodeForGdkKeyCode(int keycode); 47 UI_EXPORT KeyboardCode WindowsKeyCodeForGdkKeyCode(int keycode);
48 48
49 UI_EXPORT int GdkKeyCodeForWindowsKeyCode(KeyboardCode keycode, bool shift); 49 UI_EXPORT int GdkKeyCodeForWindowsKeyCode(KeyboardCode keycode, bool shift);
50 50
51 // For WebKit DRT testing: simulate the native keycode for the given
52 // input |keycode|. Return the native keycode.
53 UI_EXPORT int GdkNativeKeyCodeForWindowsKeyCode(KeyboardCode keycode,
54 bool shift);
55
51 UI_EXPORT KeyboardCode KeyboardCodeFromGdkEventKey(GdkEventKey* event); 56 UI_EXPORT KeyboardCode KeyboardCodeFromGdkEventKey(GdkEventKey* event);
52 57
53 } // namespace ui 58 } // namespace ui
54 59
55 #endif // UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_GTK_H_ 60 #endif // UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/keycodes/keyboard_code_conversion_gtk.cc » ('j') | ui/base/keycodes/keyboard_code_conversion_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698