[M67 Dev][Tizen] Fix compiler errors
authorChandan Padhi <c.padhi@samsung.com>
Fri, 3 Aug 2018 08:33:26 +0000 (01:33 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 9 Aug 2018 00:33:16 +0000 (17:33 -0700)
This commit resolves compiler errors for tizen standard profile.

This also includes changes from https://review.tizen.org/gerrit/#/c/172051/.

Change-Id: If3cc715d36e71c7bdf1a04f912704f13f3294ae8
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
41 files changed:
base/BUILD.gn
build/config/compiler/BUILD.gn
build/config/crypto.gni
build/config/linux/pkg_config.gni
chrome/browser/resources/safe_browsing/BUILD.gn
chrome/browser/resources/safe_browsing/gen_file_type_proto.py
components/policy/core/browser/browser_policy_connector.cc
components/policy/tools/generate_policy_source.py
content/common/BUILD.gn
packaging/chromium-efl.spec
services/resource_coordinator/memory_instrumentation/queued_request_dispatcher.cc
third_party/webrtc/webrtc.gni
third_party/webrtc_overrides/BUILD.gn
tizen_src/build/gn_chromiumefl.sh
tizen_src/chromium_impl/content/browser/browser_efl.gni
tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.cc
tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.h
tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_shared_memory_tizen.cc
tizen_src/chromium_impl/content/common/common_efl.gni
tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.cc
tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.h
tizen_src/chromium_impl/media/capture/video/tizen/video_capture_device_tizen.cc
tizen_src/chromium_impl/media/capture/video/tizen/video_capture_device_tizen.h
tizen_src/chromium_impl/ui/gl/efl_pixmap.h
tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.cc
tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.h
tizen_src/chromium_impl/ui/ui_efl.gni
tizen_src/ewk/efl_integration/BUILD.gn
tizen_src/ewk/efl_integration/command_line_efl.cc
tizen_src/ewk/efl_integration/content_browser_client_efl.cc
tizen_src/ewk/efl_integration/renderer/content_renderer_client_efl.cc
tizen_src/ewk/efl_integration/web_contents_delegate_efl.cc
tizen_src/ewk/efl_webview_app/BUILD.gn
tizen_src/ewk/efl_webview_app/app.c
tizen_src/ewk/efl_webview_app/mini_browser.c
tizen_src/ewk/ubrowser/BUILD.gn
tools/grit/grit/format/gzip_string.py
tools/variations/fieldtrial_to_struct.py
ui/gfx/native_pixmap_handle.cc
ui/gl/features.gni
ui/ozone/common/BUILD.gn

index 4f8c854..af7a81a 100644 (file)
@@ -1523,7 +1523,7 @@ jumbo_component("base") {
       ":base_win_linker_flags",
       "//tools/win/DebugVisualizers:chrome",
     ]
-  } else if ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi) {
+  } else if (!is_tizen && ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi)) {
     # Non-Windows.
     deps += [ "//base/third_party/libevent" ]
   }
index 0217333..7586685 100644 (file)
@@ -359,7 +359,7 @@ config("compiler") {
 
   # Linux/Android/Fuchsia common flags setup.
   # ---------------------------------
-  if (is_linux || is_android || is_fuchsia) {
+  if (is_linux || is_android || is_fuchsia || is_tizen) {
     if (use_pic) {
       cflags += [ "-fPIC" ]
       ldflags += [ "-fPIC" ]
index a3d52de..f17c330 100644 (file)
@@ -12,4 +12,4 @@
 # to set up feature flags.
 
 # True if NSS is used for certificate handling.
-use_nss_certs = is_linux
+use_nss_certs = is_linux || is_tizen
index edf0752..a7dfa6e 100644 (file)
@@ -101,14 +101,15 @@ template("pkg_config") {
     }
 
     pkgresult = exec_script(pkg_config_script, args, "value")
+    include_dirs = pkgresult[0]
     cflags = pkgresult[1]
 
     # We want the system include paths to use -isystem instead of -I to suppress
     # warnings in those headers.
-    foreach(include, pkgresult[0]) {
-      include_relativized = rebase_path(include, root_build_dir)
-      cflags += [ "-isystem$include_relativized" ]
-    }
+    #foreach(include, pkgresult[0]) {
+    #  include_relativized = rebase_path(include, root_build_dir)
+    #  cflags += [ "-isystem$include_relativized" ]
+    #}
 
     if (!defined(invoker.ignore_libs) || !invoker.ignore_libs) {
       libs = pkgresult[2]
index 89a3efd..9fb3e47 100644 (file)
@@ -29,6 +29,8 @@ action("make_file_types_protobuf") {
     target_arch = "mac"
   } else if (is_linux) {
     target_arch = "linux"
+  } else if (is_tizen) {
+    target_arch = "tizen"
   } else {
     # This will cause the script to fail.
     target_arch = "unknown_target_arch"
index 651ed98..ca9f089 100755 (executable)
@@ -33,6 +33,7 @@ def PlatformTypes():
     "linux": download_file_types_pb2.DownloadFileType.PLATFORM_LINUX,
     "mac": download_file_types_pb2.DownloadFileType.PLATFORM_MAC,
     "win": download_file_types_pb2.DownloadFileType.PLATFORM_WINDOWS,
+    "tizen": download_file_types_pb2.DownloadFileType.PLATFORM_ANY,
   }
 
 
index 3970c5e..a029d24 100644 (file)
@@ -112,10 +112,15 @@ void BrowserPolicyConnector::InitInternal(
     std::unique_ptr<DeviceManagementService> device_management_service) {
   device_management_service_ = std::move(device_management_service);
 
+#if defined(OS_TIZEN)
+  // FIXME: For EWK_BRINGUP.
+  NOTIMPLEMENTED();
+#else
   policy_statistics_collector_.reset(new policy::PolicyStatisticsCollector(
       base::Bind(&GetChromePolicyDetails), GetChromeSchema(),
       GetPolicyService(), local_state, base::ThreadTaskRunnerHandle::Get()));
   policy_statistics_collector_->Initialize();
+#endif
 }
 
 void BrowserPolicyConnector::Shutdown() {
index b83486e..1a7677e 100755 (executable)
@@ -360,10 +360,12 @@ def _WritePolicyConstantHeader(policies, os, f, risk_tags):
           'void SetEnterpriseUsersDefaults(PolicyMap* policy_map);\n'
           '#endif\n'
           '\n'
+          '#if !defined (OS_TIZEN)\n'
           '// Returns the PolicyDetails for |policy| if |policy| is a known\n'
           '// Chrome policy, otherwise returns NULL.\n'
           'const PolicyDetails* GetChromePolicyDetails('
               'const std::string& policy);\n'
+          '#endif\n'
           '\n'
           '// Returns the schema data of the Chrome policy schema.\n'
           'const internal::SchemaData* GetChromeSchemaData();\n'
@@ -827,7 +829,8 @@ def _WritePolicyConstantSource(policies, os, f, risk_tags):
   f.write('}\n'
           '#endif\n\n')
 
-  f.write('const PolicyDetails* GetChromePolicyDetails('
+  f.write('#if !defined (OS_TIZEN)\n'
+          'const PolicyDetails* GetChromePolicyDetails('
               'const std::string& policy) {\n'
           '  // First index in kPropertyNodes of the Chrome policies.\n'
           '  static const int begin_index = %s;\n'
@@ -855,7 +858,8 @@ def _WritePolicyConstantSource(policies, os, f, risk_tags):
           '  size_t index = it - begin;\n'
           '  CHECK_LT(index, arraysize(kChromePolicyDetails));\n'
           '  return kChromePolicyDetails + index;\n'
-          '}\n\n')
+          '}\n'
+          '#endif\n\n')
 
   f.write('namespace key {\n\n')
   for policy in policies:
index 8af23f3..4255d90 100644 (file)
@@ -618,7 +618,7 @@ mojom("mojo_bindings") {
   if (enable_ipc_logging) {
     enabled_features += [ "ipc_logging" ]
   }
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     enabled_features += [ "supports_thread_priorities" ]
   }
 
index e609acc..d993bb5 100644 (file)
@@ -30,6 +30,8 @@ Source1: content_shell.in
 %define _debug_mode 1
 %endif
 
+%define _smp_mflags -j%(echo $((`/usr/bin/getconf _NPROCESSORS_ONLN` / 2)))
+
 # Conditions for OBS build
 # The OBS build does not support running script 'build_{target}.sh'.
 # TODO: There is a bug regarding mismatched versions from repository.
@@ -63,6 +65,7 @@ Requires(post): /sbin/ldconfig
 Requires(post): xkeyboard-config
 Requires(postun): /sbin/ldconfig
 
+BuildRequires: binutils-gold
 BuildRequires: bison, edje-tools, expat-devel, flex, gettext, gperf, libcap-devel
 BuildRequires: libjpeg-turbo-devel, ninja, perl, python, python-xml, which
 BuildRequires: pkgconfig(capi-appfw-application)
@@ -95,6 +98,7 @@ BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
 BuildRequires: pkgconfig(harfbuzz)
 BuildRequires: pkgconfig(icu-i18n)
 BuildRequires: pkgconfig(libdrm)
+BuildRequires: pkgconfig(libevent)
 BuildRequires: pkgconfig(libexif)
 BuildRequires: pkgconfig(libffi)
 BuildRequires: pkgconfig(libpng)
@@ -143,15 +147,6 @@ BuildRequires: pkgconfig(xfixes)
 BuildRequires: pkgconfig(xtst)
 %endif
 
-# TODO(youngsoo): The binutils-gold crashes mini_browser on the Tizen v3.0 ARM 64 bit images.
-#                 Once fixed, use binutils-gold for all targets on Tizen v3.0.
-%ifnarch aarch64 %{arm} # [M48_2564] Temporary excluding arm architecture for fixing memory issue
-                        #            FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15383
-%if "%{chromium_efl_tizen_version}" == "3.0"
-BuildRequires: binutils-gold
-%endif
-%endif
-
 %if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" == "2.4"
 BuildRequires: pkgconfig(glesv2)
 %endif
@@ -285,6 +280,7 @@ if type ccache &> /dev/null; then
   source tizen_src/build/ccache_env.sh %{OUTPUT_BUILD_PROFILE_TARGET}
 fi
 
+%if 0%{!?_skip_gn:1}
 #gn generate
 #run standard gn_chromiumefl wrapper
 ./tizen_src/build/gn_chromiumefl.sh \
@@ -308,6 +304,7 @@ fi
  "component=\"shared_library\"" \
 %endif
   "is_tizen=true"
+%endif  # _skip_gn
 
 ninja %{_smp_mflags} -C"%{OUTPUT_FOLDER}" \
 %if 0%{?_enable_content_shell}
index cc8e4c6..8e21a75 100644 (file)
@@ -74,7 +74,7 @@ memory_instrumentation::mojom::OSMemDumpPtr CreatePublicOSDump(
   os_dump->resident_set_kb = internal_os_dump.resident_set_kb;
   os_dump->private_footprint_kb =
       CalculatePrivateFootprintKb(internal_os_dump, shared_resident_kb);
-#if defined(OS_LINUX) || defined(OS_ANDROID)
+#if (defined(OS_LINUX) || defined(OS_ANDROID)) && !defined(OS_TIZEN)
   os_dump->private_footprint_swap_kb =
       internal_os_dump.platform_private_footprint->vm_swap_bytes / 1024;
 #endif
index 4b7d3e1..3a4e5ed 100644 (file)
@@ -121,7 +121,7 @@ declare_args() {
   # also: |rtc_initialize_ffmpeg|.
   # CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING.
   # http://www.openh264.org, https://www.ffmpeg.org/
-  rtc_use_h264 = proprietary_codecs && !is_android && !is_ios
+  rtc_use_h264 = proprietary_codecs && !is_android && !is_ios && !is_tizen
 
   # By default, use normal platform audio support or dummy audio, but don't
   # use file-based audio playout and record.
index 6b2db19..7dfc3d2 100644 (file)
@@ -15,7 +15,6 @@ config("jingle_unexported_configs") {
     "../../third_party/webrtc_overrides",
     "../../testing/gtest/include",
     "../../third_party/libyuv/include",
-    "../../third_party/usrsctp/usrsctplib",
     "../../third_party/webrtc",
   ]
 }
@@ -135,7 +134,6 @@ source_set("libjingle_webrtc_common") {
   deps = [
     ":webrtc",
     "//third_party/libsrtp",
-    "//third_party/usrsctp",
     "//third_party/webrtc/media:rtc_media",
     "//third_party/webrtc/media:rtc_media_base",
     "//third_party/webrtc/modules/video_capture",
index e1d9b11..2143867 100755 (executable)
@@ -65,6 +65,7 @@ fi
 
 COMMON_GN_PARAMETERS="use_libjpeg_turbo=true
                       proprietary_codecs=true
+                      rtc_enable_sctp=false
                       use_alsa=false
                       use_aura=false
                       use_kerberos=false
@@ -84,7 +85,10 @@ COMMON_GN_PARAMETERS="use_libjpeg_turbo=true
                      "
 
 SYSTEM_DEPS="--system-libraries
+             libevent
              libpng
+             libxml
+             libxslt
              zlib
             "
 
@@ -144,8 +148,7 @@ add_tizen_flags() {
                                prebuilt_ld_gold_dir=\"${TOPDIR}/tizen_src/build/prebuild/tizen_v2.4_tv\"
                               "
   else
-    ADDITIONAL_GN_PARAMETERS+="linux_use_gold_flags=false
-                               prebuilt_ld_gold_dir=\"${TOPDIR}/tizen_src/build/prebuild\"
+    ADDITIONAL_GN_PARAMETERS+="linux_use_gold_flags=true
                               "
   fi
 
index a428609..77b3453 100644 (file)
@@ -111,12 +111,14 @@ external_content_browser_efl_sources += [
 ]
 
 if (is_tizen) {
-  external_exclude_content_browser_efl_sources = [ "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_shared_memory_tizen.cc" ]
+  external_exclude_content_browser_efl_sources = [
+    #  "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_shared_memory_tizen.cc"
+  ]
 
   external_content_browser_efl_sources += [
-    "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.cc",
-    "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.h",
-    "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_shared_memory_tizen.cc",
+    #  "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.cc",
+    #  "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_impl_tizen.h",
+    #  "//tizen_src/chromium_impl/content/browser/device_sensors/data_fetcher_shared_memory_tizen.cc",
     "//tizen_src/chromium_impl/content/browser/speech/tts_message_filter_efl.cc",
     "//tizen_src/chromium_impl/content/browser/speech/tts_message_filter_efl.h",
     "//tizen_src/chromium_impl/content/browser/speech/tts_tizen.cc",
index bc2d246..5ac64bf 100644 (file)
@@ -57,8 +57,8 @@ bool DataFetcherImplTizen::StartFetchingDeviceMotionData(
     base::AutoLock autolock(motion_buffer_lock_);
     device_motion_buffer_ = buffer;
   }
-  sensor_listener_set_event_cb(listener_accelerometer_,
-      kInertialSensorIntervalMicroseconds / 1000,
+  sensor_listener_set_event_cb(
+      listener_accelerometer_, kDeviceSensorIntervalMicroseconds / 1000,
       DataFetcherImplTizen::onAccelerationChanged, this);
   return Start(CONSUMER_TYPE_MOTION);
 }
@@ -81,8 +81,8 @@ bool DataFetcherImplTizen::StartFetchingDeviceOrientationData(
     base::AutoLock autolock(orientation_buffer_lock_);
     device_orientation_buffer_ = buffer;
   }
-  sensor_listener_set_event_cb(listener_orientation_,
-      kInertialSensorIntervalMicroseconds / 1000,
+  sensor_listener_set_event_cb(
+      listener_orientation_, kDeviceSensorIntervalMicroseconds / 1000,
       DataFetcherImplTizen::onOrientationChanged, this);
   bool success = Start(CONSUMER_TYPE_ORIENTATION);
 
@@ -156,11 +156,11 @@ void DataFetcherImplTizen::onOrientationChanged(sensor_h sensor,
   float roll = event->values[2];
 
   fetcher->device_orientation_buffer_->data.alpha = azimuth;
-  fetcher->device_orientation_buffer_->data.hasAlpha = true;
+  fetcher->device_orientation_buffer_->data.has_alpha = true;
   fetcher->device_orientation_buffer_->data.beta = pitch;
-  fetcher->device_orientation_buffer_->data.hasBeta = true;
+  fetcher->device_orientation_buffer_->data.has_beta = true;
   fetcher->device_orientation_buffer_->data.gamma = roll;
-  fetcher->device_orientation_buffer_->data.hasGamma = true;
+  fetcher->device_orientation_buffer_->data.has_gamma = true;
   fetcher->device_orientation_buffer_->seqlock.WriteEnd();
 
   if (!fetcher->is_orientation_buffer_ready_)
@@ -183,16 +183,23 @@ void DataFetcherImplTizen::onAccelerationChanged(sensor_h sensor,
 
   unsigned long long timestamp = event->timestamp;
 
-  double interval = static_cast<double>(self->last_motion_timestamp_ ?
-      (timestamp - self->last_motion_timestamp_) / 1000 :
-      kInertialSensorIntervalMicroseconds / 1000);
+  double interval = static_cast<double>(
+      self->last_motion_timestamp_
+          ? (timestamp - self->last_motion_timestamp_) / 1000
+          : kDeviceSensorIntervalMicroseconds / 1000);
   self->last_motion_timestamp_ = timestamp;
 
   if (self->has_last_motion_data_) {
-    const blink::WebDeviceMotionData* m = &self->last_motion_data_;
-    gravityX += (m->accelerationIncludingGravityX - m->accelerationX) * 0.8f;
-    gravityY += (m->accelerationIncludingGravityY - m->accelerationY) * 0.8f;
-    gravityZ += (m->accelerationIncludingGravityZ - m->accelerationZ) * 0.8f;
+    const DeviceMotionHardwareBuffer* m = self->last_motion_data_;
+    gravityX +=
+        (m->data.acceleration_including_gravity_x - m->data.acceleration_x) *
+        0.8f;
+    gravityY +=
+        (m->data.acceleration_including_gravity_x - m->data.acceleration_y) *
+        0.8f;
+    gravityZ +=
+        (m->data.acceleration_including_gravity_z - m->data.acceleration_z) *
+        0.8f;
     accelerationAvailable = true;
   }
 
@@ -209,31 +216,34 @@ void DataFetcherImplTizen::onAccelerationChanged(sensor_h sensor,
 
   self->device_motion_buffer_->seqlock.WriteBegin();
 
-  self->device_motion_buffer_->data.accelerationIncludingGravityX = x;
-  self->device_motion_buffer_->data.hasAccelerationIncludingGravityX = true;
-  self->device_motion_buffer_->data.accelerationIncludingGravityY = y;
-  self->device_motion_buffer_->data.hasAccelerationIncludingGravityY = true;
-  self->device_motion_buffer_->data.accelerationIncludingGravityZ = z;
-  self->device_motion_buffer_->data.hasAccelerationIncludingGravityZ = true;
-
-  self->device_motion_buffer_->data.accelerationX = x - gravityX;
-  self->device_motion_buffer_->data.hasAccelerationX = accelerationAvailable;
-  self->device_motion_buffer_->data.accelerationY = y - gravityY;
-  self->device_motion_buffer_->data.hasAccelerationY = accelerationAvailable;
-  self->device_motion_buffer_->data.accelerationZ = z - gravityZ;
-  self->device_motion_buffer_->data.hasAccelerationZ = accelerationAvailable;
-
-  self->device_motion_buffer_->data.rotationRateAlpha = alpha;
-  self->device_motion_buffer_->data.hasRotationRateAlpha = rotationRateAvailable;
-  self->device_motion_buffer_->data.rotationRateBeta = beta;
-  self->device_motion_buffer_->data.hasRotationRateBeta = rotationRateAvailable;
-  self->device_motion_buffer_->data.rotationRateGamma = gamma;
-  self->device_motion_buffer_->data.hasRotationRateGamma = rotationRateAvailable;
-
-  self->device_motion_buffer_->data.allAvailableSensorsAreActive =
+  self->device_motion_buffer_->data.acceleration_including_gravity_x = x;
+  self->device_motion_buffer_->data.has_acceleration_including_gravity_x = true;
+  self->device_motion_buffer_->data.acceleration_including_gravity_x = y;
+  self->device_motion_buffer_->data.has_acceleration_including_gravity_x = true;
+  self->device_motion_buffer_->data.acceleration_including_gravity_z = z;
+  self->device_motion_buffer_->data.has_acceleration_including_gravity_z = true;
+
+  self->device_motion_buffer_->data.acceleration_x = x - gravityX;
+  self->device_motion_buffer_->data.has_acceleration_x = accelerationAvailable;
+  self->device_motion_buffer_->data.acceleration_y = y - gravityY;
+  self->device_motion_buffer_->data.has_acceleration_y = accelerationAvailable;
+  self->device_motion_buffer_->data.acceleration_z = z - gravityZ;
+  self->device_motion_buffer_->data.has_acceleration_z = accelerationAvailable;
+
+  self->device_motion_buffer_->data.rotation_rate_alpha = alpha;
+  self->device_motion_buffer_->data.has_rotation_rate_alpha =
+      rotationRateAvailable;
+  self->device_motion_buffer_->data.rotation_rate_beta = beta;
+  self->device_motion_buffer_->data.has_rotation_rate_beta =
+      rotationRateAvailable;
+  self->device_motion_buffer_->data.rotation_rate_gamma = gamma;
+  self->device_motion_buffer_->data.has_rotation_rate_gamma =
+      rotationRateAvailable;
+
+  self->device_motion_buffer_->data.all_available_sensors_are_active =
       (accelerationAvailable && rotationRateAvailable);
 
-  self->last_motion_data_ = self->device_motion_buffer_->data;
+  self->last_motion_data_ = self->device_motion_buffer_;
   self->has_last_motion_data_ = true;
 
   self->device_motion_buffer_->data.interval = interval;
@@ -244,7 +254,7 @@ void DataFetcherImplTizen::onAccelerationChanged(sensor_h sensor,
 void DataFetcherImplTizen::SetOrientationBufferReadyStatus(bool ready) {
   device_orientation_buffer_->seqlock.WriteBegin();
   device_orientation_buffer_->data.absolute = ready;
-  device_orientation_buffer_->data.allAvailableSensorsAreActive = ready;
+  device_orientation_buffer_->data.all_available_sensors_are_active = ready;
   device_orientation_buffer_->seqlock.WriteEnd();
   is_orientation_buffer_ready_ = ready;
 }
index 3552481..18a259d 100644 (file)
@@ -8,9 +8,9 @@
 #include <sensor/sensor.h>
 
 #include "base/synchronization/lock.h"
-#include "content/browser/device_sensors/device_sensors_consts.h"
-#include "content/common/device_sensors/device_motion_hardware_buffer.h"
-#include "content/common/device_sensors/device_orientation_hardware_buffer.h"
+#include "device/sensors/device_sensors_consts.h"
+#include "device/sensors/public/cpp/device_motion_hardware_buffer.h"
+#include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
 
 namespace base {
 template<typename T> struct DefaultSingletonTraits;
@@ -18,6 +18,9 @@ template<typename T> struct DefaultSingletonTraits;
 
 namespace content {
 
+using namespace device;
+
+// FIXME: This class should be moved to device namespace.
 class DataFetcherImplTizen {
  public:
   static DataFetcherImplTizen* GetInstance();
@@ -46,7 +49,7 @@ class DataFetcherImplTizen {
 
   DeviceMotionHardwareBuffer* device_motion_buffer_;
   DeviceOrientationHardwareBuffer* device_orientation_buffer_;
-  blink::WebDeviceMotionData last_motion_data_;
+  DeviceMotionHardwareBuffer* last_motion_data_;
   bool has_last_motion_data_;
   unsigned long long last_motion_timestamp_;
   bool is_orientation_buffer_ready_;
index e58cb06..29e1cc2 100644 (file)
@@ -8,8 +8,8 @@
 
 #include "base/logging.h"
 #include "content/browser/device_sensors/data_fetcher_shared_memory.h"
-#include "content/common/device_sensors/device_motion_hardware_buffer.h"
-#include "content/common/device_sensors/device_orientation_hardware_buffer.h"
+#include "device/sensors/public/cpp/device_motion_hardware_buffer.h"
+#include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
 #include "tizen/system_info.h"
 
 namespace content {
index 702dd4a..ae9f1d6 100644 (file)
@@ -86,7 +86,7 @@ if (is_tizen && !ewk_bringup) {
     "//tizen_src/chromium_impl/content/common/gpu/gpu_memory_buffer_factory_efl.cc",
   ]
 
-  if (!wayland_bringup) {
+  if (!ewk_bringup) {
     external_content_common_efl_sources += [
       "//tizen_src/chromium_impl/content/common/gpu/client/gpu_memory_buffer_impl_efl_pixmap.cc",
       "//tizen_src/chromium_impl/content/common/gpu/client/gpu_memory_buffer_impl_efl_pixmap.h",
index bf0a051..11b731e 100644 (file)
@@ -9,13 +9,13 @@
 #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/blink/public/platform/WebCString.h"
-#include "third_party/blink/public/platform/WebSpeechSynthesisUtterance.h"
-#include "third_party/blink/public/platform/WebSpeechSynthesisVoice.h"
-#include "third_party/blink/public/platform/WebString.h"
-#include "third_party/blink/public/platform/WebVector.h"
+#include "third_party/blink/public/platform/web_speech_synthesis_utterance.h"
+#include "third_party/blink/public/platform/web_speech_synthesis_voice.h"
+#include "third_party/blink/public/platform/web_string.h"
+#include "third_party/blink/public/platform/web_vector.h"
 
 namespace content {
+
 int TtsDispatcherEfl::next_utterance_id_ = 1;
 
 static const std::vector<TtsVoice>& getDefaultVoiceList() {
@@ -55,37 +55,38 @@ bool TtsDispatcherEfl::OnControlMessageReceived(const IPC::Message& message) {
   return false;
 }
 
-void TtsDispatcherEfl::updateVoiceList() {
+void TtsDispatcherEfl::UpdateVoiceList() {
   content::RenderThread::Get()->Send(new TtsHostMsg_InitializeVoiceList());
 }
 
-void TtsDispatcherEfl::speak(const blink::WebSpeechSynthesisUtterance& web_utterance) {
+void TtsDispatcherEfl::Speak(
+    const blink::WebSpeechSynthesisUtterance& web_utterance) {
   int id = next_utterance_id_++;
 
   utterance_id_map_[id] = web_utterance;
 
   TtsUtteranceRequest utterance;
   utterance.id = id;
-  utterance.text = web_utterance.text().utf8();
-  if (!web_utterance.lang().isEmpty() &&
-      web_utterance.lang().utf8().at(2) == '-')
-    utterance.lang = web_utterance.lang().utf8().replace(2,1,"_");
-  utterance.voice = web_utterance.voice().utf8();
-  utterance.volume = web_utterance.volume();
-  utterance.rate = web_utterance.rate();
-  utterance.pitch = web_utterance.pitch();
+  utterance.text = web_utterance.GetText().Utf8();
+  if (!web_utterance.Lang().IsEmpty() &&
+      web_utterance.Lang().Utf8().at(2) == '-')
+    utterance.lang = web_utterance.Lang().Utf8().replace(2, 1, "_");
+  utterance.voice = web_utterance.Voice().Utf8();
+  utterance.volume = web_utterance.Volume();
+  utterance.rate = web_utterance.Rate();
+  utterance.pitch = web_utterance.Pitch();
   content::RenderThread::Get()->Send(new TtsHostMsg_Speak(utterance));
 }
 
-void TtsDispatcherEfl::pause() {
+void TtsDispatcherEfl::Pause() {
   content::RenderThread::Get()->Send(new TtsHostMsg_Pause());
 }
 
-void TtsDispatcherEfl::resume() {
+void TtsDispatcherEfl::Resume() {
   content::RenderThread::Get()->Send(new TtsHostMsg_Resume());
 }
 
-void TtsDispatcherEfl::cancel() {
+void TtsDispatcherEfl::Cancel() {
   content::RenderThread::Get()->Send(new TtsHostMsg_Cancel());
 }
 
@@ -100,13 +101,13 @@ blink::WebSpeechSynthesisUtterance TtsDispatcherEfl::FindUtterance(int utterance
 void TtsDispatcherEfl::OnSetVoiceList(const std::vector<TtsVoice>& voices) {
   blink::WebVector<blink::WebSpeechSynthesisVoice> out_voices(voices.size());
   for (size_t i = 0; i < voices.size(); ++i) {
-    out_voices[i].setVoiceURI(blink::WebString::fromUTF8(voices[i].voice_uri));
-    out_voices[i].setName(blink::WebString::fromUTF8(voices[i].name));
-    out_voices[i].setLanguage(blink::WebString::fromUTF8(voices[i].lang));
-    out_voices[i].setIsLocalService(voices[i].local_service);
-    out_voices[i].setIsDefault(voices[i].is_default);
+    out_voices[i].SetVoiceURI(blink::WebString::FromUTF8(voices[i].voice_uri));
+    out_voices[i].SetName(blink::WebString::FromUTF8(voices[i].name));
+    out_voices[i].SetLanguage(blink::WebString::FromUTF8(voices[i].lang));
+    out_voices[i].SetIsLocalService(voices[i].local_service);
+    out_voices[i].SetIsDefault(voices[i].is_default);
   }
-  synthesizer_client_->setVoiceList(out_voices);
+  synthesizer_client_->SetVoiceList(out_voices);
 }
 
 void TtsDispatcherEfl::OnDidStartSpeaking(int utterance_id) {
@@ -114,45 +115,45 @@ void TtsDispatcherEfl::OnDidStartSpeaking(int utterance_id) {
     return;
 
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
-  synthesizer_client_->didStartSpeaking(utterance);
+  synthesizer_client_->DidStartSpeaking(utterance);
 }
 
 void TtsDispatcherEfl::OnDidFinishSpeaking(int utterance_id) {
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
-  synthesizer_client_->didFinishSpeaking(utterance);
+  synthesizer_client_->DidFinishSpeaking(utterance);
   utterance_id_map_.erase(utterance_id);
 }
 
 void TtsDispatcherEfl::OnDidPauseSpeaking(int utterance_id) {
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
-  synthesizer_client_->didPauseSpeaking(utterance);
+  synthesizer_client_->DidPauseSpeaking(utterance);
 }
 
 void TtsDispatcherEfl::OnDidResumeSpeaking(int utterance_id) {
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
-  synthesizer_client_->didResumeSpeaking(utterance);
+  synthesizer_client_->DidResumeSpeaking(utterance);
 }
 
 void TtsDispatcherEfl::OnWordBoundary(int utterance_id, int char_index) {
   CHECK(char_index >= 0);
 
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
-  synthesizer_client_->wordBoundaryEventOccurred(
+  synthesizer_client_->WordBoundaryEventOccurred(
       utterance, static_cast<unsigned>(char_index));
 }
 
@@ -160,10 +161,10 @@ void TtsDispatcherEfl::OnSentenceBoundary(int utterance_id, int char_index) {
   CHECK(char_index >= 0);
 
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
-  synthesizer_client_->sentenceBoundaryEventOccurred(
+  synthesizer_client_->SentenceBoundaryEventOccurred(
       utterance, static_cast<unsigned>(char_index));
 }
 
@@ -173,32 +174,32 @@ void TtsDispatcherEfl::OnMarkerEvent(int utterance_id, int char_index) {
 
 void TtsDispatcherEfl::OnWasInterrupted(int utterance_id) {
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
   // The web speech API doesn't support "interrupted".
-  synthesizer_client_->didFinishSpeaking(utterance);
+  synthesizer_client_->DidFinishSpeaking(utterance);
   utterance_id_map_.erase(utterance_id);
 }
 
 void TtsDispatcherEfl::OnWasCancelled(int utterance_id) {
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
   // The web speech API doesn't support "cancelled".
-  synthesizer_client_->didFinishSpeaking(utterance);
+  synthesizer_client_->DidFinishSpeaking(utterance);
   utterance_id_map_.erase(utterance_id);
 }
 
 void TtsDispatcherEfl::OnSpeakingErrorOccurred(int utterance_id,
                                             const std::string& error_message) {
   blink::WebSpeechSynthesisUtterance utterance = FindUtterance(utterance_id);
-  if (utterance.isNull())
+  if (utterance.IsNull())
     return;
 
   // The web speech API doesn't support an error message.
-  synthesizer_client_->speakingErrorOccurred(utterance);
+  synthesizer_client_->SpeakingErrorOccurred(utterance);
   utterance_id_map_.erase(utterance_id);
 }
 
index e5db2f3..d3cd4dc 100644 (file)
@@ -11,8 +11,8 @@
 #include "base/containers/hash_tables.h"
 #include "content/common/content_export.h"
 #include "content/public/renderer/render_thread_observer.h"
-#include "third_party/blink/public/platform/WebSpeechSynthesizer.h"
-#include "third_party/blink/public/platform/WebSpeechSynthesizerClient.h"
+#include "third_party/blink/public/platform/web_speech_synthesizer.h"
+#include "third_party/blink/public/platform/web_speech_synthesizer_client.h"
 
 namespace IPC {
 class Message;
@@ -36,18 +36,17 @@ class CONTENT_EXPORT TtsDispatcherEfl
   explicit TtsDispatcherEfl(blink::WebSpeechSynthesizerClient* client);
 
  private:
-  virtual ~TtsDispatcherEfl();
+  ~TtsDispatcherEfl() override;
 
   // RenderThreadObserver override.
   bool OnControlMessageReceived(const IPC::Message& message) override;
 
   // blink::WebSpeechSynthesizer implementation.
-  void updateVoiceList() override;
-  void speak(const blink::WebSpeechSynthesisUtterance& utterance)
-      override;
-  void pause() override;
-  void resume() override;
-  void cancel() override;
+  void UpdateVoiceList() override;
+  void Speak(const blink::WebSpeechSynthesisUtterance& utterance) override;
+  void Pause() override;
+  void Resume() override;
+  void Cancel() override;
 
   blink::WebSpeechSynthesisUtterance FindUtterance(int utterance_id);
 
index 61ffa29..39ebae8 100644 (file)
@@ -225,6 +225,7 @@ void VideoCaptureDeviceTizen::StopAndDeAllocate() {
   worker_.Stop();
 }
 
+#if !defined(EWK_BRINGUP)
 camera_device_e VideoCaptureDeviceTizen::DeviceNameToCameraId(
     const VideoCaptureDevice::Name& device_name) {
   if (device_name.id().compare("0") == 0){
@@ -236,6 +237,7 @@ camera_device_e VideoCaptureDeviceTizen::DeviceNameToCameraId(
   }
   return static_cast<camera_device_e>(-1);
 }
+#endif
 
 std::string VideoCaptureDeviceTizen::GetCameraErrorMessage(int err_code) {
   for (size_t i = 0; i < arraysize(video_capture_err); i++) {
@@ -296,12 +298,14 @@ void VideoCaptureDeviceTizen::OnAllocateAndStart(int width,
 
   client_ = std::move(client);
 
+#if !defined(EWK_BRINGUP)
   if (CAMERA_ERROR_NONE !=
       camera_create(DeviceNameToCameraId(device_name_), &camera_)) {
     LOG(ERROR) << "Fail to create camera";
     SetErrorState("Fail to create camera");
     return;
   }
+#endif
 
   if (CAMERA_ERROR_NONE !=
       camera_set_display(camera_, CAMERA_DISPLAY_TYPE_NONE, NULL)) {
index 3aa0fec..a606c57 100644 (file)
@@ -32,8 +32,11 @@ class VideoCaptureDeviceTizen : public VideoCaptureDevice {
 
   virtual void StopAndDeAllocate() override;
 
+#if !defined(EWK_BRINGUP)
+  // FIXME: Name is undefined.
   static camera_device_e DeviceNameToCameraId(
     const VideoCaptureDevice::Name& device_name);
+#endif
 
   static std::string GetCameraErrorMessage(int err_code);
 
index 1b30409..9871098 100644 (file)
@@ -6,9 +6,7 @@
 #define UI_GL_EFL_PIXMAP_H_
 
 #include "base/containers/hash_tables.h"
-#include "base/containers/scoped_ptr_hash_map.h"
 #include "base/memory/ref_counted.h"
-#include "base/memory/scoped_vector.h"
 #include "ui/gfx/geometry/size.h"
 #include "ui/gl/gl_bindings.h"
 
index 51e9fb0..1b700a6 100644 (file)
@@ -58,6 +58,7 @@ bool GLImageEflPixmap::Initialize(unsigned long efl_pixmap_id) {
   return true;
 }
 
+#if !defined(EWK_BRINGUP)
 void GLImageEflPixmap::Destroy(bool have_context) {
   if (egl_image_ == EGL_NO_IMAGE_KHR)
     return;
@@ -74,6 +75,12 @@ void GLImageEflPixmap::Destroy(bool have_context) {
 gfx::Size GLImageEflPixmap::GetSize() {
   return size_;
 }
+#endif
+
+unsigned GLImageEflPixmap::GetInternalFormat() {
+  // FIXME: Check this for pixmap.
+  return -1;
+}
 
 bool GLImageEflPixmap::BindTexImage(unsigned target) {
   TRACE_EVENT0("gpu", "GLImageEflPixmap::BindTexImage");
@@ -104,6 +111,12 @@ bool GLImageEflPixmap::BindTexImage(unsigned target) {
   return true;
 }
 
+void GLImageEflPixmap::ReleaseTexImage(unsigned target) {}
+
+bool GLImageEflPixmap::CopyTexImage(unsigned target) {
+  return false;
+}
+
 bool GLImageEflPixmap::CopyTexSubImage(unsigned target,
                                        const gfx::Point& offset,
                                        const gfx::Rect& rect) {
@@ -118,4 +131,14 @@ bool GLImageEflPixmap::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
   return false;
 }
 
+void GLImageEflPixmap::Flush() {}
+
+void GLImageEflPixmap::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
+                                    uint64_t process_tracing_id,
+                                    const std::string& dump_name) {}
+
+GLImage::Type GLImageEflPixmap::GetType() const {
+  return Type::DXGI_IMAGE;
+}
+
 }  // namespace gl
index 8f85bb3..cfc9eb7 100644 (file)
@@ -19,20 +19,31 @@ class GL_EXPORT GLImageEflPixmap : public GLImage {
   bool Initialize(unsigned long efl_pixmap_id);
 
   // Overridden from GLImage:
-  virtual void Destroy(bool have_context) override;
-  virtual gfx::Size GetSize() override;
-  virtual bool BindTexImage(unsigned target) override;
-  virtual bool CopyTexSubImage(unsigned target,
-                               const gfx::Point& offset,
-                               const gfx::Rect& rect) override;
-  virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
-                                    int z_order,
-                                    gfx::OverlayTransform transform,
-                                    const gfx::Rect& bounds_rect,
-                                    const gfx::RectF& crop_rect) override;
+#if !defined(EWK_BRINGUP)
+  // This API is removed. Just keeping for reference.
+  void Destroy(bool have_context) override;
+#endif
+  gfx::Size GetSize() override;
+  unsigned GetInternalFormat() override;
+  bool BindTexImage(unsigned target) override;
+  void ReleaseTexImage(unsigned target) override;
+  bool CopyTexImage(unsigned target) override;
+  bool CopyTexSubImage(unsigned target,
+                       const gfx::Point& offset,
+                       const gfx::Rect& rect) override;
+  bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
+                            int z_order,
+                            gfx::OverlayTransform transform,
+                            const gfx::Rect& bounds_rect,
+                            const gfx::RectF& crop_rect) override;
+  void Flush() override;
+  void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
+                    uint64_t process_tracing_id,
+                    const std::string& dump_name) override;
+  Type GetType() const override;
 
  protected:
-  virtual ~GLImageEflPixmap();
+  ~GLImageEflPixmap();
 
  private:
   unsigned long efl_pixmap_id_;
index 3a80cbb..d06d565 100644 (file)
@@ -87,13 +87,13 @@ external_ui_gl_sources = [
 ]
 if (is_tizen) {
   external_ui_gl_sources += [
-    "//tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.cc",
-    "//tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.h",
+    #"//tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.cc",
+    #"//tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.h",
   ]
   if (!wayland_bringup) {
     external_ui_gl_sources += [
-      "//tizen_src/chromium_impl/ui/gl/efl_pixmap.cc",
-      "//tizen_src/chromium_impl/ui/gl/efl_pixmap.h",
+      "//tizen_src/chromium_impl/ui/gl/efl_pixmap.cc",
+      "//tizen_src/chromium_impl/ui/gl/efl_pixmap.h",
     ]
   }
 }
index 92f9970..d01d845 100644 (file)
@@ -124,6 +124,13 @@ shared_library("chromium-ewk") {
       "browser/geolocation/location_provider_efl.cc",
       "browser/geolocation/location_provider_efl.h",
     ]
+    if (ewk_bringup) {
+      # FIXME: EWK_BRINGUP
+      exclude_source_set -= [
+        "browser/geolocation/location_provider_efl.cc",
+        "browser/geolocation/location_provider_efl.h",
+      ]
+    }
   }
 
   # TODO : Below dependency is set in chromium/device/battery_tizen.gypi,
@@ -280,9 +287,8 @@ shared_library("chromium-ewk") {
     "browser/favicon/favicon_database_p.h",
     "browser/favicon/favicon_downloader.cc",
     "browser/favicon/favicon_downloader.h",
-
-    #"browser/geolocation/access_token_store_efl.cc",
-    #"browser/geolocation/access_token_store_efl.h",
+    "browser/geolocation/access_token_store_efl.cc",
+    "browser/geolocation/access_token_store_efl.h",
     "browser/geolocation/geolocation_permission_context_efl.cc",
     "browser/geolocation/geolocation_permission_context_efl.h",
     "browser/geolocation/location_provider_efl.cc",
@@ -498,6 +504,12 @@ shared_library("chromium-ewk") {
   # FIXME: Followings are guarded just for bringup.
   if (ewk_bringup) {
     sources -= [
+      "browser/geolocation/access_token_store_efl.cc",
+      "browser/geolocation/access_token_store_efl.h",
+      "browser/geolocation/geolocation_permission_context_efl.cc",
+      "browser/geolocation/geolocation_permission_context_efl.h",
+      "browser/geolocation/location_provider_efl.cc",
+      "browser/geolocation/location_provider_efl.h",
       "browser/vibration/vibration_provider_client.cc",
       "browser/vibration/vibration_provider_client.h",
       "permission_popup_manager.cc",
index 66e3404..eae5ec1 100644 (file)
@@ -65,11 +65,9 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
 #if defined(OS_TIZEN)
 #if !defined(EWK_BRINGUP)
   p_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
-#endif
   p_command_line->AppendSwitch(switches::kEnableSpatialNavigation);
   p_command_line->AppendSwitch(switches::kMainFrameResizesAreOrientationChanges);
   p_command_line->AppendSwitch(switches::kForceAccelerated2dCanvas);
-#if !defined(EWK_BRINGUP)
 // [M44_2403] Temporary disabling the codes for switching to new chromium
 //            FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14040
   p_command_line->AppendSwitch(cc::switches::kEnableParallelCanvasMode);
index 1891202..1185245 100644 (file)
@@ -30,7 +30,9 @@
 #include "common/web_contents_utils.h"
 
 #if defined(OS_TIZEN)
+#if !defined(EWK_BRINGUP)
 #include "browser/geolocation/location_provider_efl.h"
+#endif
 #include "content/browser/speech/tts_message_filter_efl.h"
 #endif
 
index 9145bbe..ce2f123 100644 (file)
@@ -40,7 +40,7 @@
 #include "third_party/blink/public/web/web_view.h"
 #include "url/gurl.h"
 
-#if defined(OS_TIZEN)
+#if defined(TIZEN_MULTIMEDIA_SUPPORT)
 #include "content/common/tts_messages_efl.h"
 #include "content/renderer/tts_dispatcher_efl.h"
 #endif
@@ -323,7 +323,7 @@ void ContentRendererClientEfl::GetNavigationErrorStrings(
 std::unique_ptr<blink::WebSpeechSynthesizer>
 ContentRendererClientEfl::OverrideSpeechSynthesizer(
     blink::WebSpeechSynthesizerClient* client) {
-#if defined(OS_TIZEN)
+#if defined(TIZEN_MULTIMEDIA_SUPPORT)
   return base::MakeUnique<TtsDispatcher>(new content::TtsDispatcherEfl(client));
 #else
   return nullptr;
index 90d2a72..2c57091 100644 (file)
@@ -38,7 +38,7 @@
 #include "public/platform/web_input_event.h"
 #include "url/gurl.h"
 
-#if defined(OS_TIZEN)
+#if defined(TIZEN_MULTIMEDIA_SUPPORT)
 #include "content/public/browser/media_capture_devices.h"
 #include "media/capture/video/tizen/video_capture_device_tizen.h"
 #endif
index 93cc43a..353f702 100644 (file)
@@ -31,9 +31,9 @@ executable("efl_webview_app") {
   configs += [ "//tizen_src/build:libelementary" ]
   public_configs += [ "//tizen_src/build:elementary-public" ]
   deps += [
+    "//tizen_src/chromium_impl/tizen:system-info",
     "//tizen_src/ewk/efl_integration:chromium-ewk",
     "//tizen_src/ewk/efl_integration:launch_exec",
-    "//tizen_src/chromium_impl/tizen:system-info",
   ]
   import("../tizen_version_defines_for_apps.gni")
   cflags = [
@@ -42,7 +42,7 @@ executable("efl_webview_app") {
     # will be excluded in chromium side (src/build/common.gypi), and GYP
     # processes pattern lists after exclusion lists.
     # (ref: https://gyp.gsrc.io/docs/InputFormatReference.md#Processing-Order)
-    "-Werror",
+    "-Werror",
   ]
   if (!use_wayland) {
     configs += [ "//tizen_src/build:ecore-x" ]
@@ -69,7 +69,7 @@ executable("mini_browser") {
     # will be excluded in chromium side (src/build/common.gypi), and GYP
     # processes pattern lists after exclusion lists.
     # (ref: https://gyp.gsrc.io/docs/InputFormatReference.md#Processing-Order)
-    "-Werror",
+    "-Werror",
   ]
   sources = []
   include_dirs = []
@@ -105,6 +105,7 @@ executable("mini_browser") {
     deps += [
       "//tizen_src/chromium_impl/tizen:system-info",
       "//tizen_src/ewk/efl_integration:chromium-ewk",
+
       #"//build/linux:glib",   removed from the chromium
     ]
     configs += [ "//build/config/linux:glib" ]
index 00e4961..e6343cb 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
+#define _DEFAULT_SOURCE
+
 #include "public/ewk_auth_challenge.h"
 #include "public/ewk_context.h"
 #include "public/ewk_main.h"
index f3ddfb3..7cfc9a4 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
+#define _DEFAULT_SOURCE
+
 #include <appfw/app.h>
 #include <dlog.h>
 #include <Ecore.h>
@@ -233,6 +235,11 @@ static void __vibration_off_cb(void *data);
 
 static void get_main_window_size(int *changed_ang, int *width, int *height);
 
+#if defined(OS_TIZEN)
+// To avoid implicit function declaration
+int setenv(const char *name, const char *value, int overwrite);
+#endif
+
 enum
 {
   FOR_TEST_APPLICATION_CACHE_RUN = EWK_CONTEXT_MENU_ITEM_BASE_APPLICATION_TAG + 1,
index 3aa7aff..76e80e0 100644 (file)
@@ -63,7 +63,7 @@ executable("ubrowser") {
     # will be excluded in chromium side (src/build/common.gypi), and GYP
     # processes pattern lists after exclusion lists.
     # (ref: https://gyp.gsrc.io/docs/InputFormatReference.md#Processing-Order)
-    "-Werror",
+    "-Werror",
   ]
   ldflags = []
   libs = []
index 4f54aac..288fd22 100644 (file)
@@ -15,8 +15,10 @@ def GzipStringRsyncable(data):
   # Instead, --rsyncable breaks the file into small chunks, so that one doesn't
   # affect the other in compression, and then only that chunk will have to be
   # updated.
-  gzip_proc = subprocess.Popen(['gzip', '--stdout', '--rsyncable',
-                                '--best', '--no-name'],
+  #
+  # We cannot use the rsyncable compression since gbs build infra does not have
+  # the '--rsyncable' option built in for gzip.
+  gzip_proc = subprocess.Popen(['gzip', '--stdout', '--best', '--no-name'],
                                stdin=subprocess.PIPE,
                                stdout=subprocess.PIPE,
                                stderr=subprocess.PIPE)
index 240160f..e7643c2 100755 (executable)
@@ -117,7 +117,7 @@ def main(arguments):
     parser.error('You must specify a --platform.')
 
   supported_platforms = ['android', 'chromeos', 'fuchsia', 'ios', 'linux',
-                         'mac', 'win']
+                         'mac', 'tizen', 'win']
   if opts.platform not in supported_platforms:
     parser.error('\'%s\' is an unknown platform. Supported platforms: %s' %
         (opts.platform, supported_platforms))
index 35b95b8..a90389b 100644 (file)
@@ -5,13 +5,15 @@
 #include "ui/gfx/native_pixmap_handle.h"
 
 #if defined(OS_LINUX)
+#if !defined(OS_TIZEN)
 #include <drm_fourcc.h>
+#endif
 #include "base/posix/eintr_wrapper.h"
 #endif
 
 namespace gfx {
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && !defined(OS_TIZEN)
 static_assert(NativePixmapPlane::kNoModifier == DRM_FORMAT_MOD_INVALID,
               "gfx::NativePixmapPlane::kNoModifier should be an alias for"
               "DRM_FORMAT_MOD_INVALID");
index a09f70f..173ce19 100644 (file)
@@ -9,5 +9,5 @@ declare_args() {
 
   # Should EGL support be compiled. Can be overriden to test during bring up
   # of EGL support on other platforms
-  use_egl = is_win || is_android || is_linux || is_fuchsia
+  use_egl = is_win || is_android || is_linux || is_fuchsia || is_tizen
 }
index 65729cb..8a6f77c 100644 (file)
@@ -34,7 +34,7 @@ source_set("common") {
   ]
 
   data_deps = [
-    "//third_party/mesa:osmesa",
+    #    "//third_party/mesa:osmesa",
   ]
 
   visibility = [ "//ui/ozone/platform/*" ]