1. Apr 15, 2015
    • Andras Becsi's avatar
      Fix QtCreator loading of qtwebengine.pro · ada6b1a1
      Andras Becsi authored
      
      When QtCreator loads qtwebengine.pro some parsing errors
      are shown if it picks up the system python3 for basic detection.
      Although we do not plan to support python3 with all of our
      scripts (since Chromium does not) these simple cases can
      be fixed by using the function version of python's print.
      This patch also adds the Chromium source path to the core
      INCLUDEPATH so that Chromium headers are indexed as well.
      
      Change-Id: Ia6dec1c776fdcddf875fb8e814d8fb33b7340989
      Reviewed-by: default avatarMichael Brüning <michael.bruning@theqtcompany.com>
      ada6b1a1
  2. Feb 16, 2015
  3. Jan 20, 2015
    • Zeno Albisser's avatar
      Update Chromium to version 40.0.2214.28 and ninja to 1.5.3. · 390a6fda
      Zeno Albisser authored
      * scoped_refptr operator for implicit conversion to pointer has
        been disabled upstream: https://codereview.chromium.org/510323002
      * Group permission API as done upstream:
        https://codereview.chromium.org/622793002
      * content_worker gyp target has been removed upstream.
      * GetPageThumbnailData moved to DevToolsManagerDelegate.
      * ui/ui_resources has been renamed to ui/resources
      * WebPreferences and ResourceType have moved inside content.
      * Merge ResourceBundle's InitSharedInstanceLocaleOnly with InitSharedInstanceWithLocale():
        https://codereview.chromium.org/457103003
      * Remove obsolete accessibility events.
      * AX_EVENT_SELECTED_TEXT_CHANGED has been renamed to AX_EVENT_TEXT_SELECTION_CHANGED
      * AX_ROLE_MATH_ELEMENT was removed upstream. https://codereview.chromium.org/695133002
      * Screen::IsDIPEnabled has been removed upstream. https://codereview.chromium.org/672823002
      * Update DevToolsHttpHandlerDelegateQt according to ShellDevToolsManagerDelegate.
      * Various functionality from DevToolsHttpHandler was moved to DevToolsManagerDelegate
        https://codereview.chromium.org/560323005
      * DevToolsHttpHandler::Start expects a scoped_ptr now.
      * Make sure event_factory_evdev.h is not included when USE_OZONE is not defined
      * ErrorPageParams was moved into namespace error_page.
      * Media Access is now handled by ContentBrowserClient::CheckMediaAccessPermission
      * SpecialStoragePolicy moved to namespace storage
      * Add implementation for new pure virtual function BrowserContext::GetSSLHostStateDelegate.
      * RenderPass::Id was renamed to RenderPass::RenderPassId
      * Include view_messages.h for ViewHostMsg_TextInputState_Param
      * CERT_UNABLE_TO_CHECK_REVOCATION has been deprecated by Chromium:
        https://codereview.chromium.org/449743002
      * MailboxManager::ConsumeTexture only takes the mailbox as an argument
      * Replace RWHVQt::TextInputStateChanged with RWHVQt::TextInputTypeChanged.
      * RenderWidgetHostView::ScrollOffsetChanged has been removed.
      * SkBitmap::Config was removed upstream.
      * CopyFromCompositingSurfaceCallback has become an own type.
      * AcceleratedSurfaceInitialized only takes route_id as an argument.
      * ServerBoundCertService has been renamed to ChannelIDService.
        Related API has been renamed accordingly.
      * TextureImageTransportSurface was removed upstream.
      * Update MediaCaptureDispatcher::OnMediaRequestStateChanged signature.
      * AudioStream related functions are gone upstream.
        https://codereview.chromium.org/569713002
      * Add implementation for RenderWidgetHostViewQt::GetLastScrollOffset.
      * Include generic touch_device implementation.
      * switches::kDisableDesktopNotifications was removed upstream.
        https://codereview.chromium.org/607843002
      * PageTransition moved to ui.
      * Messages headers are not guarded. Including them multiple times does hurt.
      * ScaleGestureDetector does not create a standalone GestureDetector anymore.
        https://codereview.chromium.org/501503003
      * MotionEvent::Cancel and Clone are not virtual anymore.
        https://codereview.chromium.org/502993004
      * Exclude os_exchange_data_provider_mac from build.
      * Remove argument from ScopedClipboardWriter ctor.
        https://codereview.chromium.org/558913003
      
      
      * Remove ShowPopupMenu override from WebContentsQt.
        The function is not pure virtual anymore,
        and we never implemented any specifics.
      * Do not use clang on desktop linux.
      * Request functions in ContentBrowserClient
        were merged into RequestPermission.
      * ninja: use configure.py --bootstrap instead of bootstrap.py
      
      Change-Id: I3575612826db7845461a949b4e737264bb4e8d88
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@theqtcompany.com>
      390a6fda
  4. Jan 15, 2015
  5. Oct 13, 2014
  6. Sep 26, 2014
  7. Sep 03, 2014
  8. Aug 26, 2014
  9. Aug 19, 2014
  10. Aug 14, 2014
    • Jocelyn Turcotte's avatar
      Use the toolchain from PATH on Windows · fcf96a61
      Jocelyn Turcotte authored
      
      We don't want to fetch the compiler path from the mkspec on Windows
      the same way that we do on linux/embedded. Qt usually let the build
      environment decide the MSVC toolchain, as it is usually done on
      Windows.
      
      This patch also passes the ninja_use_custom_environment_files ninja
      generator option to make sure that gyp doesn't try to construct the
      build environment by running the env scripts itself.
      
      Change-Id: I6e04471eb994b81a9f1b8b5f149b4dbddbb320a8
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      fcf96a61
    • Jocelyn Turcotte's avatar
      Fix the build on Windows due to backslashes · 65f385bb
      Jocelyn Turcotte authored
      
      A gyp variable containing backslashes would be evaluated twice when
      passed through grit_action.gypi in src/core/chrome_qt.gyp.
      
      For some reason, gyp would end up reducing the escaping of
      backslashes once for each variable evaluation, which would completely
      remove backslashes from the value.
      
      Fix the issue by making sure that we pass paths to gyp with slashes
      instead of backslashes. Python will know what to do with them
      regardless.
      
      Change-Id: Id38866fd63a2ba1524a8c998fe577f7f50fca059
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      65f385bb
    • Jocelyn Turcotte's avatar
      Fix the build on windows when qtwebengine.chromiumsrcdir isn't set · 4be6a155
      Jocelyn Turcotte authored
      
      qtwe_chromium_obj_dir wasn't falling back to src/3rdparty if the
      config couldn't be found in git.
      
      Move the fallback logic to a getChromiumSrcDir qmake function, and
      use it in both places.
      
      The build system will now also print that the Chromium sources will
      follow the git config if found instead of the other way around,
      since this should now be the normal case as part of Qt5.
      
      Change-Id: I5ab972ab53156c1bd033518e2eb51013559491ac
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      4be6a155
    • Jocelyn Turcotte's avatar
      Update the QtWebEngineCore library to run on top of Chromium 37 · b1d423a3
      Jocelyn Turcotte authored
      
      Most of the patch is about upstream classes/methods that changed.
      
      Other important details:
      - icu data files are now used by default
      - cygwin is no longer required to build on Windows
      - RenderFrameHost has been replacing RenderViewHost in a few places,
        following the separate process iframes support in Chromium
      - The user agent is accessed through ContentClient::GetUserAgent
        instead of from the command line switches
      
      Change-Id: I86cc93aff7ce31176a80b0b4a5d54025674a451c
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      b1d423a3
  11. Aug 04, 2014
    • Pierre Rossi's avatar
      Expose better error information in loadRequest. · 7d90b441
      Pierre Rossi authored
      
      Use the chromium localized error strings for that purpose, otherwise the
      error description is always empty.
      
      While we're at it, let's tap into the chromium error pages, which should
      hopefully make sense for most errors, and add some static asserts to
      check that the qt quick enum and the core one are in sync.
      
      Change-Id: Icf8fa7c3bf4a674c60a10950422135fb6930447a
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      7d90b441
  12. Apr 03, 2014
  13. Apr 01, 2014
  14. Mar 28, 2014
  15. Mar 27, 2014
  16. Mar 11, 2014
    • Zeno Albisser's avatar
      Always disable tcmalloc. · d1deca6c
      Zeno Albisser authored
      
      We cannot enable tcmalloc as otherwise we would
      have to use it for all of Qt as well.
      If we allocate with tcmalloc and free without
      (or the other way round) this leads to errors.
      Specifically it led to something that looked
      like a double free corruption on embedded linux
      for an event that is created in qtwebengine code
      but deleted within Qt.
      
      Change-Id: Ia8c8da09e78968648046761e34f7f674769cfdc2
      Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      d1deca6c
  17. Mar 07, 2014
  18. Jan 13, 2014
  19. Jan 10, 2014
  20. Dec 10, 2013
    • Zoltan Arvai's avatar
      Fix wrong cwd in getChromiumSrcDir(). · d7c5850b
      Zoltan Arvai authored
      
      Working directory can be wrong when calling getChromiumSrcDir.
      On Windows cwd is inside Chrome source directory when it called
      from repack_locales.py that causes git config to return empty
      value. This causes the function to fall back to snapshot directory
      even if upstream is used.
      
      Changing cwd to qtwebengine_root, running git config and restoring
      original cwd resolves the problem.
      
      Change-Id: I1bef84ce791f63d3c9e7d6c9506e99c0c53cfc3e
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      d7c5850b
  21. Dec 03, 2013
  22. Nov 28, 2013
    • Jocelyn Turcotte's avatar
      Moving sources to src part 2: Adjust paths. · 1c5e3092
      Jocelyn Turcotte authored
      
      NOTE: To build after this you should rerun init-repository.py or run
      $> git submodule sync
      $> git submodule update
      $> git config qtwebengine.chromiumsrcdir src/3rdparty
      
      This makes everything build by adjusting paths.
      
      Other mixed-in changes:
      - Rename qtwebengine_src variables in scripts to qtwebengine_root to
        avoid confusion.
      - Cleanup the release and debug extra targets that were in lib.pro.
        This file has also been split into src.pro and core.pro.
      
      Change-Id: Ieee9158a65f526b15244eaca59e779b7069d337e
      Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      1c5e3092
    • Jocelyn Turcotte's avatar
      Moving sources to src part 1: Move files. · fd61d752
      Jocelyn Turcotte authored
      This only move files without adjusting any paths.
      
      This moves:
      - lib/quick -> src/webengine/api (API files)
        lib/quick -> src/webengine (other files)
        This contains the main QtWebEngine module library since
        <ec7b2ee7
      
      >.
      - lib/widgets -> src/webenginewidgets
        Also rename this directory to match its module name and rename Api to api.
      - lib -> src/core
      - process -> src/process
      - resources -> src/core/resources
      - tools/* -> tools/scripts/
      
      The build directory is spread as follow:
      - build/build.pro -> src/core/gyp_run.pro
      - build/qmake_extras/* -> src/core/ (for the host and target .pro files)
      - build/qmake -> tools/qmake
      - Build related scripts -> tools/buildscripts
      
      Change-Id: I0cded1de772c99c0c1da6536c9afea353236b4a1
      Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
      Reviewed-by: default avatarPierre Rossi <pierre.rossi@gmail.com>
      Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
      fd61d752