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

Side by Side Diff: chrome/test/chromedriver/keycode_text_conversion_x.cc

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/test/chromedriver/keycode_text_conversion.h" 5 #include "chrome/test/chromedriver/keycode_text_conversion.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <X11/keysym.h> 8 #include <X11/keysym.h>
9 #include <X11/XKBlib.h> 9 #include <X11/XKBlib.h>
10 #include <X11/Xlib.h> 10 #include <X11/Xlib.h>
11 #include <X11/Xutil.h> 11 #include <X11/Xutil.h>
12 12
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/test/chromedriver/ui_events.h" 14 #include "chrome/test/chromedriver/chrome/ui_events.h"
15 #include "ui/base/keycodes/keyboard_code_conversion_x.h" 15 #include "ui/base/keycodes/keyboard_code_conversion_x.h"
16 #include "ui/base/x/x11_util.h" 16 #include "ui/base/x/x11_util.h"
17 17
18 namespace { 18 namespace {
19 19
20 struct KeyCodeAndXKeyCode { 20 struct KeyCodeAndXKeyCode {
21 ui::KeyboardCode key_code; 21 ui::KeyboardCode key_code;
22 int x_key_code; 22 int x_key_code;
23 }; 23 };
24 24
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 found = true; 238 found = true;
239 break; 239 break;
240 } 240 }
241 } 241 }
242 if (found) { 242 if (found) {
243 *key_code = test_code; 243 *key_code = test_code;
244 *necessary_modifiers = test_modifiers; 244 *necessary_modifiers = test_modifiers;
245 } 245 }
246 return found; 246 return found;
247 } 247 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/keycode_text_conversion_win.cc ('k') | chrome/test/chromedriver/local_state.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698