[M120 Migration] Set "background,music" initial value false 24/307124/2
authorxiaofang <fang.xiao@samsung.com>
Tue, 23 Aug 2022 08:00:14 +0000 (16:00 +0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 7 Mar 2024 07:06:29 +0000 (07:06 +0000)
Migration from:
https://review.tizen.org/gerrit/271349

Change-Id: Id421b30c45e39d833803e2369ffdaa9eefbcb370
Signed-off-by: yanqing.lu <yanqing.lu@samsung.com>
tizen_src/ewk/efl_integration/browser/tizen_extensible_host.cc
tizen_src/ewk/efl_integration/renderer/tizen_extensible.cc

index fc6173e..921cc8f 100644 (file)
@@ -17,22 +17,19 @@ TizenExtensibleHost* TizenExtensibleHost::GetInstance() {
 
 TizenExtensibleHost::TizenExtensibleHost()
     : extensible_api_table_{
-          {"background,music", true},
-          {"background,vibration", false},
-          {"block,multimedia,on,call", false},
-          {"csp", false},
-          {"encrypted,database", false},
-          {"fullscreen", false},
-          {"mediastream,record", false},
-          {"media,volume,control", false},
-          {"prerendering,for,rotation", false},
-          {"rotate,camera,view", true},
-          {"rotation,lock", false},
-          {"sound,mode", false},
-          {"support,fullscreen", true},
-          {"visibility,suspend", false},
-          {"xwindow,for,fullscreen,video", false},
-          {"support,multimedia", true},
+// Default values should be the same as in tizen_extensible.cc
+#if BUILDFLAG(IS_TIZEN_TV)
+      {"background,music", false},
+#else
+      {"background,music", true},
+#endif
+      {"background,vibration", false}, {"block,multimedia,on,call", false},
+      {"csp", false}, {"encrypted,database", false}, {"fullscreen", false},
+      {"mediastream,record", false}, {"media,volume,control", false},
+      {"prerendering,for,rotation", false}, {"rotate,camera,view", true},
+      {"rotation,lock", false}, {"sound,mode", false},
+      {"support,fullscreen", true}, {"visibility,suspend", false},
+      {"xwindow,for,fullscreen,video", false}, {"support,multimedia", true},
       } {}
 
 TizenExtensibleHost::~TizenExtensibleHost() {}
index 8f764ab..306e0cc 100644 (file)
@@ -6,22 +6,19 @@
 
 TizenExtensible::TizenExtensible() :
     extensible_api_table_ {
-        { "background,music", true },
-        { "background,vibration", false },
-        { "block,multimedia,on,call", false},
-        { "csp", false },
-        { "encrypted,database", false },
-        { "fullscreen", false },
-        { "mediastream,record", false },
-        { "media,volume,control", false },
-        { "prerendering,for,rotation", false },
-        { "rotate,camera,view", true },
-        { "rotation,lock", false },
-        { "sound,mode", false },
-        { "support,fullscreen", true },
-        { "visibility,suspend", false },
-        { "xwindow,for,fullscreen,video", false },
-        { "support,multimedia", true },
+// Default values should be the same as in tizen_extensible_host.cc
+#if BUILDFLAG(IS_TIZEN_TV)
+      {"background,music", false},
+#else
+      {"background,music", true},
+#endif
+      {"background,vibration", false}, {"block,multimedia,on,call", false},
+      {"csp", false}, {"encrypted,database", false}, {"fullscreen", false},
+      {"mediastream,record", false}, {"media,volume,control", false},
+      {"prerendering,for,rotation", false}, {"rotate,camera,view", true},
+      {"rotation,lock", false}, {"sound,mode", false},
+      {"support,fullscreen", true}, {"visibility,suspend", false},
+      {"xwindow,for,fullscreen,video", false}, {"support,multimedia", true},
     },
     initialized_(false) {
 }