Migrate chromium speech synthesizer code (TTS) to chormium_impl
authorPiotr Tworek <p.tworek@samsung.com>
Tue, 3 Mar 2015 08:06:45 +0000 (17:06 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Can't test it properly now as I don't have a tizen mobile device, but
the code belongs in chromium_impl, not ewk directory.

Change-Id: I85318e6a175ddfa23169cf938c9f540e2e7d8cbb
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
tizen_src/build/system.gyp
tizen_src/chromium_impl/content/browser/speech/tts_message_filter_efl.cc [moved from tizen_src/impl/browser/speech/tts_message_filter_efl.cc with 97% similarity, mode: 0644]
tizen_src/chromium_impl/content/browser/speech/tts_message_filter_efl.h [moved from tizen_src/impl/browser/speech/tts_message_filter_efl.h with 94% similarity, mode: 0644]
tizen_src/chromium_impl/content/browser/speech/tts_tizen.cc [moved from tizen_src/impl/browser/speech/tts_tizen.cc with 99% similarity, mode: 0644]
tizen_src/chromium_impl/content/browser/speech/tts_tizen.h [moved from tizen_src/impl/browser/speech/tts_tizen.h with 95% similarity, mode: 0644]
tizen_src/chromium_impl/content/common/tts_messages_efl.h [moved from tizen_src/impl/common/tts_messages_efl.h with 97% similarity, mode: 0644]
tizen_src/chromium_impl/content/common/tts_utterance_request_efl.cc [moved from tizen_src/impl/common/tts_utterance_request_efl.cc with 89% similarity, mode: 0644]
tizen_src/chromium_impl/content/common/tts_utterance_request_efl.h [moved from tizen_src/impl/common/tts_utterance_request_efl.h with 100% similarity, mode: 0644]
tizen_src/chromium_impl/content/content_efl.gypi
tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.cc [moved from tizen_src/impl/renderer/tts_dispatcher_efl.cc with 97% similarity, mode: 0644]
tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.h [moved from tizen_src/impl/renderer/tts_dispatcher_efl.h with 100% similarity, mode: 0644]

index 7279a7a..8e61e51 100644 (file)
           '<!@(<(pkg-config) --libs-only-l <(dependent_pkgs))',
         ],
       },
-    },
+    }, # gstreamer
+    {
+      'target_name': 'tts',
+      'type': 'none',
+      'conditions': [
+        ['building_for_tizen_mobile==1', {
+          'direct_dependent_settings': {
+            'cflags': [
+              '<!@(<(pkg-config) --cflags tts)',
+            ],
+          },
+          'link_settings': {
+            'ldflags': [
+              '<!@(<(pkg-config) --libs-only-L --libs-only-other tts)',
+            ],
+            'libraries': [
+              '<!@(<(pkg-config) --libs-only-l tts)',
+            ],
+          },
+        }],
+      ],
+    }, # tts
   ],
 }
old mode 100755 (executable)
new mode 100644 (file)
similarity index 97%
rename from tizen_src/impl/browser/speech/tts_message_filter_efl.cc
rename to tizen_src/chromium_impl/content/browser/speech/tts_message_filter_efl.cc
index 0c845d3..332bbee
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "browser/speech/tts_message_filter_efl.h"
+#include "content/browser/speech/tts_message_filter_efl.h"
 
 #include "base/bind.h"
 #include "content/public/browser/browser_context.h"
old mode 100755 (executable)
new mode 100644 (file)
similarity index 94%
rename from tizen_src/impl/browser/speech/tts_message_filter_efl.h
rename to tizen_src/chromium_impl/content/browser/speech/tts_message_filter_efl.h
index 5e95202..8e88943
@@ -7,8 +7,8 @@
 
 #include "base/memory/scoped_ptr.h"
 #include "base/memory/weak_ptr.h"
-#include "browser/speech/tts_tizen.h"
-#include "common/tts_messages_efl.h"
+#include "content/browser/speech/tts_tizen.h"
+#include "content/common/tts_messages_efl.h"
 #include "content/public/browser/browser_message_filter.h"
 
 namespace content {
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from tizen_src/impl/browser/speech/tts_tizen.cc
rename to tizen_src/chromium_impl/content/browser/speech/tts_tizen.cc
index c21b70d..0a7a0f4
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "browser/speech/tts_tizen.h"
+#include "content/browser/speech/tts_tizen.h"
 
 #include <vector>
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 95%
rename from tizen_src/impl/browser/speech/tts_tizen.h
rename to tizen_src/chromium_impl/content/browser/speech/tts_tizen.h
index a3ee33e..1b4d9bd
@@ -9,8 +9,8 @@
 typedef int tts_voice_type_e;
 #endif
 
-#include "browser/speech/tts_message_filter_efl.h"
-#include "common/tts_utterance_request_efl.h"
+#include "content/browser/speech/tts_message_filter_efl.h"
+#include "content/common/tts_utterance_request_efl.h"
 
 #include <tts.h>
 #include <vector>
old mode 100755 (executable)
new mode 100644 (file)
similarity index 97%
rename from tizen_src/impl/common/tts_messages_efl.h
rename to tizen_src/chromium_impl/content/common/tts_messages_efl.h
index 74c2579..512616c
@@ -4,7 +4,7 @@
 
 // Multiply-included message file, hence no include guard.
 
-#include "common/tts_utterance_request_efl.h"
+#include "content/common/tts_utterance_request_efl.h"
 #include "ipc/ipc_message_macros.h"
 #include "ipc/ipc_param_traits.h"
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 89%
rename from tizen_src/impl/common/tts_utterance_request_efl.cc
rename to tizen_src/chromium_impl/content/common/tts_utterance_request_efl.cc
index 609d094..fd7bbb7
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "tts_utterance_request_efl.h"
+#include "content/common/tts_utterance_request_efl.h"
 
 namespace content {
 
index 63dee17..b0b7a6d 100644 (file)
@@ -8,6 +8,7 @@
       '<(DEPTH)/tizen_src/build/system.gyp:ecore-x',
       '<(DEPTH)/tizen_src/build/system.gyp:capi-appfw-application',
       '<(DEPTH)/tizen_src/build/system.gyp:gstreamer',
+      '<(DEPTH)/tizen_src/build/system.gyp:tts',
     ],
     'external_content_browser_deps': [
       '<(DEPTH)/tizen_src/build/system.gyp:ecore',
       '<(DEPTH)/tizen_src/build/system.gyp:efl-assist',
       '<(DEPTH)/tizen_src/chromium_impl/efl/efl.gyp:window-factory',
       '<(DEPTH)/tizen_src/build/system.gyp:gstreamer',
+      '<(DEPTH)/tizen_src/build/system.gyp:tts',
+    ],
+    'external_content_renderer_deps': [
+      '<(DEPTH)/tizen_src/build/system.gyp:tts',
     ],
     'external_content_gpu_deps': [
       '<(DEPTH)/tizen_src/build/system.gyp:evas',
           'common/wrt/wrt_url_parse.h',
         ],
         'conditions': [
+          ['building_for_tizen_mobile==1', {
+            'sources': [
+              'common/tts_messages_efl.h',
+              'common/tts_utterance_request_efl.cc',
+              'common/tts_utterance_request_efl.h',
+            ],
+          }], # building_for_tizen_mobile==1
           ['building_for_tizen==1', {
             'sources': [
               'common/gpu/client/gpu_memory_buffer_impl_efl.cc',
@@ -71,7 +83,7 @@
               [ 'exclude', 'common/gpu/client/gpu_memory_buffer_impl_linux.cc$' ],
               [ 'exclude', 'common/gpu/gpu_memory_buffer_factory_linux.cc' ],
             ]
-          }],
+          }], # building_for_tizen==1
           ['tizen_multimedia_support==1', {
             'sources': [
               'common/media/efl/media_player_messages_enums_efl.h',
@@ -81,7 +93,7 @@
               'common/gpu/media/efl/tizen_video_encode_accelerator.h',
               'common/gpu/media/efl/tizen_video_encode_accelerator.cc',
             ],
-          }],
+          }], # tizen_multimedia_support==1
         ],
       }],
 
           'browser/renderer_host/web_event_factory_efl.cc',
         ],
         'conditions': [
+          ['building_for_tizen_mobile==1', {
+            'sources': [
+              'browser/speech/tts_message_filter_efl.cc',
+              'browser/speech/tts_message_filter_efl.h',
+              'browser/speech/tts_tizen.cc',
+              'browser/speech/tts_tizen.h',
+            ],
+          }], # building_for_tizen_mobile==1
           ['tizen_multimedia_support==1', {
             'sources': [
               'browser/media/media_web_contents_observer_efl.cc',
               'browser/media/efl/browser_media_player_manager_efl.cc',
               'browser/media/efl/browser_media_player_manager_efl.h',
             ],
-          }],
+          }], # tizen_multimedia_support==1
         ],
       }],
 
           '<(DEPTH)/content/renderer/external_popup_menu.h',
         ],
         'conditions': [
+          ['building_for_tizen_mobile==1', {
+            'sources': [
+              'renderer/tts_dispatcher_efl.cc',
+              'renderer/tts_dispatcher_efl.h',
+            ],
+          }], # building_for_tizen_mobile==1
           ['tizen_multimedia_support==1', {
             'sources/': [
               [ 'exclude', 'renderer/media/audio_decoder\\.(cc|h)$' ],
               'renderer/media/efl/renderer_media_player_manager_efl.cc',
               'renderer/media/efl/renderer_media_player_manager_efl.h',
             ],
-          }],
+          }], # tizen_multimedia_support==1
         ],
       }],
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 97%
rename from tizen_src/impl/renderer/tts_dispatcher_efl.cc
rename to tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.cc
index 0276a66..ceeff6c
@@ -2,13 +2,13 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "renderer/tts_dispatcher_efl.h"
+#include "content/renderer/tts_dispatcher_efl.h"
 
 #include "base/logging.h"
 #include "base/basictypes.h"
 #include "base/strings/utf_string_conversions.h"
-#include "common/tts_messages_efl.h"
-#include "common/tts_utterance_request_efl.h"
+#include "content/common/tts_messages_efl.h"
+#include "content/common/tts_utterance_request_efl.h"
 #include "content/public/renderer/render_thread.h"
 #include "third_party/WebKit/public/platform/WebCString.h"
 #include "third_party/WebKit/public/platform/WebSpeechSynthesisUtterance.h"