2 * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef BROWSER_POPUP_STRING_H_
19 #define BROWSER_POPUP_STRING_H_
21 #include <initializer_list>
24 #include "build/build_config.h"
28 namespace popup_string {
30 extern const char kPopupTitleAuthRequest[];
31 extern const char kPopupTitleCert[];
32 extern const char kPopupTitleGeoLocation[];
33 extern const char kPopupTitleUserMedia[];
34 extern const char kPopupTitleWebNotification[];
36 extern const char kPopupBodyAuthRequest[];
37 extern const char kPopupBodyCert[];
38 extern const char kPopupBodyGeoLocation[];
39 extern const char kPopupBodyUserMedia[];
40 extern const char kPopupBodyWebNotification[];
42 extern const char kPopupCheckRememberPreference[];
44 extern const char kPopupLabelAuthusername[];
45 extern const char kPopupLabelPassword[];
47 extern const char kPopupButtonOk[];
48 extern const char kPopupButtonLogin[];
49 extern const char kPopupButtonCancel[];
50 extern const char kPopupButtonAllow[];
51 extern const char kPopupButtonDeny[];
52 extern const char kPopupBodyLocalHost[];
54 #if BUILDFLAG(IS_TIZEN_TV)
55 extern const char kPressButtonSearch[];
56 extern const char kSpeechRecognition[];
57 extern const char kMicIcon[];
60 std::string GetText(const std::string& msg_id);
61 std::string replacePS(std::initializer_list<std::string> strs);
63 #if BUILDFLAG(IS_TIZEN_TV)
64 std::string GetTextAndReplace(const std::string& msg_id,
65 const std::string& replacement);
68 } // namespace popup_string
72 #endif // BROWSER_POPUP_STRING_H_