Fix mouse warp with 2x displays
[chromium-blink-merge.git] / remoting / host / host_exit_codes.cc
blob4e206a58d18003969b2b314bc6a36073c03b7c8b
1 // Copyright 2013 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 "remoting/host/host_exit_codes.h"
7 #include "remoting/protocol/name_value_map.h"
9 using remoting::protocol::NameMapElement;
11 namespace remoting {
13 const NameMapElement<HostExitCodes> kHostExitCodeStrings[] = {
14 { kSuccessExitCode, "SUCCESS_EXIT" },
15 { kInitializationFailed, "INITIALIZATION_FAILED" },
16 { kInvalidHostConfigurationExitCode, "INVALID_HOST_CONFIGURATION" },
17 { kInvalidHostIdExitCode, "INVALID_HOST_ID" },
18 { kInvalidOauthCredentialsExitCode, "INVALID_OAUTH_CREDENTIALS" },
19 { kInvalidHostDomainExitCode, "INVALID_HOST_DOMAIN" },
20 { kLoginScreenNotSupportedExitCode, "LOGIN_SCREEN_NOT_SUPPORTED" },
21 { kUsernameMismatchExitCode, "USERNAME_MISMATCH" },
24 const char* ExitCodeToString(HostExitCodes exit_code) {
25 return ValueToName(kHostExitCodeStrings, exit_code);
28 } // namespace remoting