Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / test / chromedriver / keycode_text_conversion_ozone.cc
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.
4
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"
9
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;
18 }
19
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;
27 }