Roll src/third_party/WebKit bf18a82:a9cee16 (svn 185297:185304)
[chromium-blink-merge.git] / chrome / test / chromedriver / keycode_text_conversion_ozone.cc
blobfa47f9ad1f908635ed52adb9afc2305eeb06dbda
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/logging.h"
6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/test/chromedriver/chrome/ui_events.h"
8 #include "chrome/test/chromedriver/keycode_text_conversion.h"
10 // TODO(arunprasadr) Implement these functions properly for ozone platforms.
11 bool ConvertKeyCodeToText(
12 ui::KeyboardCode key_code, int modifiers, std::string* text,
13 std::string* error_msg) {
14 *text = std::string();
15 *error_msg = std::string("Not Implemented");
16 NOTIMPLEMENTED();
17 return false;
20 bool ConvertCharToKeyCode(
21 base::char16 key, ui::KeyboardCode* key_code, int *necessary_modifiers,
22 std::string* error_msg) {
23 *error_msg = std::string("Not Implemented");
24 *necessary_modifiers = 0;
25 NOTIMPLEMENTED();
26 return false;