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

Side by Side Diff: chrome/test/webdriver/webdriver_key_converter.cc

Issue 6614023: Convert ChromeDriver to use only the JSON automation interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Pawel's additional comments Created 9 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) 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 #include "chrome/test/webdriver/webdriver_key_converter.h" 5 #include "chrome/test/webdriver/webdriver_key_converter.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/common/automation_constants.h" 8 #include "chrome/common/automation_constants.h"
9 #include "chrome/test/automation/automation_json_requests.h"
9 #include "chrome/test/webdriver/keycode_text_conversion.h" 10 #include "chrome/test/webdriver/keycode_text_conversion.h"
10 11
11 namespace { 12 namespace {
12 13
13 // TODO(kkania): Use this in KeyMap. 14 // TODO(kkania): Use this in KeyMap.
14 // Ordered list of all the key codes corresponding to special WebDriver keys. 15 // Ordered list of all the key codes corresponding to special WebDriver keys.
15 // These WebDriver keys are defined in the Unicode Private Use Area. 16 // These WebDriver keys are defined in the Unicode Private Use Area.
16 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/e lement/:id/value 17 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/e lement/:id/value
17 const ui::KeyboardCode kSpecialWebDriverKeys[] = { 18 const ui::KeyboardCode kSpecialWebDriverKeys[] = {
18 ui::VKEY_UNKNOWN, 19 ui::VKEY_UNKNOWN,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 key_events->push_back(CreateKeyUpEvent(key_code, all_modifiers)); 230 key_events->push_back(CreateKeyUpEvent(key_code, all_modifiers));
230 231
231 if (need_shift_key) { 232 if (need_shift_key) {
232 key_events->push_back( 233 key_events->push_back(
233 CreateKeyUpEvent(ui::VKEY_SHIFT, sticky_modifiers)); 234 CreateKeyUpEvent(ui::VKEY_SHIFT, sticky_modifiers));
234 } 235 }
235 } 236 }
236 } 237 }
237 238
238 } // namespace webdriver 239 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/session.cc ('k') | chrome/test/webdriver/webdriver_key_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698