[M50_2661] Chromium upversion to m50_2661 branch.
authorGajendra N <gajendra.n@samsung.com>
Fri, 22 Apr 2016 06:20:24 +0000 (11:50 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
This patch deals with the following changes:

1. Removing libvpx.diff patch from build/patches folder, as it is no longer needed.
2. context_factory_efl.cc file will be removed in another patch. To avoid build
   break, part of the code is commented under EWK_BRINGUP flag (TWF-893).
3. gfx::Screen::GetNativeScreen() is renamed to GetScreen().
4. RenderWidgetHostImpl::ImeSetComposition() expects additional parameter gfx::Range.
5. delegated_frame_{provider, resource_collection}.h headers are removed.
6. FrameTree::ForEach() is removed, replace with a loop iterating over
   FrameTree::Nodes().
7. RenderProcessHostImpl::ResumeRequestsForView() is replaced with
   ResourceDispatcherHostImpl::ResumeBlockedRequestsForRouteFromUI().
8. ViewMsg_Resize is renamed to ResizeParams.
9. Set proper dependency path for 'mojo_cpp_bindings'.
10. gpu_messages.h is renamed to gpu_host_messages.h.
11. content::GpuProcess() constructor takes a parameter base::ThreadPriority.
12. |rtc_use_h264| is set to 0, without which link fails due to missing symbol.
13. rjsmin.py is located under third_party/WebKit/Source/devtools/scripts
    directory, hence set proper import path in make-file-arrays.py.
14. LayoutTheme::theme is already defined in Blink, which calls nativeTheme()
    on a condition, hence define nativeTheme() in RenderThemeChromiumTizen.cpp.
15. ResourceBundle::GetNativeImageNamed() takes only one parameter.
16. ui/gfx/screen_type_delegate.h is removed and SetScreenInstance() takes
    only one parameter of type ui::Screen.
17. Add 'ozone_common' target dependency required by ozone_efl.
18. GetEGLSurfaceProperties() is removed and GLSurfaceEGL uses default configuration
    attributes, which are same as it was returned by SurfaceFactoryEfl.
19. LoadAccessTokensCallbackType & AccessTokenSet are renamed to
    LoadAccessTokensCallback & AccessTokenMap respectively, in AccessTokenStore.
20. "PERMISSION_STATUS_" prefix is trimmed on members of PermissionStatenum members.
21. Changes in prototype of DisplayNotification() & DisplayPersistentNotification()
    functions of NotificationControllerEfl.
22. user_gesture parameter of PermissionManager::RequestPermission{s}() is removed.
23. base/prefs/ is moved to components/prefs/ folder.
24. net/base/net_util.h is removed.
25. GetCookieMonster() is removed, replace with GetCookieStore() at necessary
    places.
26. MemoryPressureController::GetInstance() is moved to MemoryPressureControllerImpl.
27. Refactor EWebView::Suspend() & Resume() based on changes with respect to
    ResourceDispatcherHost.
28. WebContents::ExitFullScreen() takes a bool parameter 'will_cause_resize'.
29. Change in first parameter type from void* to size* for HttpResponseHeaders::
    EnumerateHeaderLines()
30  Use blink::WebStringToGURL() to instantiate GURL object from WebString.
31. typedef PlatformCanvas is removed from skia, hence use SkCanvas directly.
32. WebFrame::contentHasText() is removed and reimplemented as WebFrameContentDumper::
    dumpFrameTreeAsText().
33. Cast CookieStore to CookieMonster to call SetPersistentCookies() and
    SetCookieableSchemes() APIs.
34. Version change from 49.2623 to 50.2661 in build and packaging related files.

Debug build is not working because libchromium-ewk.so size is exceeding 2 GB during linking
time. Temporarily disabling debug build with 'nodebug 1' to avoid the error.
JIRA issue raised at http://suprem.sec.samsung.net/jira/browse/TWF-891

With M50 rebase, we face black screen issue due to some changes in Delegated Rendering,
which will be fixed separately.
JIRA issue raised at http://suprem.sec.samsung.net/jira/browse/TWF-893

'blink_platform' requires utrie2.h which is not supported by system icu yet. To avoid build
break, temporarily using Chromium's third_party/icu by setting 'use_system_icu=0'.
JIRA issue raised at http://suprem.sec.samsung.net/jira/browse/TWF-967

Bug : http://suprem.sec.samsung.net/jira/browse/TWF-728

Change-Id: I8994f376a599ede9045c730cb1c1ce340311deb1
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
57 files changed:
tizen_src/DEPS.efl
tizen_src/build/gyp_chromiumefl.sh
tizen_src/build/patches/fix_warning_for_libvpx.diff [deleted file]
tizen_src/chromium_impl/content/browser/renderer_host/context_factory_efl.cc
tizen_src/chromium_impl/content/browser/renderer_host/disambiguation_popup_efl.cc
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.cc
tizen_src/chromium_impl/content/browser/renderer_host/render_widget_host_view_efl.h
tizen_src/chromium_impl/content/browser/renderer_host/web_event_factory_efl.cc
tizen_src/chromium_impl/content/browser/selection/selection_controller_efl.cc
tizen_src/chromium_impl/content/browser/web_contents/web_contents_impl_efl.cc
tizen_src/chromium_impl/content/browser/web_contents/web_contents_view_efl.cc
tizen_src/chromium_impl/content/browser/web_contents/web_drag_dest_efl.cc
tizen_src/chromium_impl/content/browser/web_contents/web_drag_source_efl.cc
tizen_src/chromium_impl/content/content_efl.gyp
tizen_src/chromium_impl/content/gpu/in_process_gpu_thread_efl.cc
tizen_src/chromium_impl/third_party/WebKit/Source/core/make-file-arrays.py
tizen_src/chromium_impl/third_party/WebKit/Source/core/rendering/RenderThemeChromiumTizen.cpp
tizen_src/chromium_impl/ui/base/resource/resource_bundle_efl.cc
tizen_src/chromium_impl/ui/gfx/screen_efl.cc
tizen_src/chromium_impl/ui/ozone/ozone_efl.gyp
tizen_src/chromium_impl/ui/ozone/surface_factory_efl.cc
tizen_src/chromium_impl/ui/ozone/surface_factory_efl.h
tizen_src/ewk/efl_integration/browser/geolocation/access_token_store_efl.cc
tizen_src/ewk/efl_integration/browser/geolocation/access_token_store_efl.h
tizen_src/ewk/efl_integration/browser/geolocation/geolocation_permission_context_efl.cc
tizen_src/ewk/efl_integration/browser/notification/notification_controller_efl.cc
tizen_src/ewk/efl_integration/browser/notification/notification_controller_efl.h
tizen_src/ewk/efl_integration/browser/permission_manager_efl.cc
tizen_src/ewk/efl_integration/browser/permission_manager_efl.h
tizen_src/ewk/efl_integration/browser_context_efl.cc
tizen_src/ewk/efl_integration/context_menu_controller_efl.cc
tizen_src/ewk/efl_integration/cookie_manager.cc
tizen_src/ewk/efl_integration/cookie_manager.h
tizen_src/ewk/efl_integration/eweb_context.cc
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/pkgconfig/chromium-ewk.pc
tizen_src/ewk/efl_integration/private/ewk_geolocation_private.cc
tizen_src/ewk/efl_integration/private/ewk_notification_private.cc
tizen_src/ewk/efl_integration/private/ewk_policy_decision_private.cc
tizen_src/ewk/efl_integration/renderer/content_renderer_client_efl.cc
tizen_src/ewk/efl_integration/renderer/print_web_view_helper_efl.cc
tizen_src/ewk/efl_integration/renderer/render_frame_observer_efl.cc
tizen_src/ewk/efl_integration/renderer/render_view_observer_efl.cc
tizen_src/ewk/efl_integration/text_encoding_map_efl.cc
tizen_src/ewk/efl_integration/url_request_context_getter_efl.cc
tizen_src/ewk/efl_integration/web_contents_delegate_efl.cc
tizen_src/ewk/efl_integration/wrt/wrt_file_protocol_handler.cc
tizen_src/ewk/efl_webview_app/chromium-efl.xml
tizen_src/ewk/efl_webview_app/chromium-efl_v3.0.xml
tizen_src/ewk/efl_webview_app/ubrowser.xml
tizen_src/ewk/efl_webview_app/ubrowser_v3.0.xml
tizen_src/ewk/ubrowser/ubrowser.xml
tizen_src/packaging/chromium-efl-libs.spec
tizen_src/packaging/chromium-efl.spec
tizen_src/packaging/crosswalk-bin.spec
tizen_src/packaging/manifest.xml
tizen_src/supplement.gypi

index 0197cfb..270d87a 100644 (file)
@@ -26,7 +26,7 @@ khronos_cl_api_rev = '6f4be98d10f03ce2b12c769cd9835c73a441c00f'
 # SVN revision while Blink is still in SVN.
 blink_upstream_rev = '191638' #TODO(TK) : need to update revision number
 
-efl_integration_branch = 'origin/dev/m49_2623'
+efl_integration_branch = 'origin/dev/m50_2661'
 ct_git = 'ssh://165.213.202.130:29418/webplatform'
 crosswalk_git = 'https://github.com/crosswalk-project'
 
index 5c10384..89c6868 100755 (executable)
@@ -185,9 +185,14 @@ add_gbs_flags() {
                -Duse_system_libxslt=1
                -Duse_system_re2=1
                -Duse_system_zlib=1
-               -Duse_system_icu=1
               "
 
+  # [M50_2661] Temporary using the icu of internal chformium instead of system.
+  #            The icu of system doesn't support utrie2.h
+  #            FIXME: http://suprem.sec.samsung.net/jira/browse/TWF-967
+  SYSTEM_DEPS+="-Duse_system_icu=0
+               "
+
   if [ "$target" == "mobile" ]; then
     SYSTEM_DEPS+="-Duse_system_bzip2=1
                   -Duse_system_libexif=1
diff --git a/tizen_src/build/patches/fix_warning_for_libvpx.diff b/tizen_src/build/patches/fix_warning_for_libvpx.diff
deleted file mode 100644 (file)
index 15d84c9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/third_party/libvpx_new/source/libvpx/vp9/encoder/vp9_denoiser.h b/third_party/libvpx_new/source/libvpx/vp9/encoder/vp9_denoiser.h
-index bc676e9..1cd1e6d 100644
---- a/third_party/libvpx_new/source/libvpx/vp9/encoder/vp9_denoiser.h
-+++ b/third_party/libvpx_new/source/libvpx/vp9/encoder/vp9_denoiser.h
-@@ -73,7 +73,7 @@ int vp9_denoiser_alloc(VP9_DENOISER *denoiser, int width, int height,
- // This function is used by both c and sse2 denoiser implementations.
- // Define it as a static function within the scope where vp9_denoiser.h
- // is referenced.
--static int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising) {
-+inline static int total_adj_strong_thresh(BLOCK_SIZE bs, int increase_denoising) {
-   return (1 << num_pels_log2_lookup[bs]) * (increase_denoising ? 3 : 2);
- }
- #endif
index 6de0620..ef394ab 100644 (file)
@@ -329,6 +329,10 @@ class MailboxOutputSurfaceEfl : public cc::OutputSurface {
     }
 #endif
 
+#if !defined(EWK_BRINGUP)
+    // [M50_2661] This file will be removed with another patch. To avoid build
+    //            break, the following code is commented.
+    //            FIXME: http://165.213.149.170/jira/browse/TWF-893
     uint32_t sync_point =
         context_provider_->ContextGL()->InsertSyncPointCHROMIUM();
 
@@ -339,6 +343,7 @@ class MailboxOutputSurfaceEfl : public cc::OutputSurface {
                    base::Passed(&frame->gl_frame_data));
 
     context_provider()->ContextSupport()->SignalSyncPoint(sync_point, closure);
+#endif
 
     client_->DidSwapBuffers();
 
index bc97efb..f3d7c17 100644 (file)
@@ -193,7 +193,7 @@ void DisambiguationPopupEfl::PrepareMouseEventForForward(T* event) {
 
   int parent_view_x = 0, parent_view_y = 0;
   evas_object_geometry_get(parent_view_, &parent_view_x, &parent_view_y, 0, 0);
-  float device_scale_factor = gfx::Screen::GetNativeScreen()->
+  float device_scale_factor = gfx::Screen::GetScreen()->
       GetPrimaryDisplay().device_scale_factor();
   event->canvas.x = target_rect_x + (parent_view_x * device_scale_factor);
   event->canvas.y = target_rect_y + (parent_view_y * device_scale_factor);
index a41dd17..7fe2aef 100644 (file)
@@ -147,7 +147,7 @@ class ScreenshotCapturedCallback {
 
 void RenderWidgetHostViewBase::GetDefaultScreenInfo(
     blink::WebScreenInfo* results) {
-  const gfx::Display display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();
+  const gfx::Display display = gfx::Screen::GetScreen()->GetPrimaryDisplay();
 
   results->rect = display.bounds();
   results->availableRect = display.work_area();
@@ -204,7 +204,7 @@ RenderWidgetHostViewEfl::RenderWidgetHostViewEfl(RenderWidgetHost* widget,
 
   SetDoubleTapSupportEnabled(touch_events_enabled_);
 
-  device_scale_factor_ = gfx::Screen::GetNativeScreen()->
+  device_scale_factor_ = gfx::Screen::GetScreen()->
       GetPrimaryDisplay().device_scale_factor();
 
   host_->SetView(this);
@@ -1811,8 +1811,8 @@ void RenderWidgetHostViewEfl::SetComposition(const ui::CompositionText& composit
       composition_text.underlines);
 
   host_->ImeSetComposition(
-      composition_text.text, underlines, composition_text.selection.start(),
-      composition_text.selection.end());
+      composition_text.text, underlines, gfx::Range::InvalidRange(),
+      composition_text.selection.start(), composition_text.selection.end());
 }
 
 void RenderWidgetHostViewEfl::ConfirmComposition(base::string16& text) {
index b376727..df48c15 100644 (file)
@@ -18,8 +18,6 @@
 #include "content/browser/web_contents/web_contents_impl.h"
 #include "content/browser/web_contents/web_contents_view_efl.h"
 #include "content/common/content_export.h"
-#include "cc/layers/delegated_frame_provider.h"
-#include "cc/layers/delegated_frame_resource_collection.h"
 #include "cc/output/compositor_frame.h"
 #include "cc/output/compositor_frame_ack.h"
 #include "cc/output/copy_output_request.h"
index 180abce..f3d29f8 100644 (file)
@@ -33,7 +33,7 @@ static void TranslateEvasCoordToWebKitCoord(Evas_Object *web_view, int& x, int&
 float GetDeviceScaleFactor() {
   static float device_scale_factor = 0.0f;
   if (!device_scale_factor) {
-    device_scale_factor = gfx::Screen::GetNativeScreen()->
+    device_scale_factor = gfx::Screen::GetScreen()->
         GetPrimaryDisplay().device_scale_factor();
   }
   return device_scale_factor;
index 3355baa..10043ea 100644 (file)
@@ -153,7 +153,7 @@ void SelectionControllerEfl::OnSelectionChanged(
   gfx::Rect truncated_end(end.edge_top_rounded(), gfx::Size(0, end.GetHeight()));
 
   static float device_scale_factor =
-      gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
+      gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor();
   truncated_start = ConvertRectToPixel(device_scale_factor, truncated_start);
   truncated_end = ConvertRectToPixel(device_scale_factor, truncated_end);
 
@@ -434,7 +434,7 @@ void SelectionControllerEfl::HandleDragBeginNotification(SelectionHandleEfl* han
   }
 
   float device_scale_factor =
-      gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
+      gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor();
   gfx::PointF base = gfx::ScalePoint(
       gfx::PointF(stationary_handle_->GetBasePosition()), 1 / device_scale_factor);
   gfx::PointF extent = gfx::ScalePoint(
@@ -471,7 +471,7 @@ void SelectionControllerEfl::HandleDragUpdateNotification(SelectionHandleEfl* ha
     case SelectionHandleEfl::HANDLE_TYPE_LEFT:
     case SelectionHandleEfl::HANDLE_TYPE_RIGHT: {
       float device_scale_factor =
-          gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
+          gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor();
       gfx::PointF extent = gfx::ScalePoint(
           gfx::PointF(handle->GetBasePosition()), 1 / device_scale_factor);
 
index 58c8378..a9a121f 100644 (file)
@@ -17,6 +17,7 @@
 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
 #include "content/browser/frame_host/navigation_entry_impl.h"
+#include "content/browser/loader/resource_dispatcher_host_impl.h"
 #include "content/browser/renderer_host/render_view_host_impl.h"
 #include "content/browser/web_contents/web_contents_view.h"
 #include "content/public/browser/browser_context.h"
@@ -148,8 +149,9 @@ void WebContentsImplEfl::CreateNewWindow(
   // is invalid and the process must be terminated.
   int render_process_id = source_site_instance->GetProcess()->GetID();
   bool did_match_process = false;
-  frame_tree_.ForEach(
-      base::Bind(&FindMatchingProcess, render_process_id, &did_match_process));
+  for (FrameTreeNode* node : frame_tree_.Nodes())
+    base::Bind(&FindMatchingProcess, render_process_id, &did_match_process, node);
+
   if (!did_match_process) {
     RenderProcessHost* rph = source_site_instance->GetProcess();
     base::ProcessHandle process_handle = rph->GetHandle();
@@ -216,9 +218,10 @@ void WebContentsImplEfl::CancelWindowRequest(
     // delete the RenderView that had already been created.
     Send(new ViewMsg_Close(route_id));
   }
-  GetRenderViewHost()->GetProcess()->ResumeRequestsForView(route_id);
-  GetRenderViewHost()->GetProcess()->ResumeRequestsForView(
-      main_frame_route_id);
+  ResourceDispatcherHostImpl::ResumeBlockedRequestsForRouteFromUI(
+        GlobalFrameRoutingId(render_process_id, route_id));
+  ResourceDispatcherHostImpl::ResumeBlockedRequestsForRouteFromUI(
+        GlobalFrameRoutingId(render_process_id, main_frame_route_id));
 }
 
 // This function does not exist in WebContentsImpl. The decision regarding
index 1de9810..4b66ab8 100644 (file)
@@ -327,7 +327,7 @@ void WebContentsViewEfl::SetOrientation(int orientation) {
     RenderViewHostImpl* rvhi =
         static_cast<RenderViewHostImpl*>(web_contents_->GetRenderViewHost());
 
-    ViewMsg_Resize_Params params;
+    ResizeParams params;
     params.screen_info = screen_info;
     params.new_size = new_size;
     params.physical_backing_size = backing_size;
index b91fd07..dba67c2 100644 (file)
@@ -46,7 +46,7 @@ WebDragDestEfl::WebDragDestEfl(WebContents* web_contents)
       parent_view_(static_cast<Evas_Object*>(web_contents->GetNativeView())),
       page_scale_factor_(1.0f),
       drag_initialized_(false) {
-  device_scale_factor_ = gfx::Screen::GetNativeScreen()->
+  device_scale_factor_ = gfx::Screen::GetScreen()->
       GetPrimaryDisplay().device_scale_factor();
   SetDragCallbacks();
 }
index da97a17..c7564a3 100644 (file)
@@ -59,7 +59,7 @@ WebDragSourceEfl::WebDragSourceEfl(WebContents* web_contents)
       drag_failed_(false),
       drag_started_(false),
       page_scale_factor_(1.0f) {
-  device_scale_factor_ = gfx::Screen::GetNativeScreen()->
+  device_scale_factor_ = gfx::Screen::GetScreen()->
       GetPrimaryDisplay().device_scale_factor();
 }
 
index f259877..d1075b0 100644 (file)
@@ -16,7 +16,7 @@
         '<(DEPTH)/third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
         '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
-        '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
+        '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings',
       ],
       'sources': [
         '<(DEPTH)/content/renderer/android/renderer_date_time_picker.h',
index cfdb5b3..f1aab95 100644 (file)
@@ -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 "content/common/gpu/gpu_messages.h"
+#include "content/common/gpu/gpu_host_messages.h"
 #include "content/gpu/gpu_process.h"
 #include "content/gpu/shared_mailbox_manager.h"
 #include "ui/gl/gl_shared_context_efl.h"
@@ -58,7 +58,7 @@ struct InProcessGpuThreadEfl : public content::InProcessGpuThread {
       : InProcessGpuThread(params, sync_point_manager_override) { }
 
   void Init() override {
-    gpu_process_ = new content::GpuProcess();
+    gpu_process_ = new content::GpuProcess(base::ThreadPriority::NORMAL);
     // The process object takes ownership of the thread object, so do not
     // save and delete the pointer.
     gpu_process_->set_main_thread(new GpuChildThreadEfl(params_,
index 8a70053..0bedc2d 100755 (executable)
@@ -45,7 +45,7 @@ rjsmin_path = os.path.abspath(os.path.join(
         "third_party",
        "WebKit",
        "Source",
-       "build",
+       "devtools",
         "scripts"))
 sys.path.append(rjsmin_path)
 import rjsmin
index a98d05c..fdc25aa 100644 (file)
@@ -13,7 +13,7 @@ PassRefPtr<LayoutTheme> RenderThemeChromiumTizen::create()
     return adoptRef(new RenderThemeChromiumTizen());
 }
 
-LayoutTheme& LayoutTheme::theme()
+LayoutTheme& LayoutTheme::nativeTheme()
 {
     DEFINE_STATIC_REF(LayoutTheme, renderTheme, (RenderThemeChromiumTizen::create()));
     return *renderTheme;
index 128fd67..fc27ab3 100644 (file)
@@ -42,9 +42,8 @@ void ResourceBundle::LoadCommonResources() {
   }
 }
 
-gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) {
+gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) {
   // Flipped image is not used on ChromeOS.
-  DCHECK_EQ(rtl, RTL_DISABLED);
   return GetImageNamed(resource_id);
 }
 
index e89c55c..e287f3f 100644 (file)
@@ -7,7 +7,6 @@
 #include "ecore_x_wayland_wrapper.h"
 
 #include "content/browser/renderer_host/dip_util.h"
-#include "ui/gfx/screen_type_delegate.h"
 #include "ui/base/x/x11_util.h"
 #include "ui/gfx/device_display_info_efl.h"
 #include "ui/gfx/geometry/rect.h"
@@ -120,7 +119,7 @@ void InstallScreenInstance()
   static bool installed = false;
   if (!installed) {
     installed = true;
-    gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, new ui::ScreenEfl());
+    gfx::Screen::SetScreenInstance(new ui::ScreenEfl());
   }
 }
 
index 8144501..889b13f 100644 (file)
@@ -13,6 +13,9 @@
     {
       'target_name': 'ozone_efl',
       'type': 'static_library',
+      'dependencies': [
+        '<(DEPTH)/ui/ozone/ozone.gyp:ozone_common',
+      ],
       'conditions': [
         ['use_wayland==0', {
           'dependencies': [
index 26adabe..22f2a6b 100644 (file)
@@ -34,20 +34,5 @@ intptr_t SurfaceFactoryEfl::GetNativeDisplay() {
 #endif
 }
 
-const int32_t* SurfaceFactoryEfl::GetEGLSurfaceProperties(
-    const int32_t* desired_list) {
-  static const EGLint kConfigAttribs[] = {
-      EGL_BUFFER_SIZE, 32,
-      EGL_ALPHA_SIZE, 8,
-      EGL_BLUE_SIZE, 8,
-      EGL_GREEN_SIZE, 8,
-      EGL_RED_SIZE, 8,
-      EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
-      EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
-      EGL_NONE
-  };
-  return kConfigAttribs;
-}
-
 } // namespace ui
 
index b02ae1a..f72b364 100644 (file)
@@ -17,7 +17,6 @@ class SurfaceFactoryEfl : public ui::SurfaceFactoryOzone {
       AddGLLibraryCallback add_gl_library,
       SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
   intptr_t GetNativeDisplay() override;
-  const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
 };
 
 } // namespace ui
index c7fa736..20b8af7 100644 (file)
@@ -23,7 +23,7 @@ AccessTokenStoreEfl::~AccessTokenStoreEfl()
 {
 }
 
-void AccessTokenStoreEfl::LoadAccessTokens(const LoadAccessTokensCallbackType& callback)
+void AccessTokenStoreEfl::LoadAccessTokens(const LoadAccessTokensCallback& callback)
 {
   BrowserThread::PostTaskAndReply(BrowserThread::UI,
                                   FROM_HERE,
@@ -39,10 +39,10 @@ void AccessTokenStoreEfl::GetRequestContextOnUIThread()
   system_request_context_ = EwkGlobalData::GetInstance()->GetSystemRequestContextGetter();
 }
 
-void AccessTokenStoreEfl::RespondOnOriginatingThread(const LoadAccessTokensCallbackType& callback)
+void AccessTokenStoreEfl::RespondOnOriginatingThread(const LoadAccessTokensCallback& callback)
 {
-  AccessTokenSet access_token_set;
-  callback.Run(access_token_set, system_request_context_);
+  AccessTokenMap access_token_map;
+  callback.Run(access_token_map, system_request_context_);
 }
 
 void AccessTokenStoreEfl::SaveAccessToken(const GURL& /*server_url*/, const base::string16& /*access_token*/)
index e568220..99bab1d 100644 (file)
@@ -17,14 +17,14 @@ class AccessTokenStoreEfl : public content::AccessTokenStore {
   AccessTokenStoreEfl();
 
   // AccessTokenStore
-  virtual void LoadAccessTokens(const LoadAccessTokensCallbackType& callback) override;
+  virtual void LoadAccessTokens(const LoadAccessTokensCallback& callback) override;
   virtual void SaveAccessToken(const GURL& server_url, const base::string16& access_token) override;
 
  private:
   virtual ~AccessTokenStoreEfl();
 
   void GetRequestContextOnUIThread();
-  void RespondOnOriginatingThread(const LoadAccessTokensCallbackType& callback);
+  void RespondOnOriginatingThread(const LoadAccessTokensCallback& callback);
 
   net::URLRequestContextGetter* system_request_context_;
 
index e0a6dc3..f27cd2b 100644 (file)
@@ -58,7 +58,7 @@ void GeolocationPermissionContextEfl::RequestPermissionOnUIThread(
     if (request->isSuspended())
       ignore_result(request.release());
     else if (!request->isDecided())  // Reject permission if request is not suspended and not decided
-      callback.Run(PermissionStatus::PERMISSION_STATUS_DENIED);
+      callback.Run(PermissionStatus::DENIED);
   }
 }
 
index 11cc3b6..debeb4e 100644 (file)
@@ -7,6 +7,7 @@
 #include "base/strings/utf_string_conversions.h"
 #include "common/web_contents_utils.h"
 #include "content/public/browser/browser_thread.h"
+#include "content/public/common/notification_resources.h"
 #include "content/public/common/platform_notification_data.h"
 #include "eweb_view.h"
 #include "private/ewk_notification_private.h"
@@ -93,8 +94,8 @@ blink::WebNotificationPermission NotificationControllerEfl::CheckPermissionOnIOT
 void NotificationControllerEfl::DisplayNotification(
     BrowserContext* browser_context,
     const GURL& origin,
-    const SkBitmap& icon,
     const PlatformNotificationData& notification_data,
+    const NotificationResources& notification_resources,
     scoped_ptr<DesktopNotificationDelegate> delegate,
     base::Closure* cancel_callback) {
 
@@ -138,7 +139,7 @@ void NotificationControllerEfl::DisplayNotification(
       new Ewk_Notification(base::UTF16ToUTF8(notification_data.body),
                            notification_data.tag,
                            base::UTF16ToUTF8(notification_data.title),
-                           icon,
+                           notification_resources.notification_icon,
                            notification_data.silent,
                            notificationUniqueId,
                            origin);
@@ -151,10 +152,10 @@ void NotificationControllerEfl::DisplayNotification(
 
 void NotificationControllerEfl:: DisplayPersistentNotification(
     BrowserContext* browser_context,
-    int64_t service_worker_registration_id,
+    int64_t persistent_notification_id,
     const GURL& origin,
-    const SkBitmap& icon,
-    const PlatformNotificationData& notification_data) {
+    const PlatformNotificationData& notification_data,
+    const NotificationResources& notification_resources) {
   NOTIMPLEMENTED();
 }
 
@@ -238,7 +239,7 @@ void NotificationControllerEfl::RequestPermission(
   if (!web_view) {
     LOG(ERROR) << "Dropping PermissionNotification request caused by lack "
                   "of the WebView";
-    result_callback.Run(PermissionStatus::PERMISSION_STATUS_DENIED);
+    result_callback.Run(PermissionStatus::DENIED);
     return;
   }
   scoped_ptr<Ewk_Notification_Permission_Request> notification_permission(
@@ -248,7 +249,7 @@ void NotificationControllerEfl::RequestPermission(
   if (!web_view->IsNotificationPermissionCallbackSet()) {
     LOG(ERROR) << "Dropping PermissionNotification request caused by lack "
                   "of the Notification Permission Callback";
-    result_callback.Run(PermissionStatus::PERMISSION_STATUS_DENIED);
+    result_callback.Run(PermissionStatus::DENIED);
     return;
   }
 
@@ -266,9 +267,9 @@ void NotificationControllerEfl::RequestPermission(
     }
   } else {
     if (web_notification_permission == blink::WebNotificationPermissionAllowed) {
-      result_callback.Run(PermissionStatus::PERMISSION_STATUS_GRANTED);
+      result_callback.Run(PermissionStatus::GRANTED);
     } else {
-      result_callback.Run(PermissionStatus::PERMISSION_STATUS_DENIED);
+      result_callback.Run(PermissionStatus::DENIED);
     }
   }
 }
index 5161dbc..a26f214 100644 (file)
@@ -102,8 +102,8 @@ class NotificationControllerEfl: public PlatformNotificationService {
   void DisplayNotification(
       BrowserContext* browser_context,
       const GURL& origin,
-      const SkBitmap& icon,
       const PlatformNotificationData& notification_data,
+      const NotificationResources& notification_resources,
       scoped_ptr<DesktopNotificationDelegate> delegate,
       base::Closure* cancel_callback) override;
 
@@ -111,10 +111,10 @@ class NotificationControllerEfl: public PlatformNotificationService {
   // the user. This method must be called on the UI thread.
   void DisplayPersistentNotification(
       BrowserContext* browser_context,
-      int64_t service_worker_registration_id,
+      int64_t persistent_notification_id,
       const GURL& origin,
-      const SkBitmap& icon,
-      const PlatformNotificationData& notification_data) override;
+      const PlatformNotificationData& notification_data,
+      const NotificationResources& notification_resources) override;
 
   // Closes the persistent notification identified by
   // |persistent_notification_id|. This method must be called on the UI thread.
index d5fff59..a2ca946 100644 (file)
@@ -28,7 +28,6 @@ PermissionManagerEfl::~PermissionManagerEfl() {
 int PermissionManagerEfl::RequestPermission(PermissionType permission,
                        content::RenderFrameHost* render_frame_host,
                        const GURL& requesting_origin,
-                       bool user_gesture,
                        const base::Callback<void(PermissionStatus)>& callback) {
 #if !defined(EWK_BRINGUP)
 // [M48_2564] Temporary disabling the codes for switching to new chromium
@@ -106,7 +105,6 @@ int PermissionManagerEfl::RequestPermissions(
                        const std::vector<PermissionType>& permission,
                        RenderFrameHost* render_frame_host,
                        const GURL& requesting_origin,
-                       bool user_gesture,
                        const base::Callback<void(
                            const std::vector<PermissionStatus>&)>& callback) {
   NOTIMPLEMENTED();
@@ -121,7 +119,7 @@ PermissionStatus PermissionManagerEfl::GetPermissionStatus(
                                                  PermissionType permission,
                                                  const GURL& requesting_origin,
                                                  const GURL& embedding_origin) {
-  return PERMISSION_STATUS_DENIED;
+  return PermissionStatus::DENIED;
 }
 
 void PermissionManagerEfl::ResetPermission(PermissionType permission,
index 352124e..1390d59 100644 (file)
@@ -21,14 +21,12 @@ class CONTENT_EXPORT PermissionManagerEfl : public PermissionManager {
       PermissionType permission,
       content::RenderFrameHost* render_frame_host,
       const GURL& requesting_origin,
-      bool user_gesture,
       const base::Callback<void(PermissionStatus)>& callback) override;
 
   int RequestPermissions(
       const std::vector<PermissionType>& permission,
       RenderFrameHost* render_frame_host,
       const GURL& requesting_origin,
-      bool user_gesture,
       const base::Callback<void(
         const std::vector<PermissionStatus>&)>& callback) override;
 
index c69ced9..c7ca857 100644 (file)
@@ -8,9 +8,6 @@
 #include "base/bind.h"
 #include "base/files/file_util.h"
 #include "base/path_service.h"
-#include "base/prefs/pref_registry_simple.h"
-#include "base/prefs/pref_service.h"
-#include "base/prefs/pref_service_factory.h"
 #include "base/synchronization/waitable_event.h"
 #include "browser/autofill/personal_data_manager_factory.h"
 #include "browser/geolocation/geolocation_permission_context_efl.h"
@@ -20,6 +17,9 @@
 #include "components/autofill/core/browser/personal_data_manager.h"
 #include "components/autofill/core/common/autofill_pref_names.h"
 #include "components/password_manager/core/common/password_manager_pref_names.h"
+#include "components/prefs/pref_registry_simple.h"
+#include "components/prefs/pref_service.h"
+#include "components/prefs/pref_service_factory.h"
 #include "components/user_prefs/user_prefs.h"
 #include "components/visitedlink/browser/visitedlink_master.h"
 #include "content/common/paths_efl.h"
@@ -132,7 +132,7 @@ BrowserContextEfl::BrowserContextEfl(EWebContext* web_context, bool incognito)
   pref_registry->RegisterBooleanPref(kAutofillWalletImportEnabled, true);
   pref_registry->RegisterBooleanPref(kPasswordManagerSavingEnabled, true);
 
-  base::PrefServiceFactory pref_service_factory;
+  PrefServiceFactory pref_service_factory;
   pref_service_factory.set_user_prefs(make_scoped_refptr(new AwPrefStore));
   pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError));
   user_pref_service_ = std::move(pref_service_factory.Create(pref_registry));
index 025ef48..f4930cc 100644 (file)
@@ -18,7 +18,6 @@
 #include "content/public/browser/download_manager.h"
 #include "content/public/browser/navigation_entry.h"
 #include "eweb_view.h"
-#include "net/base/net_util.h"
 #include "net/base/filename_util.h"
 #include "content/common/paths_efl.h"
 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
index 901f7d2..c504e88 100644 (file)
@@ -87,29 +87,29 @@ void CookieManager::SetRequestContextGetter(
 void CookieManager::DeleteSessionCookiesOnIOThread() {
   DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
 
-  scoped_refptr<net::CookieMonster> cookie_monster = GetCookieMonster();
-  if (cookie_monster.get())
-    cookie_monster->DeleteSessionCookiesAsync(base::Callback<void(int)>());
+  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  if (cookie_store.get())
+    cookie_store->DeleteSessionCookiesAsync(base::Callback<void(int)>());
 }
 
-static void DeleteCookiesOnIOThread(scoped_refptr<net::CookieMonster> cookie_monster,
+static void DeleteCookiesOnIOThread(scoped_refptr<net::CookieStore> cookie_store,
                                     const std::string& url,
                                     const std::string& cookie_name) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
 
   if (url.empty()) { // Delete all cookies.
-    cookie_monster->DeleteAllAsync(net::CookieMonster::DeleteCallback());
+    cookie_store->DeleteAllAsync(net::CookieMonster::DeleteCallback());
   }
   GURL gurl(url);
   if (!gurl.is_valid())
     return;
   if (cookie_name.empty()) {
     // Delete all matching host cookies.
-    cookie_monster->DeleteAllForHostAsync(gurl,
-    net::CookieMonster::DeleteCallback());
+    cookie_store->DeleteAllCreatedBetweenForHostAsync(base::Time(), base::Time::Max(), gurl,
+        net::CookieMonster::DeleteCallback());
   } else {
     // Delete all matching host and domain cookies.
-    cookie_monster->DeleteCookieAsync(gurl, cookie_name, base::Closure());
+    cookie_store->DeleteCookieAsync(gurl, cookie_name, base::Closure());
   }
 }
 
@@ -117,11 +117,11 @@ void CookieManager::DeleteCookiesAsync(const std::string& url,
                                        const std::string& cookie_name)
 {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-  scoped_refptr<net::CookieMonster> cookie_monster = GetCookieMonster();
-  if (cookie_monster.get()) {
+  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  if (cookie_store.get()) {
     BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
                             base::Bind(DeleteCookiesOnIOThread,
-                                       cookie_monster,
+                                       cookie_store,
                                        url,
                                        cookie_name));
   }
@@ -169,22 +169,22 @@ void CookieManager::GetAcceptPolicyAsync(Ewk_Cookie_Manager_Policy_Async_Get_Cb
 void CookieManager::GetHostNamesWithCookiesAsync(AsyncHostnamesGetCb callback, void *data) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
   host_callback_queue_.push(new EwkGetHostCallback(callback, data));
-  scoped_refptr<net::CookieMonster> cookie_monster = GetCookieMonster();
-  if (cookie_monster.get()) {
+  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  if (cookie_store.get()) {
     BrowserThread::PostTask(BrowserThread::IO,
                             FROM_HERE,
                             base::Bind(&CookieManager::FetchCookiesOnIOThread,
                                        GetSharedThis(),
-                                       cookie_monster));
+                                       cookie_store));
   }
 }
 
-void CookieManager::FetchCookiesOnIOThread(scoped_refptr<net::CookieMonster> cookie_monster) {
+void CookieManager::FetchCookiesOnIOThread(scoped_refptr<net::CookieStore> cookie_store) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
 
-  if (cookie_monster.get()) {
-    cookie_monster->GetAllCookiesAsync(base::Bind(&CookieManager::OnFetchComplete,
-                                                  GetSharedThis()));
+  if (cookie_store.get()) {
+    cookie_store->GetAllCookiesAsync(base::Bind(&CookieManager::OnFetchComplete,
+                                                GetSharedThis()));
   } else {
     OnFetchComplete(net::CookieList());
   }
@@ -289,7 +289,7 @@ static void SignalGetCookieValueCompleted(base::WaitableEvent* completion,
   completion->Signal();
 }
 
-static void GetCookieValueOnIOThread(scoped_refptr<net::CookieMonster> cookie_monster,
+static void GetCookieValueOnIOThread(scoped_refptr<net::CookieStore> cookie_store,
                                      const GURL& host,
                                      std::string* result,
                                      base::WaitableEvent* completion) {
@@ -297,12 +297,12 @@ static void GetCookieValueOnIOThread(scoped_refptr<net::CookieMonster> cookie_mo
   net::CookieOptions options;
   options.set_include_httponly();
 
-  if (cookie_monster.get()) {
-    cookie_monster->GetCookiesWithOptionsAsync(host,
-                                               options,
-                                               base::Bind(SignalGetCookieValueCompleted,
-                                                          completion,
-                                                          result));
+  if (cookie_store.get()) {
+    cookie_store->GetCookiesWithOptionsAsync(host,
+                                             options,
+                                             base::Bind(SignalGetCookieValueCompleted,
+                                                        completion,
+                                                        result));
   } else {
     DCHECK(completion);
     completion->Signal();
@@ -311,15 +311,15 @@ static void GetCookieValueOnIOThread(scoped_refptr<net::CookieMonster> cookie_mo
 
 std::string CookieManager::GetCookiesForURL(const std::string& url) {
   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-  scoped_refptr<net::CookieMonster> cookie_monster = GetCookieMonster();
-  if (!cookie_monster.get())
+  scoped_refptr<net::CookieStore> cookie_store = GetCookieStore();
+  if (!cookie_store.get())
     return std::string();
 
   std::string cookie_value;
   base::WaitableEvent completion(false, false);
   BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
                           base::Bind(GetCookieValueOnIOThread,
-                                     cookie_monster,
+                                     cookie_store,
                                      GURL(url),
                                      &cookie_value,
                                      &completion));
@@ -337,14 +337,13 @@ scoped_refptr<content::URLRequestContextGetterEfl> CookieManager::GetContextGett
   return scoped_refptr<content::URLRequestContextGetterEfl>(request_context_getter_.get());
 }
 
-scoped_refptr<net::CookieMonster> CookieManager::GetCookieMonster() const {
+scoped_refptr<net::CookieStore> CookieManager::GetCookieStore() const {
   scoped_refptr<content::URLRequestContextGetterEfl> request_context_getter = GetContextGetter();
   if (request_context_getter.get()) {
     return request_context_getter->
            GetURLRequestContext()->
-           cookie_store()->
-           GetCookieMonster();
+           cookie_store();
   } else {
-    return scoped_refptr<net::CookieMonster>();
+    return scoped_refptr<net::CookieStore>();
   }
 }
index d768b48..8ec462e 100644 (file)
@@ -101,12 +101,12 @@ class CookieManager : public base::RefCountedThreadSafe<CookieManager> {
                     const GURL& first_party_url,
                     bool setting_cookie);
   // Fetch the cookies. This must be called in the IO thread.
-  void FetchCookiesOnIOThread(scoped_refptr<net::CookieMonster> cookie_monster);
+  void FetchCookiesOnIOThread(scoped_refptr<net::CookieStore> cookie_store);
   void OnFetchComplete(const net::CookieList& cookies);
 
   scoped_refptr<CookieManager> GetSharedThis();
   scoped_refptr<content::URLRequestContextGetterEfl> GetContextGetter() const;
-  scoped_refptr<net::CookieMonster> GetCookieMonster() const;
+  scoped_refptr<net::CookieStore> GetCookieStore() const;
   scoped_refptr<content::URLRequestContextGetterEfl> request_context_getter_;
   //cookie policy information
   base::Lock lock_;
index 13534fe..3038c06 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "base/synchronization/waitable_event.h"
 #include "components/autofill/content/browser/content_autofill_driver.h"
-#include "content/browser/memory/memory_pressure_controller.h"
+#include "content/browser/memory/memory_pressure_controller_impl.h"
 #include "content/public/browser/appcache_service.h"
 #include "content/public/browser/browser_context.h"
 #include "content/public/browser/browser_thread.h"
@@ -333,7 +333,7 @@ void EWebContext::NotifyLowMemory() {
   // Also, newer chromium rebases (m49+) have a new API for this named
   // MemoryPressureController::SendPressureNotification. Use it when available.
   DLOG(WARNING) << "Releasing as much memory as possible.";
-  content::MemoryPressureController::GetInstance()->
+  content::MemoryPressureControllerImpl::GetInstance()->
       SimulatePressureNotificationInAllProcesses(
           base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL);
 }
index 9b4dd4d..8f18783 100644 (file)
@@ -375,40 +375,33 @@ void EWebView::Stop() {
 }
 
 void EWebView::Suspend() {
-
   CHECK(web_contents_);
   RenderViewHost *rvh = web_contents_->GetRenderViewHost();
-  content::ResourceDispatcherHost* rdh = content::ResourceDispatcherHost::Get();
+  RenderFrameHost* rfh = web_contents_->GetMainFrame();
   CHECK(rvh);
-  CHECK(rdh);
+  CHECK(rfh);
 
   content::BrowserThread::PostTask(
     content::BrowserThread::IO, FROM_HERE,
-    base::Bind(&content::ResourceDispatcherHost::BlockRequestsForRoute,
-      base::Unretained(rdh),
-      rvh->GetProcess()->GetID(), rvh->GetRoutingID()));
+    base::Bind(&content::ResourceDispatcherHost::BlockRequestsForFrameFromUI, rfh));
 
-  RenderViewHost* render_view_host = web_contents_->GetRenderViewHost();
-  if (render_view_host)
-    render_view_host->Send(new EwkViewMsg_SuspendScheduledTask(render_view_host->GetRoutingID()));
+  if (rvh)
+    rvh->Send(new EwkViewMsg_SuspendScheduledTask(rvh->GetRoutingID()));
 }
 
 void EWebView::Resume() {
   CHECK(web_contents_);
   RenderViewHost *rvh = web_contents_->GetRenderViewHost();
-  content::ResourceDispatcherHost* rdh = content::ResourceDispatcherHost::Get();
+  RenderFrameHost *rfh = web_contents_->GetMainFrame();
   CHECK(rvh);
-  CHECK(rdh);
+  CHECK(rfh);
 
   content::BrowserThread::PostTask(
     content::BrowserThread::IO, FROM_HERE,
-    base::Bind(&content::ResourceDispatcherHost::ResumeBlockedRequestsForRoute,
-      base::Unretained(rdh),
-      rvh->GetProcess()->GetID(), rvh->GetRoutingID()));
+    base::Bind(&content::ResourceDispatcherHost::ResumeBlockedRequestsForFrameFromUI, rfh));
 
-  RenderViewHost* render_view_host = web_contents_->GetRenderViewHost();
-  if (render_view_host)
-    render_view_host->Send(new EwkViewMsg_ResumeScheduledTasks(render_view_host->GetRoutingID()));
+  if (rvh)
+    rvh->Send(new EwkViewMsg_ResumeScheduledTasks(rvh->GetRoutingID()));
 }
 
 double EWebView::GetTextZoomFactor() const {
@@ -1180,7 +1173,7 @@ SelectionControllerEfl* EWebView::GetSelectionController() const {
 }
 
 void EWebView::SelectLinkText(const gfx::Point& touch_point) {
-  float device_scale_factor = gfx::Screen::GetNativeScreen()->
+  float device_scale_factor = gfx::Screen::GetScreen()->
       GetPrimaryDisplay().device_scale_factor();
   RenderViewHost* render_view_host = web_contents_->GetRenderViewHost();
   render_view_host->Send(new ViewMsg_SelectLinkText(
@@ -1313,19 +1306,19 @@ _Ewk_Hit_Test* EWebView::RequestHitTestDataAtBlinkCoords(int x, int y, Ewk_Hit_T
 }
 
 void EWebView::EvasToBlinkCords(int x, int y, int* view_x, int* view_y) {
-  DCHECK(gfx::Screen::GetNativeScreen());
+  DCHECK(gfx::Screen::GetScreen());
   Evas_Coord tmpX, tmpY;
   evas_object_geometry_get(evas_object_, &tmpX, &tmpY, NULL, NULL);
 
   if (view_x) {
     *view_x = x - tmpX;
-    *view_x /= gfx::Screen::GetNativeScreen()->
+    *view_x /= gfx::Screen::GetScreen()->
         GetPrimaryDisplay().device_scale_factor();
   }
 
   if (view_y) {
     *view_y = y - tmpY;
-    *view_y /= gfx::Screen::GetNativeScreen()->
+    *view_y /= gfx::Screen::GetScreen()->
         GetPrimaryDisplay().device_scale_factor();
   }
 }
@@ -1674,7 +1667,7 @@ bool EWebView::IsFullscreen() {
 
 void EWebView::ExitFullscreen() {
   WebContentsImpl* wci = static_cast<WebContentsImpl*>(web_contents_.get());
-  wci->ExitFullscreen();
+  wci->ExitFullscreen(false);
 }
 
 double EWebView::GetScale() {
index 07e5e0d..bf7464b 100644 (file)
@@ -5,7 +5,7 @@ includedir=${prefix}/include
 
 Name: chromium-ewk
 Description: EWK API based on chromium-efl engine
-Version: 49.2623.0.8-1
+Version: 50.2661.0.14-1
 Requires: chromium-efl
 Libs: -L${libdir} -lchromium-ewk
 Cflags: -I${includedir}/chromium-ewk
index 073e5c1..bca0649 100644 (file)
@@ -23,6 +23,6 @@ _Ewk_Geolocation_Permission_Request::~_Ewk_Geolocation_Permission_Request() {
 
 void _Ewk_Geolocation_Permission_Request::runCallback(bool allowed) {
   callback_.Run(allowed?
-      content::PermissionStatus::PERMISSION_STATUS_GRANTED:
-      content::PermissionStatus::PERMISSION_STATUS_DENIED);
+      content::PermissionStatus::GRANTED:
+      content::PermissionStatus::DENIED);
 }
index 2fe0ab7..90fb725 100644 (file)
@@ -123,8 +123,8 @@ bool Ewk_Notification_Permission_Request::Reply(bool allow) {
   decided_ = true;
 
   callback_.Run(allow?
-      content::PermissionStatus::PERMISSION_STATUS_GRANTED:
-      content::PermissionStatus::PERMISSION_STATUS_DENIED);
+      content::PermissionStatus::GRANTED:
+      content::PermissionStatus::DENIED);
 
   if (suspended_) {
     // If decision was suspended, then it was not deleted by the creator
index 97b611d..0243c13 100644 (file)
@@ -61,7 +61,7 @@ _Ewk_Policy_Decision::_Ewk_Policy_Decision(const GURL &request_url,
     if (response_headers->EnumerateHeader(NULL, "Set-Cookie", &set_cookie_))
       cookie_ = set_cookie_;
 
-    void* iter = NULL;
+    size_t iter = 0;
     std::string name;
     std::string value;
     response_headers_ = eina_hash_string_small_new(FreeStringShare);
index 8e9a977..88d40a1 100644 (file)
@@ -24,6 +24,7 @@
 #include "renderer/render_view_observer_efl.h"
 #include "components/visitedlink/renderer/visitedlink_slave.h"
 #include "content/public/renderer/content_renderer_client.h"
+#include "third_party/WebKit/public/platform/URLConversion.h"
 #include "third_party/WebKit/public/platform/WebURLError.h"
 #include "third_party/WebKit/public/platform/WebURLRequest.h"
 #include "third_party/WebKit/public/web/WebDataSource.h"
@@ -204,7 +205,8 @@ bool ContentRendererClientEfl::HandleNavigation(content::RenderFrame* render_fra
    const content::RenderView* render_view =
        content::RenderView::FromWebView(frame->view());
    bool result = false;
-   GURL referrer_url(GURL(request.httpHeaderField(blink::WebString::fromUTF8("Referer"))));
+   GURL referrer_url(blink::WebStringToGURL(
+       request.httpHeaderField(blink::WebString::fromUTF8("Referer"))));
    blink::WebReferrerPolicy referrer_policy =
        request.isNull() ? frame->document().referrerPolicy() : request.referrerPolicy();
    int render_view_id = render_view->GetRoutingID();
index 8140869..1ca3f2e 100644 (file)
@@ -21,7 +21,7 @@
 #include "third_party/WebKit/public/web/WebView.h"
 
 namespace skia {
-  typedef PlatformCanvas VectorCanvas;
+  typedef SkCanvas VectorCanvas;
 }
 
 namespace {
index 5076775..706982b 100644 (file)
@@ -21,6 +21,7 @@
 #include "content/renderer/external_popup_menu.h"
 #include "common/render_messages_ewk.h"
 #include "renderer/content_renderer_client_efl.h"
+#include "third_party/WebKit/public/platform/URLConversion.h"
 #include "third_party/WebKit/public/platform/WebURLError.h"
 #include "third_party/WebKit/public/platform/WebURLRequest.h"
 #include "third_party/WebKit/public/web/WebDocument.h"
@@ -189,7 +190,7 @@ void RenderFrameObserverEfl::DidChangeScrollOffset() {
 
 void RenderFrameObserverEfl::WillSubmitForm(
     const blink::WebFormElement& form) {
-  GURL url(form.action());
+  GURL url(blink::WebStringToGURL(form.action()));
   Send(new EwkHostMsg_FormSubmit(render_frame()->GetRoutingID(), url));
 }
 
index 6e2e324..3a05c2c 100644 (file)
@@ -27,6 +27,7 @@
 #include "third_party/WebKit/public/web/WebDataSource.h"
 #include "third_party/WebKit/public/web/WebFormElement.h"
 #include "third_party/WebKit/public/web/WebFrame.h"
+#include "third_party/WebKit/public/web/WebFrameContentDumper.h"
 #include "third_party/WebKit/public/web/WebHitTestResult.h"
 #include "third_party/WebKit/public/web/WebInputEvent.h"
 #include "third_party/WebKit/public/web/WebLocalFrame.h"
@@ -240,7 +241,9 @@ void RenderViewObserverEfl::OnPlainTextGet(int plain_text_get_callback_id)
   blink::WebFrame* frame = render_view()->GetWebView()->mainFrame();
   if (!frame)
     return;
-  blink::WebString content = frame->contentAsText(INT_MAX);
+
+  // WebFrameContentDumper should only be used for testing purposes. See http://crbug.com/585164.
+  blink::WebString content = blink::WebFrameContentDumper::dumpFrameTreeAsText(frame->toWebLocalFrame(), INT_MAX);
   Send(new EwkHostMsg_PlainTextGetContents(render_view()->GetRoutingID(), content.utf8(), plain_text_get_callback_id));
 }
 
index 1f14d7c..393a637 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "text_encoding_map_efl.h"
 
+#include <algorithm>
 #include <string>
 
 namespace {
index 03aa1b9..810d848 100644 (file)
@@ -305,7 +305,12 @@ void URLRequestContextGetterEfl::CreateSQLitePersistentCookieStore(
 
   if (persistent_store.get() && persist_session_cookies)
     cookie_monster->SetPersistSessionCookies(true);
-  cookie_monster->SetEnableFileScheme(true);
+
+  std::vector<std::string> schemes;
+  for (int i = 0; i < net::CookieMonster::kDefaultCookieableSchemesCount; ++i)
+    schemes.push_back(std::string(net::CookieMonster::kDefaultCookieableSchemes[i]));
+  schemes.push_back(url::kFileScheme);
+  cookie_monster->SetCookieableSchemes(schemes);
 
   cookie_store_path_ = path;
 }
@@ -322,8 +327,16 @@ void URLRequestContextGetterEfl::CreatePersistentCookieStore(const base::FilePat
       NULL,
       NULL);
   cookie_store_= CreateCookieStore(config);
-  cookie_store_->GetCookieMonster()->SetPersistSessionCookies(persist_session_cookies);
-  cookie_store_->GetCookieMonster()->SetEnableFileScheme(true);
+  net::CookieMonster* cookie_monster = static_cast<net::CookieMonster*>(
+      cookie_store_.get());
+  cookie_monster->SetPersistSessionCookies(persist_session_cookies);
+
+  std::vector<std::string> schemes;
+  for (int i = 0; i < net::CookieMonster::kDefaultCookieableSchemesCount; ++i)
+    schemes.push_back(std::string(net::CookieMonster::kDefaultCookieableSchemes[i]));
+  schemes.push_back(url::kFileScheme);
+  cookie_monster->SetCookieableSchemes(schemes);
+
   DCHECK(url_request_context_);
   url_request_context_->set_cookie_store(cookie_store_.get());
 }
index a94fc36..b798dd4 100644 (file)
@@ -4,7 +4,6 @@
 
 #include "web_contents_delegate_efl.h"
 
-#include "base/prefs/pref_service.h"
 #include "base/strings/utf_string_conversions.h"
 #include "browser/favicon/favicon_database.h"
 #include "browser/inputpicker/color_chooser_efl.h"
@@ -12,6 +11,7 @@
 #include "browser/policy_response_delegate_efl.h"
 #include "common/render_messages_ewk.h"
 #include "components/password_manager/core/common/password_manager_pref_names.h"
+#include "components/prefs/pref_service.h"
 #include "content/browser/renderer_host/render_widget_host_view_efl.h"
 #include "content/common/content_switches_internal.h"
 #include "content/common/date_time_suggestion.h"
index 4d18fd4..80ca2ca 100644 (file)
@@ -12,7 +12,6 @@
 #include "content/public/browser/browser_thread.h"
 #include "net/base/filename_util.h"
 #include "net/base/net_errors.h"
-#include "net/base/net_util.h"
 #include "net/url_request/url_request_error_job.h"
 #include "net/url_request/url_request_file_dir_job.h"
 #include "net/url_request/url_request_file_job.h"
index 405ff4e..dcaac1b 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="49.2623.0.8">
+<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="50.2661.0.14">
     <label> mini browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="sns.park@samsung.com">SWC</author>
     <description> mini browser application based on chromium-efl </description>
index 81b013e..4e8e922 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="49.2623.0.8">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="50.2661.0.14">
     <label> mini browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="sns.park@samsung.com">SWC</author>
     <description> mini browser application based on chromium-efl </description>
index d415f50..6087d8d 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="49.2623.0.8"
+<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="50.2661.0.14"
     <label> micro browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="m.lapinski@samsung.com">SWC</author>
     <description> micro browser application based on chromium-efl </description>
index ead9b29..03107e6 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="49.2623.0.8">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.chromium-efl" version="50.2661.0.14">
     <label> micro browser application for chromium-efl package </label>
     <author href="www.samsung.com" email="m.lapinski@samsung.com">SWC</author>
     <description> micro browser application based on chromium-efl </description>
index c6a6f02..9a14c2c 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="49.2623.0.8">
+<manifest xmlns="http://tizen.org/ns/packages" package="chromium-efl" version="50.2661.0.14">
     <label>uBrowser application for chromium-efl package</label>
     <author href="www.samsung.com" email="p.tworek@samsung.com">SRPOL</author>
     <description>Small reference browser application for chromium-efl port</description>
index c6f8217..a639d8f 100644 (file)
@@ -5,8 +5,8 @@
 %define _binary_payload w3.gzdio
 
 Name:           chromium-efl-libs
-%define         ChromiumVersion 49.2623.0
-%define         Week 8
+%define         ChromiumVersion 50.2661.0
+%define         Week 14
 Version:        %{ChromiumVersion}.%{Week}
 Release:        1
 Summary:        Chromium-based app runtime, private libraries
index 81bfbb1..6ab0143 100644 (file)
@@ -1,8 +1,8 @@
 Name: chromium-efl
 Summary: Chromium EFL
 # Set by by scripts/update-chromium-version.sh
-%define ChromiumVersion 49.2623.0
-%define Week 8
+%define ChromiumVersion 50.2661.0
+%define Week 14
 Version: %{ChromiumVersion}.%{Week}
 Release: 1
 # The 'Group' should be specified as one of the following valid group list.
@@ -15,6 +15,12 @@ License: LGPL-2.1 or BSD-2-Clause
 Source0: %{name}-%{version}.tar.gz
 Source1: content_shell.in
 
+# [M50_2661] Temporary enabling the nodebug option by default.
+#            The size of libchromium-ewk.so exceeds 2GB with debug information.
+#            Because of this size, the QEMU cannot generate the rpm package.
+#            FIXME: http://suprem.sec.samsung.net/jira/browse/TWF-891
+%define nodebug 1
+
 %if 0%{?nodebug}
 %global __debug_install_post %{nil}
 %global debug_package %{nil}
index d022e05..d8e1add 100644 (file)
@@ -5,7 +5,7 @@
 %define _binary_payload w3.gzdio
 
 Name:           crosswalk-bin
-Version:        15.49.2623.0
+Version:        15.50.2661.0
 Release:        0
 Summary:        Chromium-based app runtime
 License:        (BSD-3-Clause and LGPL-2.1+)
index 43523f1..8c98009 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
     <Id>kmcele1k1p</Id>
-    <Version>49.2623.0.8</Version>
+    <Version>50.2661.0.14</Version>
     <Type>C++App</Type>
     <Descriptions>
         <Description Locale="eng-PH"/>
index b8940a4..509d9d2 100644 (file)
@@ -29,6 +29,7 @@
 
     'tizen_multimedia_eme_support%': 1,
     'enable_web_speech%': 0,
+    'rtc_use_h264%' : 0, # override value in third_party/webrtc/build/common.gypi
 
 # [M44_2403] Temporary disabling the tizen_disable_gpu_thread for switching to new chromium
 #            FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=14046