| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 #ifndef BLIMP_CLIENT_PUBLIC_RESOURCES_BLIMP_STRINGS_H_ | |
| 6 #define BLIMP_CLIENT_PUBLIC_RESOURCES_BLIMP_STRINGS_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "blimp/client/public/session/assignment.h" | |
| 10 | |
| 11 namespace blimp { | |
| 12 namespace string { | |
| 13 | |
| 14 // Utilities to access internal Blimp strings. | |
| 15 // | |
| 16 // 1. Conditional compile based on |enable_blimp_client| GN flag. | |
| 17 // if true, compiled with core/resources/blimp_strings.cc. | |
| 18 // if false, compiled with core/resources/dummy_blimp_strings.cc, which returns | |
| 19 // empty strings and doesn't build with internal resources. | |
| 20 // | |
| 21 // 2. Grit file generation. | |
| 22 // The |grit/blimp_strings.h| header defines the string id, | |
| 23 // and is auto-generated based on configuration in | |
| 24 // |blimp/client/core/resources/blimp_strings.grd|, and | |
| 25 // |tools/gritsettings/resource_ids|. | |
| 26 // The actual strings are defined in |blimp_strings.grd|. | |
| 27 // | |
| 28 // 3. Public external strings, can be directly included for | |
| 29 // |blimp/client/support/resources/blimp_strings.h|, and is generated from | |
| 30 // |blimp/client/support/resources| build target. | |
| 31 | |
| 32 // Converts an AssignmentRequestResult to human readable string. | |
| 33 base::string16 AssignmentResultErrorToString( | |
| 34 blimp::client::AssignmentRequestResult result); | |
| 35 | |
| 36 // Converts EndConnectionMessage::Reason to human readable string. | |
| 37 base::string16 EndConnectionMessageToString(int reason); | |
| 38 | |
| 39 } // namespace string | |
| 40 } // namespace blimp | |
| 41 | |
| 42 #endif // BLIMP_CLIENT_PUBLIC_RESOURCES_BLIMP_STRINGS_H_ | |
| OLD | NEW |