Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Merge some GN changes from master to next #382

Closed
wants to merge 30 commits into from

Commits on Aug 31, 2016

  1. [Android] Change the API for ApplicationStatus in base dir.

    Chromium class inherits from Application directly. This is not suitable
    for Crosswalk embedding API. Instead, define a new API which can pass Application
    instance as the parameter instead of asking users' application inheriting from
    Chromium Application.
    
    It is caused by this upstream CL: https://codereview.chromium.org/159173002
    
    M49 rebasing notes: adjusted to the following CLs:
     * https://codereview.chromium.org/1649963002
     * https://codereview.chromium.org/1678103006
    
    M50 rebasing notes: adjusted to the following CLs:
     * https://codereview.chromium.org/1605993004
    
    M53 rebasing notes: adapted to foolowing CLs:
     * https://codereview.chromium.org/2060293002
    
    M53 rebasing notes: added GN support:
     * Add newly-introduced ApplicationStatusManager.java to base/BUILD.gn
    Yongsheng Zhu authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    b5b9a1f View commit details
    Browse the repository at this point in the history
  2. [Android] Add a new API to simulate activity started on ApplicationSt…

    …atusManager
    
    When ApplicationStatus initialized after application started, the onActivityCreated(),
    onActivityStarted() and onActivityResumed() callbacks will be missed.
    This function will give the chance to simulate these three callbacks.
    
    BUG=XWALK-1366
    
    M50 Rebasing: Adapted to following changes,
     * https://codereview.chromium.org/1605993004
    kurli authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    bccda36 View commit details
    Browse the repository at this point in the history
  3. [Android] Ignore status from non tracked activities

    When activity_1 start activity_2(contains XWalkView), ApplicationStatus will start tracking when XWalkView initialized,
    But ApplicationStatus will receive status such as onStop from activity_1, we do not need track activity_1, just ignore it.
    For upstream, there is no such kind of case, ApplicationStatus will track all activities inside the package.
    
    BUG=XWALK-1454
    kurli authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    2e0423e View commit details
    Browse the repository at this point in the history
  4. [Android] Add Resource loading filter for MediaPlayer

    Why: There are requirements to customize the MediaPlayer resource
    loading on Android which is implemented in Chromium code base.
    Till now we have two points:
        1) Support the file:///android_asset in MediaPlayer.
        2) Support app scheme in the resource loading of MediaPlayer.
    Unfortunately, the resource loading of MediaPlayer on Andoid goes
    a different way from other ports and no interface to handle this.
    
    How: Add a new interface ResourceLoadingFilter to filter the resource
    loading(setDataSource) in MediaPlayerBridge, which could be used in
    xwalk to do the customization by overriding the function of
    shouldOverrideResourceLoading() in xwalk.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-880
    Olli Raula authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ccdca60 View commit details
    Browse the repository at this point in the history
  5. [Android] Fix the crash of GetUserMedia

    Crash happens when releasing the audio resource of localusermedia in
    openSL ES. On Android there are two ways to get the audio input:
    openSL ES and java Recording API. We swtich to the Recording API as a
    workaround of the bug. The limitation is Recording API only be avaiable
    after version 15 of SDK.
    
    BUG=XWALK-1833
    xingnan authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    dc3ef5c View commit details
    Browse the repository at this point in the history
  6. [Android] Add a new listener to listen the first rendered frame

    To support the feature of launch screen. Added a new listener FirstRenderedFrameListener.
    This listener will be triggered when the first visible content has been updated to the screen.
    
    SPEC: https://docs.google.com/a/intel.com/document/d/17PuNuHRTQuREUpaCvj-eEx7uYi2avd-VW-oaMXMpvwo/edit?pli=1#
    Design Doc: https://docs.google.com/a/intel.com/document/d/1YLajlZC7CkBOtEvzD6p6yeBr0HrPsaIGX8Eqhr3oTF4/edit#heading=h.mfsu3bk9566e
    Bug: XWALK-637
    
    Reworked for M37
    kurli authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6fb55cc View commit details
    Browse the repository at this point in the history
  7. [Android] Use TextureView as an alternative compositing surface target

    Unlike SurfaceView, TextureView can be moved, transformed and animated,
    but may consume a bit more memory resource. We need this since Crosswalk
    embedding API should have the capability of animating XWalkView in the
    embedder.
    
    See the discussion in chromium graphics-dev group
    https://groups.google.com/a/chromium.org/forum/#!topic/graphics-dev/Z0yE-PWQXc4
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1574
    Hongbo Min authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ab88463 View commit details
    Browse the repository at this point in the history
  8. [Android] Bail out early in onNativeLibraryLoaded with TextureView.

    We do not need to initialize mSurfaceCallback if we are not using
    SurfaceView.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1887
    
    [M49 notes: this commit used to be "[Android] Only initialize
     ContentReadbackHandler in onNativeLibraryLoaded for TextureView", and
     had to be reworked because ContentReadbackHandler was removed in
     http://crrev.com/1415803006 and http://crrev.com/1514403002, so we now
     only need to stop earlier when not using SurfaceView]
    Hongbo Min authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    63d2669 View commit details
    Browse the repository at this point in the history
  9. .gitignore: Ignore src/third_party/khronos/CL.

    We started checking out this directory with Crosswalk PR#2426, but since
    we do not have it in .gitignore the directory ends up being removed
    every time we run gclient sync.
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    b1860a5 View commit details
    Browse the repository at this point in the history
  10. [Android] Allow constructor of Notifications on Android.

    We support notifications in Android but upstream doesn't so we
    should make sure they are enabled.
    
    We should really consider if the "desktop" notifications are the way
    forward for us in Android now that we have ServiceWorker and
    push notifications.
    
    https://codereview.chromium.org/920153002
    
    BUG=XWALK-3653
    Olli Raula authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    57bae04 View commit details
    Browse the repository at this point in the history
  11. [Android] Implement ContentViewRenderView.setZOrderOnTop

    Use this API to control whether the SurfaceView's surface is placed on top of its window.
    Note this only works when SurfaceView is used. For TextureView, it doesn't work.
    
    Related to XWALK-3778,XWALK-3742
    axinging authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    a03b03d View commit details
    Browse the repository at this point in the history
  12. Fix build on Windows when using components build.

    Due to some ffmpeg changes which now statically build ffmpeg onto
    Chromium/Crosswalk the component build was broken on Windows. It turns
    out that it couldn't link due to missing symbols in ffmpeg.dll (the very
    same we use in sysapp code). It's due to two changes in upstream :
    - https://chromium.googlesource.com/chromium/third_party/ffmpeg/+/467a5ef970
    which now use ffmpeg.sigs to generate the exported symbols
    - https://chromium.googlesource.com/chromium/third_party/ffmpeg/+/59c940d188
    which is a following patch after ffmpegsumo removal.
    
    The code we have in chromium-crosswalk which adds the extra symbols
    we use from ffmpeg needs to be adapted and the sigs file needs to be
    renamed. See original patch :
    
    crosswalk-project@60bc442
    darktears authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    f2ab460 View commit details
    Browse the repository at this point in the history
  13. [Android] Allow intercepter to extract paks

    Embedders may want to put paks in res/raw instead of assets.
    Because for Android Library project, assets is not handled well.
    Add intercepter in ResourceExtractor to allow embedder to
    provide the interceptable resources' list and the inputstream
    to intercept with.
    Shiliu Wang authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    7b1c02c View commit details
    Browse the repository at this point in the history
  14. [Windows] Enable presentation API

    The demo at https://storage.googleapis.com/presentation-api/index.html
    can be used to see how the API is works.
    The Crosswalk Presentation API implementation on Windows requires
    having a connected non-primary display (either wired (HDMI, Display Port, ...)
    or wireless (miracast)).
    
    BUG=XWALK-4811
    Mikhail Pozdnyakov authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    35c5103 View commit details
    Browse the repository at this point in the history
  15. [Android] Expose the constructor of ContentView

    Unlike WebView, XWalkView uses a ContentView object as its child view,
    which is actually receiving all kinds of events such as touching and
    clicking. To let the XWalkView object receive these events too, it's
    necessary to override relevant methods of ContentView and redirect
    them to the XWalkView object. So we add XWalkContentView and have it
    extend ContentView. To make this possible, the contructor of ContentView
    must be public.
    
    XWalkContentView is a temporary solution. We are targeting to optimize
    the hierarchy of XWalkView to make it more like WebView. This task can
    be tracked via XWALK-6118.
    
    BUG=XWALK-6014
    Lin Sun authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    59a1fb8 View commit details
    Browse the repository at this point in the history
  16. [Windows] Support RealSense Cameras

    Add Intel RSSDK based video capture device VideoCaptureDeviceRSWin.
    
    It allows:
    1. Crosswalk apps to share the RealSense camera with other native apps
       simultaneously.
    2. Crosswalk apps to use getUserMedia API to preview RealSense camera
       in real-time while accessing RSSDK middlewares in Crosswalk extensions
       simultaneously.
    
    This feature is behind "use_rssdk" build flag and "use-rs-video-capture"
    runtime flag.
    
    TEST=
    On a device with RealSense camera and RSSDK, execute
    1. DF_RawStreams.exe (RSSDK sample)
    2. xwalk.exe --use-rs-video-capture
       https://webrtc.github.io/samples/src/content/devices/input-output/
    Crosswalk and DF_RawStreams.exe should capture video frames from
    RealSense camera simultaneously.
    
    BUG=XWALK-6028
    huningxin authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    2b34a3a View commit details
    Browse the repository at this point in the history
  17. Page Visibility API: visibilitychange on Windows screen lock/unlock

    BUG=XWALK-5503
    
    Some OSs (e.g. Windows and Linux) don't mark windows as hiden on screen
    lock or when other opaque windows fully cover them.
    Note that e.g. OSX and Android do this while Windows and Linux don't.
    OnSoftVisibilityChanged enables that OS window state is kept as is (on
    Linux and Windows) and that e.g. power saving PageVisibility API is still
    properly triggered.
    
    The first patch here targets Windows and screen lock.
    
    branch pagevis
    astojilj authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    1ef45d9 View commit details
    Browse the repository at this point in the history
  18. Screen orientation lock implementation for Windows

    [windows] App does not support orientation lock
    
    On Windows 8 and later, fullscreen is not mandatory to get application
    prefered locking.
    Patch here implements Screen orientation lock API for Windows.
    
    BUG=XWALK-5002
    astojilj authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    2a84ffd View commit details
    Browse the repository at this point in the history
  19. [Android] Add SetBackgroundColor to avoid white screen on startup

    If set the WindowBackground of Activity to RED, and webpage page's backgroudn to RED,
    when application starts or resumes after click back key, it will showup a white screen
    shortly. With this SetBackgroundColor, we can change the first screen to a fix color,
    which can help to avoid white screen.
    
    BUG=XWALK-4809, XWALK-4995
    
    Conflicts:
    	content/browser/android/content_view_core_impl.cc
    
    [M50 Rebase: SetBackgroundColor() was removed in https://crrev.com/1651933003.
    add back for content/browser/android/content_view_core_impl.h]
    axinging authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    13e412b View commit details
    Browse the repository at this point in the history
  20. [Temp] Do not enable generate_multidex_config by default on Android.

    This setting, introduced in 070dd8c ("[Android] Rework multidex and
    enable multidex for unit_tests_apk. (RELAND 2)"), caused our test APKs
    to fail to build:
    
      Uncaught translation error: java.lang.IllegalArgumentException: already added: Lorg/chromium/base/multidex/ChromiumMultiDex;
    
    For now, revert the `generate_multidex_config` part of the change while
    we investigate how to make things work without this commit.
    
    BUG=XWALK-6547
    BUG=XWALK-6625
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    85c625b View commit details
    Browse the repository at this point in the history
  21. [Android] Enable transparent TextureView

    Enable transparent TextureView when user changes the default SurfaceView to TextureView.
    
    BUG=XWALK-6519
    axinging authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    2d5f914 View commit details
    Browse the repository at this point in the history
  22. [Android] Port OverScrolled Event to ContentViewClient for Crosswalk.

    OverScrolled Event could be catch by WebView through Android View
    System. But XWalkView is not a true view, so XWalkView need this patch
    to port OverScrolled Event to it.
    
    BUG=XWALK-4871
    BUG=XWALK-4894
    shaoboyan authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    5c1bf45 View commit details
    Browse the repository at this point in the history
  23. .gitignore: Stop ignoring third_party/khronos/CL.

    Those headers will be imported into chromium-crosswalk, so we need to
    stop ignoring the directory.
    
    BUG=XWALK-6661
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6bd6f95 View commit details
    Browse the repository at this point in the history
  24. Import Khronos' OpenCL headers into chromium-crosswalk.

    These headers correspond to
    https://cvs.khronos.org/svn/repos/registry/trunk/public/cl/api/1.2@30030.
    
    The headers used to be pulled by Crosswalk's DEPS.xwalk, but with M49
    the WebCL code that uses the OpenCL headers is always built, so we need
    them in chromium-crosswalk for content_shell builds to work.
    
    BUG=XWALK-6661
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    586d0b3 View commit details
    Browse the repository at this point in the history
  25. [Windows] Implementation of 'AudioDestinationNode.devicePosition' att…

    …ribute
    
    The newly added 'AudioDestinationNode.devicePosition' attribute
    helps to bind audio context time and performance time values.
    
    Please see for more details:
    WebAudio/web-audio-api#754
    WebAudio/web-audio-api#12
    
    For M51 rebase adapted to,
    https://codereview.chromium.org/1773813007
    Mikhail Pozdnyakov authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6aac0d1 View commit details
    Browse the repository at this point in the history
  26. Fix calling of AudioOutputStream::AudioSourceCallback API

    Before this change calling of AudioOutputStream::AudioSourceCallback
    method without stream position ended up in an empty implementation.
    
    BUG=XWALK-6703
    Mikhail Pozdnyakov authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    5f38870 View commit details
    Browse the repository at this point in the history
  27. Remove .gclient and .gclient_entries.

    Those two files were erroneously added in commit bbc2a01 ("[Temp] Do not
    enable generate_multidex_config by default on Android").
    
    BUG=XWALK-6547
    BUG=XWALK-6625
    BUG=XWALK-6961
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    b9a8219 View commit details
    Browse the repository at this point in the history
  28. M52: Fix blink_platform.gyp for Android build.

    FontRendererStyle was excluded.
    
    Fixing https://codereview.chromium.org/1944993003/ issue that missed
    FontRendererStyle.cpp in gyp file
    Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    22b09c3 View commit details
    Browse the repository at this point in the history
  29. [Backport] GN: Set |enable_webvr| in the declare_args() block.

    > This effectively makes it a configurable argument that can be changed by
    > downstreams and users alike; so far, trying to change it via `gn args'
    > failed with:
    >
    >   The variable "enable_webvr" was set as a build argument
    >   but never appeared in a declare_args() block in any buildfile.
    >
    > BUG=389343
    > [email protected],[email protected],[email protected]
    >
    > Review-Url: https://codereview.chromium.org/2198003002
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    33d0d88 View commit details
    Browse the repository at this point in the history
  30. [Temp] Make |enable_webvr==0| work.

    **IMPORTANT**
    We actually intend to fix this properly. We are cherry-picking this
    commit from the crosswalk-18 branch first in order to have a stable
    baseline with no WebVR support propagating from Crosswalk 21 to 20 to
    19. After that, we can start working on fixing this in 21 and 20 and, if
    there is enough time, 19 too.
    
    *From the original commit message:*
    
    Move `CardboardVRDevice.java` to a different directory so that it is not
    built by the `content_java` target even if `enable_webvr==0`.
    
    This is a prerequisite for getting the code to build with
    `enable_webvr=0`.
    
    BUG=XWALK-6746
    
    (cherry picked from commit e593418)
    
    M53 rebasing notes: added GN support:
    
    > [Temp] Make |enable_webvr==false| work in GN.
    >
    > This is a change that should be squashed into "[Temp] Make
    > |enable_webvr==0| work", and just adds the required changes to the GN
    > build so that it is aware of the fact that CardboardVRDevice.java
    > resides in another directory.
    >
    > BUG=XWALK-6746
    rakuco authored and Maksim Sisov committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    b67c5c1 View commit details
    Browse the repository at this point in the history