[WRTjs] Refactor popup
[platform/framework/web/chromium-efl.git] / wrt / src / browser / popup_string.h
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17
18 #ifndef BROWSER_POPUP_STRING_H_
19 #define BROWSER_POPUP_STRING_H_
20
21 #include <initializer_list>
22 #include <string>
23
24 #include "build/build_config.h"
25
26 namespace wrt {
27
28 namespace popup_string {
29
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[];
35
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[];
41
42 extern const char kPopupCheckRememberPreference[];
43
44 extern const char kPopupLabelAuthusername[];
45 extern const char kPopupLabelPassword[];
46
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[];
53
54 #if BUILDFLAG(IS_TIZEN_TV)
55 extern const char kPressButtonSearch[];
56 extern const char kSpeechRecognition[];
57 extern const char kMicIcon[];
58 #endif
59
60 std::string GetText(const std::string& msg_id);
61 std::string replacePS(std::initializer_list<std::string> strs);
62
63 #if BUILDFLAG(IS_TIZEN_TV)
64 std::string GetTextAndReplace(const std::string& msg_id,
65                               const std::string& replacement);
66 #endif
67
68 }  // namespace popup_string
69
70 }  // namespace wrt
71
72 #endif  // BROWSER_POPUP_STRING_H_