1. 21 Jan, 2014 1 commit
  2. 16 Jan, 2014 1 commit
  3. 12 Jan, 2014 1 commit
    • weinig@apple.com's avatar
      Split ICU UText providers out into their own files · 5bc85201
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126834
      
      Reviewed by Anders Carlsson.
      
      Moves the implementation of our custom UText providers out into
      their own files.
      - UTextProviderLatin1.h/cpp contains the Latin-1 provider.
      - UTextProviderUTF16.h/cpp contains the UTF-16 provider.
      - UTextProvider.h/cpp contains code common to all the providers.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * PlatformGTK.cmake:
      * WebCore.vcxproj/WebCoreCommon.props:
      * WebCore.vcxproj/copyForwardingHeaders.cmd:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/text/TextAllInOne.cpp:
      * platform/text/TextBreakIteratorICU.cpp:
      (WebCore::setUpIterator):
      (WebCore::wordBreakIterator):
      (WebCore::acquireLineBreakIterator):
      (WebCore::sentenceBreakIterator):
      (WebCore::setUpIteratorWithRules):
      * platform/text/icu: Added.
      * platform/text/icu/UTextProvider.cpp: Added.
      (WebCore::fixPointer):
      (WebCore::uTextCloneImpl):
      * platform/text/icu/UTextProvider.h: Added.
      (WebCore::uTextProviderContext):
      (WebCore::uTextInitialize):
      (WebCore::uTextAccessPinIndex):
      (WebCore::uTextAccessInChunkOrOutOfRange):
      * platform/text/icu/UTextProviderLatin1.cpp: Added.
      * platform/text/icu/UTextProviderLatin1.h: Added.
      * platform/text/icu/UTextProviderUTF16.cpp: Added.
      * platform/text/icu/UTextProviderUTF16.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5bc85201
  4. 11 Dec, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Add a UPower-based BatteryProvider · 0414f142
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115719
      
      Reviewed by Martin Robinson.
      
      Source/Platform: 
      
      * GNUmakefile.am: Add the Source/WebCore/platform/glib directory to the list of directories searched
      for header inclusion. Add the upower-glib dependency CFLAGS to the list of libPlatform's CPPFLAGS.
      
      Source/WebCore: 
      
      Introduce the BatteryProviderUPower, a provider of the system's battery status that produces the information
      using the upower-glib library.
      
      The BatteryProviderUPower creates a new UPower client when the provider should start emitting updates and hooks
      up to device alteration signals. These only fire recalculation of the battery status when a battery device is altered.
      
      When recalculating, every battery device is taken into account, accumulating the energy capacities when both empty
      and full, the current rate of energy charging/discharging, and the battery status (whether the device is charging or
      discharging). This gives a set of data that covers the overall battery status of the system.
      
      This data is then used to calculate the battery status as perceived by the WebCore implementation. Charging is determined
      by examining the integral sign of the current combined energy rate. Charging and discharging times are calculated, when
      appropriate, by dividing the chargable/dischargable capacity with the current combined energy rate. The battery level is
      calculated by dividing the current energy capacity with the full energy capacity (i.e. the combined capacity of all
      the batteries that the system possesses). The status is (indirectly) passed onto BatteryManager by invoking the
      updateBatteryStatus method on the client, with the first parameter representing the battery charging/discharging state,
      the second parameter representing the time left until the battery is fully charged (when charging) or fully
      depleted (when discharging), and the third parameter representing the current battery level.
      
      Whenever the implementation cannot provide any information about the battery status of the system, the client's
      updateBatteryStatus method is invoked with the first parameter reporting the unavailability of any information
      about the battery status. The other two parameters can be omitted as they default to 0 when not given and are neither
      available nor useful in such circumstances. The client should handle such an update by reporting the 'default' battery
      status - charging, the battery level being at 1.0 and both the charging and discharging time having the value of
      the positive infinity (as per the Battery Status API specification).
      
      The implementation is heavily inspired by a similar approach to calculating battery status in GNOME Settings Daemon.
      
      No new tests - no new functionality. The feature is not yet enabled. When enabled, the relevant tests pass.
      
      * GNUmakefile.list.am: Add the BatteryProviderUPower(Client) build targets.
      * platform/glib/BatteryProviderUPower.cpp: Added.
      (powerDeviceAlterationCallback):
      (BatteryProviderUPower::BatteryProviderUPower):
      (BatteryProviderUPower::startUpdating):
      (BatteryProviderUPower::stopUpdating):
      (BatteryProviderUPower::updateBatteryStatus):
      * platform/glib/BatteryProviderUPower.h: Added.
      (WebCore):
      (BatteryProviderUPower):
      * platform/glib/BatteryProviderUPowerClient.h: Added.
      (WebCore):
      (BatteryProviderUPowerClient):
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Link the libwebkigtk library against the upower-glib library.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Link the libwebkit2gtk library against the upower-glib library.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0414f142
  5. 02 Dec, 2013 1 commit
  6. 27 Nov, 2013 1 commit
    • marcelo.lira@openbossa.org's avatar
      Nix upstreaming - Adding build files and supporting scripts · e8121e0a
      marcelo.lira@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118367
      
      Reviewed by Ryosuke Niwa.
      
      .:
      
      * CMakeLists.txt:
      * Source/CMakeLists.txt:
      * Source/cmake/FindEGL.cmake:
      * Source/cmake/FindOpenGLES2.cmake: Added.
      * Source/cmake/OptionsCommon.cmake:
      * Source/cmake/OptionsNix.cmake: Added.
      
      Source/Platform:
      
      * CMakeLists.txt: Added.
      * PlatformNix.cmake: Added.
      
      Source/WebCore:
      
      No new tests needed.
      
      * CMakeLists.txt:
      * PlatformNix.cmake: Added.
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      * wtf/Platform.h:
      * wtf/PlatformNix.cmake: Added.
      
      Tools:
      
      * Scripts/build-webkit:
      * Scripts/run-nix-tests: Added.
      * Scripts/run-webkit-tests:
      * Scripts/update-webkit-libs-jhbuild:
      * Scripts/update-webkitnix-libs: Added.
      * Scripts/webkitdirs.pm:
      (determineArchitecture):
      (argumentsForConfiguration):
      (jscProductDir):
      (builtDylibPathForName):
      (determineIsNix):
      (isNix):
      (isAppleWebKit):
      (launcherPath):
      (launcherName):
      (checkRequiredSystemConfig):
      (copyInspectorFrontendFiles):
      (jhbuildWrapperPrefixIfNeeded):
      (buildCMakeProjectOrExit):
      (cmakeBasedPortName):
      * Scripts/webkitpy/common/config/ports.py:
      (DeprecatedPort.port):
      (EflWK2Port.build_webkit_command):
      (NixPort):
      (NixPort.build_webkit_command):
      * Scripts/webkitpy/port/factory.py:
      (platform_options):
      (PortFactory):
      * Scripts/webkitpy/port/nix.py: Added.
      (NixPort):
      (NixPort._wk2_port_name):
      (NixPort.determine_full_port_name):
      (NixPort.__init__):
      (NixPort._port_flag_for_scripts):
      (NixPort.setup_test_run):
      (NixPort.setup_environ_for_server):
      (NixPort.default_timeout_ms):
      (NixPort.clean_up_test_run):
      (NixPort._generate_all_test_configurations):
      (NixPort._path_to_driver):
      (NixPort._path_to_image_diff):
      (NixPort._image_diff_command):
      (NixPort._search_paths):
      (NixPort.show_results_html_file):
      (NixPort._port_specific_expectations_files):
      (NixPort.default_baseline_search_path):
      * Scripts/webkitpy/port/nix_unittest.py: Added.
      (NixPortTest):
      (NixPortTest._assert_search_path):
      (NixPortTest._assert_expectations_files):
      (NixPortTest.test_baseline_search_path):
      (NixPortTest.test_expectations_files):
      (NixPortTest.test_default_timeout_ms):
      * jhbuild/jhbuild-wrapper:
      (determine_platform):
      * nix/common.py: Added.
      (script_path):
      (top_level_path):
      * nix/jhbuild.modules: Added.
      * nix/jhbuildrc: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8121e0a
  7. 07 Nov, 2013 1 commit
    • mario@webkit.org's avatar
      [GTK] Glyphs in vertical text tests are rotated 90 degrees clockwise · 1795391d
      mario@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=50619
      
      Patch by Denis Nomiyama <d.nomiyama@samsung.com> on 2013-11-07
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Implemented the OPENTYPE_VERTICAL feature for the GTK+ port. It resolves
      the 90 degrees rotation problem of CJK characters when displaying
      vertical text.
      
      New tests are not required as the existing tests for vertical text will
      work properly now.
      
      * GNUmakefile.list.am: Added OpenTypeVerticalData.cpp and
      OpenTypeVerticalData.h to platformgtk_sources.
      * PlatformEfl.cmake: Added OpenTypeVerticalData.cpp.
      * PlatformGTK.cmake: Added OpenTypeVerticalData.cpp.
      * platform/graphics/FontCache.cpp: Originally the HashMap for
      OpenTypeVerticalData was designed with FontFileKey as integer in the
      Chromium port, which was an unique number provided by Skia. Since other
      ports use FontFileKey as string, new generic hash functions had to be
      implemented instead of using the specific ones for integers.
      (WebCore::FontVerticalDataCacheKeyHash::hash): New hash function for
      HashMap of OpenTypeVerticalData.
      (WebCore::FontVerticalDataCacheKeyHash::equal): New function for
      comparing hash indexes in the HashMap of OpenTypeVerticalData.
      (WebCore::FontVerticalDataCacheKeyTraits::emptyValue): New function for
      giving an empty FontFileKey.
      (WebCore::FontVerticalDataCacheKeyTraits::constructDeletedValue): New
      function to create a FontFileKey for deleted values.
      (WebCore::FontVerticalDataCacheKeyTraits::isDeletedValue): New function
      to check if a HashMap entry is available.
      * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
      (WebCore::FontCustomPlatformData::fontPlatformData): Added font
      orientation as a parameter to the FontPlatformData constructor.
      * platform/graphics/freetype/FontPlatformData.h: Added m_orientation to
      store the font orientation and m_horizontalOrientationMatrix to store
      the Cairo matrix for horizontal orientation, which can be restored in
      setOrientation().
      (WebCore::FontPlatformData::FontPlatformData): Added font orientation as
      a parameter.
      (WebCore::FontPlatformData::orientation): Implemented this function
      based on m_orientation.
      * platform/graphics/freetype/FontPlatformDataFreeType.cpp: Added new
      helper function rotateCairoMatrixForVerticalOrientation() to rotate the
      Cairo matrix in case of vertical orientation.
      (WebCore::FontPlatformData::FontPlatformData): Initialized
      m_orientation.
      (WebCore::FontPlatformData::operator=): Added m_orientation and
      m_horizontalOrientationMatrix to the assignment operator.
      (WebCore::FontPlatformData::operator==): Added m_orientation to the
      equal operator.
      (WebCore::FontPlatformData::initializeWithFontFace): Rotated and
      translated fonts if orientation is vertical. Also stored the horizontal
      Cairo matrix.
      (WebCore::FontPlatformData::verticalData): Returned the vertical data
      from the font cache.
      (WebCore::FontPlatformData::openTypeTable): Loaded the font table into
      a shared buffer.
      (WebCore::FontPlatformData::setOrientation): Replaced the scaled font
      data by rotating fonts according to the new orientation.
      * platform/graphics/freetype/SimpleFontDataFreeType.cpp:
      (WebCore::SimpleFontData::platformInit): Set the glyph's height and
      width according to the font orientation. It also sets EM.
      (WebCore::SimpleFontData::platformCreateScaledFontData): Added
      orientation to the FontPlatformData constructor.
      (WebCore::SimpleFontData::platformWidthForGlyph): Returned the glyph's
      width according the orientation.
      * platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp:
      (WebCore::CairoGetGlyphWidthAndExtents): Obtained the character advance
      and extents according to the font orientation.
      
      Source/Platform:
      
      Added WebCore/platform/graphics/opentype to the include path.
      
      * GNUmakefile.am:
      
      Source/WTF:
      
      Enabled OPENTYPE_VERTICAL by default on GTK+ and EFL ports, which are
      currently using Freetype.
      
      * wtf/Platform.h:
      
      Source/WebKit:
      
      Added WebCore/platform/graphics/opentype to the include path.
      
      * PlatformEfl.cmake:
      
      Source/WebKit2:
      
      Added WebCore/platform/graphics/opentype to the include path.
      
      * PlatformEfl.cmake:
      * PlatformGTK.cmake:
      
      LayoutTests:
      
      Updated existing test results that uses vertical texts.
      
      * platform/gtk-wk1/fast/writing-mode/Kusa-Makura-background-canvas-expected.png: Added.
      * platform/gtk-wk1/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.png: Updated.
      * platform/gtk/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt: Updated.
      * platform/gtk/fast/block/lineboxcontain/block-with-ideographs-expected.png: Updated.
      * platform/gtk/fast/block/lineboxcontain/block-with-ideographs-expected.txt: Updated.
      * platform/gtk/fast/css/relative-positioned-block-with-inline-ancestor-and-parent-dynamic-expected.png: Updated.
      * platform/gtk/fast/dynamic/text-combine-expected.png: Updated.
      * platform/gtk/fast/dynamic/text-combine-expected.txt: Updated.
      * platform/gtk/fast/html/details-writing-mode-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-clear-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-clear-expected.txt: Added.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-expected.txt: Added.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Updated.
      * platform/gtk/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Updated.
      * platform/gtk/fast/repaint/repaint-across-writing-mode-boundary-expected.png: Updated.
      * platform/gtk/fast/repaint/repaint-across-writing-mode-boundary-expected.txt: Updated.
      * platform/gtk/fast/ruby/base-shorter-than-text-expected.png: Updated.
      * platform/gtk/fast/ruby/base-shorter-than-text-expected.txt: Updated.
      * platform/gtk/fast/text/decorations-with-text-combine-expected.png: Updated.
      * platform/gtk/fast/text/decorations-with-text-combine-expected.txt: Updated.
      * platform/gtk/fast/text/emphasis-combined-text-expected.png: Updated.
      * platform/gtk/fast/text/emphasis-combined-text-expected.txt: Updated.
      * platform/gtk/fast/text/emphasis-vertical-expected.png: Updated.
      * platform/gtk/fast/text/emphasis-vertical-expected.txt: Updated.
      * platform/gtk/fast/text/international/text-combine-image-test-expected.png: Updated.
      * platform/gtk/fast/text/international/text-combine-image-test-expected.txt: Updated.
      * platform/gtk/fast/text/international/text-spliced-font-expected.png: Updated.
      * platform/gtk/fast/text/international/text-spliced-font-expected.txt: Updated.
      * platform/gtk/fast/text/international/vertical-text-glyph-test-expected.png: Updated.
      * platform/gtk/fast/text/international/vertical-text-glyph-test-expected.txt: Added.
      * platform/gtk/fast/text/justify-ideograph-vertical-expected.png: Updated.
      * platform/gtk/fast/text/justify-ideograph-vertical-expected.txt: Added.
      * platform/gtk/fast/text/orientation-sideways-expected.png: Updated.
      * platform/gtk/fast/text/orientation-sideways-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/Kusa-Makura-background-canvas-expected.png: Updated.
      * platform/gtk/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/border-vertical-lr-expected.png: Updated.
      * platform/gtk/fast/writing-mode/border-vertical-lr-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/broken-ideograph-small-caps-expected.png: Updated.
      * platform/gtk/fast/writing-mode/broken-ideograph-small-caps-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/broken-ideographic-font-expected.png: Updated.
      * platform/gtk/fast/writing-mode/broken-ideographic-font-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/fallback-orientation-expected.png: Updated.
      * platform/gtk/fast/writing-mode/fallback-orientation-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-selection-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-selection-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-text-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-lr-text-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-selection-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-selection-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-with-broken-font-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-rl-text-with-broken-font-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-lr-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-lr-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-rl-expected.png: Updated.
      * platform/gtk/fast/writing-mode/japanese-ruby-vertical-rl-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/text-orientation-basic-expected.png: Updated.
      * platform/gtk/fast/writing-mode/text-orientation-basic-expected.txt:
      * platform/gtk/fast/writing-mode/vertical-align-table-baseline-expected.png: Updated.
      * platform/gtk/fast/writing-mode/vertical-align-table-baseline-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/vertical-baseline-alignment-expected.png: Updated.
      * platform/gtk/fast/writing-mode/vertical-baseline-alignment-expected.txt: Updated.
      * platform/gtk/fast/writing-mode/vertical-font-fallback-expected.png: Updated.
      * platform/gtk/fast/writing-mode/vertical-font-fallback-expected.txt: Updated.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1795391d
  8. 29 Oct, 2013 1 commit
    • hugo.lima@openbossa.org's avatar
      Adding Nix files in Source/Platform to trunk · b7369697
      hugo.lima@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118331
      
      Reviewed by Benjamin Poulain.
      
      Source/Platform:
      
      Add files part of Nix public API used to implement
      backends for some WebKit subsystems on Application side.
      
      * nix/public/AudioDevice.h: Added.
      * nix/public/Canvas.h: Added.
      * nix/public/Color.h: Added.
      * nix/public/Common.h: Added.
      * nix/public/FFTFrame.h: Added.
      * nix/public/Gamepad.h: Added.
      * nix/public/Gamepads.h: Added.
      * nix/public/MediaPlayer.h: Added.
      * nix/public/MultiChannelPCMData.h: Added.
      * nix/public/Platform.h: Added.
      * nix/public/Rect.h: Added.
      * nix/public/Size.h: Added.
      * nix/public/ThemeEngine.h: Added.
      * nix/src/DefaultWebThemeEngine.cpp: Added.
      * nix/src/DefaultWebThemeEngine.h: Added.
      * nix/src/Platform.cpp: Added.
      
      Source/WebCore:
      
      Add Nix WebAudio implementation that just forward some calls to our API.
      This patch is part of the upstream process, tests will be landed by other patches.
      
      * platform/audio/nix/AudioBusNix.cpp: Added.
      * platform/audio/nix/AudioDestinationNix.cpp: Added.
      * platform/audio/nix/AudioDestinationNix.h: Added.
      * platform/audio/nix/FFTFrameNix.cpp: Added.
      * platform/nix/support/MultiChannelPCMData.cpp: Added.
      
      Tools:
      
      Add a special rule for Nix API files located at Source/Platform/nix.
      
      * Scripts/webkitpy/style/checker.py:
      
       2013-10-29  Nadav Rotem  <nrotem@apple.com>
      
       Add myself as a comitter.
       https://bugs.webkit.org/show_bug.cgi?id=123455
      
       Reviewed by Anders Carlsson.
      
       * Scripts/webkitpy/common/config/contributors.json:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7369697
  9. 02 Jul, 2013 1 commit
    • kov@webkit.org's avatar
      [GTK] Remove unsupported AC backends · 30b49f1f
      kov@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=117362
      
      Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-07-01
      Reviewed by Martin Robinson.
      
      .:
      
      * Source/autotools/FindDependencies.m4: remove checks related to acceleration backend,
      turn them into a check for OpenGL being available, simply.
      * Source/autotools/ReadCommandLineArguments.m4: remove command line option to select
      accelerated backend, it's now auto-detected.
      * Source/autotools/SetupAutoconfHeader.m4: no longer defines USE_CLUTTER and
      USE_TEXTURE_MAPPER_CAIRO.
      * Source/autotools/SetupAutomake.m4: remove checks related to acceleration backend,
      turn them into a check for OpenGL being available, simply.
      * Source/autotools/Versions.m4: no longer check for clutter/clutter-gtk.
      
      Source/WebCore:
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Source/WebCore/platform/graphics/PlatformLayer.h: Removed mentions of clutter
      and the texmap cairo backend.
      * platform/graphics/clutter/DrawingBufferClutter.cpp: Removed.
      * platform/graphics/clutter/GraphicsContext3DClutter.cpp: Removed.
      * platform/graphics/clutter/GraphicsContext3DPrivate.cpp: Removed.
      * platform/graphics/clutter/GraphicsContext3DPrivate.h: Removed.
      * platform/graphics/clutter/GraphicsLayerActor.cpp: Removed.
      * platform/graphics/clutter/GraphicsLayerActor.h: Removed.
      * platform/graphics/clutter/GraphicsLayerClutter.cpp: Removed.
      * platform/graphics/clutter/GraphicsLayerClutter.h: Removed.
      * platform/graphics/clutter/PlatformClutterAnimation.cpp: Removed.
      * platform/graphics/clutter/PlatformClutterAnimation.h: Removed.
      * platform/graphics/clutter/PlatformClutterLayerClient.h: Removed.
      * platform/graphics/clutter/TransformationMatrixClutter.cpp: Removed.
      * Source/WebCore/platform/graphics/transforms/TransformationMatrix.h: Removed cogl
      matrix type conversion.
      
      Source/WebKit/gtk:
      
      * GNUmakefile.am:
      * WebCoreSupport/AcceleratedCompositingContext.h: removed clutter and cairo
      additions.
      * WebCoreSupport/AcceleratedCompositingContextCairo.cpp: Removed.
      * WebCoreSupport/AcceleratedCompositingContextClutter.cpp: Removed.
      * webkit/webkitglobals.cpp:
      (webkitInit): removed clutter-gtk initialization.
      
      Tools:
      
      * gtk/jhbuild-optional.modules: no longer needs clutter-gtk, clutter
      and cogl, so removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30b49f1f
  10. 14 Jun, 2013 1 commit
  11. 12 Jun, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Move more build targets for source code that's free of layer violations into libPlatform · 60be53da
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115936
      
      Reviewed by Martin Robinson.
      
      Source/Platform: 
      
      * GNUmakefile.am: Add additional Source/WebCore/platform subdirectories to the list of the directories
      that are specific to the platform layer but still located in WebCore. Add Enchant and Freetype dependencies'
      CFLAGS to the list of libPlatform CPPFLAGS. Add GStreamer dependency's CFLAGS to the list of libPlatformGtk
      CPPFLAGS.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.list.am: Move more build targets under the platform_sources and platformgtk_sources listing.
      These build targets represent source files that are already free of platform layer violations and are as such
      ready to be pushed down from the WebCore layer into the Platform layer.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add GStreamer dependency's CFLAGS to the list of libPlatformGtk2 CPPFLAGS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60be53da
  12. 14 May, 2013 2 commits
    • zandobersek@gmail.com's avatar
      [GTK] Move generated ColorData.cpp, WebKitFontFamilyNames.(cpp|h) build targets into libPlatform · 6d888f8c
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115921
      
      Reviewed by Gustavo Noronha Silva.
      
      .: 
      
      * GNUmakefile.am: Add GENSOURCES_PLATFORM, platform_built_sources variables.
      
      Source/Platform: 
      
      * GNUmakefile.am: Move the ANGLE include directories under the new platform_cppflags variable,
      adding the DerivedSources/Platform directory. Add the generated sources' build targets to libPlatform
      under nodist_libPlatform_la_SOURCES. Add platform_cppflags to the list of libPlatformGtk CPPFLAGS.
      Add generation rules for the ColorData.cpp and WebKitFontFamilyNames.(cpp|h) source files, now generated
      into the DerivedSources/Platform directory.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Add platform_cppflags to the list of CPPFLAGS for libWebCoreSVG, libWebCore,
      libWebCorePlatform, libWebCoreGtk. Remove generation rules for ColorData.cpp and WebKitFontFamilyNames.(cpp|h).
      * GNUmakefile.list.am: Include the ColorData.cpp and WebKitFontFamilyNames.(cpp|h) build targers under
      platform_built_sources.
      * bindings/gobject/GNUmakefile.am: Add platform_cppflags to the list of libWebCoreDOM CPPFLAGS.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Add platform_cppflags to the list of CPPFLAGS for libwebkit2gtk, libWebCoreGtk2,
      libPlatformGtk2 and WebKitPluginProcess.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add platform_cppflags to the list of libwebkit2gtk CPPFLAGS.
      
      Tools: 
      
      * GNUmakefile.am: Add platform_cppflags to the list of CPPFLAGS for libWebCoreInternals and DumpRenderTree.
      * TestWebKitAPI/GNUmakefile.am: Add platform_cppflags to the list of TestGtk CPPFLAGS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d888f8c
    • zandobersek@gmail.com's avatar
      [GTK] libPlatform, libPlatformGtk must depend on the related GNUmakefiles · c4d16cb8
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115937
      
      Reviewed by Martin Robinson.
      
      Source/Platform: 
      
      * GNUmakefile.am: Set up an artifical dependency so that libPlatform and libPlatformGtk
      libraries take into account any changes in this GNUmakefile.am and the GNUmakefile.list.am
      located under Source/WebCore. The latter is included due to all the build targets for the
      two libraries being listed there.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Fix typos in two libraries' names - Webcore -> WebCore.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4d16cb8
  13. 06 May, 2013 1 commit
  14. 24 Apr, 2013 1 commit
  15. 22 Apr, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Set up libPlatform.la · 25d930a1
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114168
      
      Reviewed by Martin Robinson.
      
      .: 
      
      * GNUmakefile.am: Define the platform_cppflags and platform_sources variables.
      
      Source/Platform: 
      
      * GNUmakefile.am: Set up the libPlatform.la static library to build the source files listed in platform_sources.
      As with the libPlatformGtk.la library, only the Source/WebCore/platform and its subdirectories are allowed to be
      searched for headers to include, providing a convenient way to detect any platform violations. These directories
      are listed in the platform_webcore_cppflags variable.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Also add the LevelDB-specific cppflags to the platform_cppflags if required as the LevelDB
      code is now built into the new libPlatform.la library.
      * GNUmakefile.list.am: Build a small set of non-GTK-specific platform source files that are already free of
      platform violations into the new libPlatform.la library.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: Add the new libPlatform.la library to the libwebkitgtk library.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Add the new libPlatform.la library to the libwebkitgtk library. Link the WebKitPluginProcess
      executable against libPlatform.la as well.
      
      Tools: 
      
      * GNUmakefile.am: Link the DumpRenderTree executable against both libPlatform.la and libPlatformGtk.la libraries.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25d930a1
  16. 05 Apr, 2013 2 commits
    • benjamin@webkit.org's avatar
      Fix GTK+ for real after r147712 · dface958
      benjamin@webkit.org authored
      Reviewed by Ryosuke Niwa.
      
      .: 
      
      * GNUmakefile.am:
      * Source/Platform: Added.
      * Source/Platform/GNUmakefile.am: Added.
      
      Source/Platform: 
      
      * GNUmakefile.am: Added.
      * Platform: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dface958
    • rniwa@webkit.org's avatar
      Remove the top level gyp directory and Platform/chromium · caabc53f
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113999
      
      Reviewed by Benjamin Poulain.
      
      .: 
      
      * Source/Platform: Removed.
      * Source/gyp: Removed.
      
      Source/Platform: 
      
      * Platform.gyp: Removed.
      * Platform.gyp/.gitignore: Removed.
      * Platform.gyp/Platform.gyp: Removed.
      * Platform.gypi: Removed.
      * chromium: Removed.
      * chromium/public: Removed.
      * chromium/public/Platform.h: Removed.
      * chromium/public/WebAnimation.h: Removed.
      * chromium/public/WebAnimationCurve.h: Removed.
      * chromium/public/WebAnimationDelegate.h: Removed.
      * chromium/public/WebAudioBus.h: Removed.
      * chromium/public/WebAudioDestinationConsumer.h: Removed.
      * chromium/public/WebAudioDevice.h: Removed.
      * chromium/public/WebBlobData.h: Removed.
      * chromium/public/WebBlobRegistry.h: Removed.
      * chromium/public/WebCString.h: Removed.
      * chromium/public/WebCanvas.h: Removed.
      * chromium/public/WebClipboard.h: Removed.
      * chromium/public/WebColor.h: Removed.
      * chromium/public/WebCommon.h: Removed.
      * chromium/public/WebCompositorOutputSurface.h: Removed.
      * chromium/public/WebCompositorSupport.h: Removed.
      * chromium/public/WebContentLayer.h: Removed.
      * chromium/public/WebContentLayerClient.h: Removed.
      * chromium/public/WebCookie.h: Removed.
      * chromium/public/WebCookieJar.h: Removed.
      * chromium/public/WebData.h: Removed.
      * chromium/public/WebDiscardableMemory.h: Removed.
      * chromium/public/WebDragData.h: Removed.
      * chromium/public/WebExternalTextureLayer.h: Removed.
      * chromium/public/WebExternalTextureLayerClient.h: Removed.
      * chromium/public/WebFileError.h: Removed.
      * chromium/public/WebFileInfo.h: Removed.
      * chromium/public/WebFileSystem.h: Removed.
      * chromium/public/WebFileSystemCallbacks.h: Removed.
      * chromium/public/WebFileSystemEntry.h: Removed.
      * chromium/public/WebFileSystemType.h: Removed.
      * chromium/public/WebFileUtilities.h: Removed.
      * chromium/public/WebFilterOperation.h: Removed.
      * chromium/public/WebFilterOperations.h: Removed.
      * chromium/public/WebFlingAnimator.h: Removed.
      * chromium/public/WebFloatAnimationCurve.h: Removed.
      * chromium/public/WebFloatKeyframe.h: Removed.
      * chromium/public/WebFloatPoint.h: Removed.
      * chromium/public/WebFloatQuad.h: Removed.
      * chromium/public/WebFloatRect.h: Removed.
      * chromium/public/WebFloatSize.h: Removed.
      * chromium/public/WebGamepad.h: Removed.
      * chromium/public/WebGamepads.h: Removed.
      * chromium/public/WebGestureCurve.h: Removed.
      * chromium/public/WebGestureCurveTarget.h: Removed.
      * chromium/public/WebGraphicsContext3D.h: Removed.
      * chromium/public/WebGraphicsMemoryAllocation.h: Removed.
      * chromium/public/WebGraphicsMemoryStats.h: Removed.
      * chromium/public/WebHTTPBody.h: Removed.
      * chromium/public/WebHTTPHeaderVisitor.h: Removed.
      * chromium/public/WebHTTPLoadInfo.h: Removed.
      * chromium/public/WebHyphenator.h: Removed.
      * chromium/public/WebImage.h: Removed.
      * chromium/public/WebImageLayer.h: Removed.
      * chromium/public/WebInputHandler.h: Removed.
      * chromium/public/WebInputHandlerClient.h: Removed.
      * chromium/public/WebLayer.h: Removed.
      * chromium/public/WebLayerPositionConstraint.h: Removed.
      * chromium/public/WebLayerScrollClient.h: Removed.
      * chromium/public/WebLayerTreeView.h: Removed.
      * chromium/public/WebLocalizedString.h: Removed.
      * chromium/public/WebMediaConstraints.h: Removed.
      * chromium/public/WebMediaStream.h: Removed.
      * chromium/public/WebMediaStreamCenter.h: Removed.
      * chromium/public/WebMediaStreamCenterClient.h: Removed.
      * chromium/public/WebMediaStreamSource.h: Removed.
      * chromium/public/WebMediaStreamSourcesRequest.h: Removed.
      * chromium/public/WebMediaStreamTrack.h: Removed.
      * chromium/public/WebMessagePortChannel.h: Removed.
      * chromium/public/WebMessagePortChannelClient.h: Removed.
      * chromium/public/WebMimeRegistry.h: Removed.
      * chromium/public/WebNonCopyable.h: Removed.
      * chromium/public/WebPluginListBuilder.h: Removed.
      * chromium/public/WebPoint.h: Removed.
      * chromium/public/WebPrerender.h: Removed.
      * chromium/public/WebPrerenderingSupport.h: Removed.
      * chromium/public/WebPrivateOwnPtr.h: Removed.
      * chromium/public/WebPrivatePtr.h: Removed.
      * chromium/public/WebRTCConfiguration.h: Removed.
      * chromium/public/WebRTCDTMFSenderHandler.h: Removed.
      * chromium/public/WebRTCDTMFSenderHandlerClient.h: Removed.
      * chromium/public/WebRTCDataChannelHandler.h: Removed.
      * chromium/public/WebRTCDataChannelHandlerClient.h: Removed.
      * chromium/public/WebRTCICECandidate.h: Removed.
      * chromium/public/WebRTCPeerConnectionHandler.h: Removed.
      * chromium/public/WebRTCPeerConnectionHandlerClient.h: Removed.
      * chromium/public/WebRTCSessionDescription.h: Removed.
      * chromium/public/WebRTCSessionDescriptionRequest.h: Removed.
      * chromium/public/WebRTCStatsRequest.h: Removed.
      * chromium/public/WebRTCStatsResponse.h: Removed.
      * chromium/public/WebRTCVoidRequest.h: Removed.
      * chromium/public/WebRect.h: Removed.
      * chromium/public/WebReferrerPolicy.h: Removed.
      * chromium/public/WebRenderingStats.h: Removed.
      * chromium/public/WebScreenInfo.h: Removed.
      * chromium/public/WebScrollbar.h: Removed.
      * chromium/public/WebScrollbarLayer.h: Removed.
      * chromium/public/WebScrollbarThemeGeometry.h: Removed.
      * chromium/public/WebScrollbarThemePainter.h: Removed.
      * chromium/public/WebSize.h: Removed.
      * chromium/public/WebSocketStreamError.h: Removed.
      * chromium/public/WebSocketStreamHandle.h: Removed.
      * chromium/public/WebSocketStreamHandleClient.h: Removed.
      * chromium/public/WebSolidColorLayer.h: Removed.
      * chromium/public/WebSpeechSynthesisUtterance.h: Removed.
      * chromium/public/WebSpeechSynthesisVoice.h: Removed.
      * chromium/public/WebSpeechSynthesizer.h: Removed.
      * chromium/public/WebSpeechSynthesizerClient.h: Removed.
      * chromium/public/WebStorageArea.h: Removed.
      * chromium/public/WebStorageNamespace.h: Removed.
      * chromium/public/WebString.h: Removed.
      * chromium/public/WebThread.h: Removed.
      * chromium/public/WebThreadSafeData.h: Removed.
      * chromium/public/WebTransformAnimationCurve.h: Removed.
      * chromium/public/WebTransformKeyframe.h: Removed.
      * chromium/public/WebTransformOperations.h: Removed.
      * chromium/public/WebURL.h: Removed.
      * chromium/public/WebURLError.h: Removed.
      * chromium/public/WebURLLoadTiming.h: Removed.
      * chromium/public/WebURLLoader.h: Removed.
      * chromium/public/WebURLLoaderClient.h: Removed.
      * chromium/public/WebURLRequest.h: Removed.
      * chromium/public/WebURLResponse.h: Removed.
      * chromium/public/WebUnitTestSupport.h: Removed.
      * chromium/public/WebVector.h: Removed.
      * chromium/public/WebWorkerRunLoop.h: Removed.
      * chromium/public/android: Removed.
      * chromium/public/android/WebSandboxSupport.h: Removed.
      * chromium/public/android/WebThemeEngine.h: Removed.
      * chromium/public/default: Removed.
      * chromium/public/default/WebThemeEngine.h: Removed.
      * chromium/public/linux: Removed.
      * chromium/public/linux/WebFontFamily.h: Removed.
      * chromium/public/linux/WebFontInfo.h: Removed.
      * chromium/public/linux/WebFontRenderStyle.h: Removed.
      * chromium/public/linux/WebSandboxSupport.h: Removed.
      * chromium/public/mac: Removed.
      * chromium/public/mac/WebSandboxSupport.h: Removed.
      * chromium/public/mac/WebThemeEngine.h: Removed.
      * chromium/public/win: Removed.
      * chromium/public/win/WebSandboxSupport.h: Removed.
      * chromium/public/win/WebThemeEngine.h: Removed.
      * chromium/src: Removed.
      * chromium/src/Platform.cpp: Removed.
      * chromium/src/WebActiveGestureAnimation.cpp: Removed.
      * chromium/src/WebActiveGestureAnimation.h: Removed.
      * chromium/src/WebCString.cpp: Removed.
      * chromium/src/WebFilterOperation.cpp: Removed.
      * chromium/src/WebFilterOperations.cpp: Removed.
      * chromium/src/WebFloatQuad.cpp: Removed.
      * chromium/src/WebPrerenderingSupport.cpp: Removed.
      * chromium/src/WebString.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      caabc53f
  17. 02 Apr, 2013 1 commit
  18. 01 Apr, 2013 1 commit
    • aelias@chromium.org's avatar
      [chromium] Delete code behind if (!applyXYZScaleInCompositor) · ebc208d2
      aelias@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111809
      
      Reviewed by James Robinson.
      
      Chromium is setting the flags applyPageScaleFactorInCompositor and
      applyDeviceScaleFactorInCompositor permanently to true, so any code
      in platform/chromium with the false setting is dead. Delete all of
      it.
      
      I also switched FrameTestHelpers and DumpRenderTree to always turn the
      setting to true so that they test the code we're actually running.
      This exposed a number of failing tests which I added in the
      expectations file.
      
      Note also that I made calls to setPageScaleFactor turn on
      force-compositing-mode to make the layout tests work, as
      pageScaleFactor is now ignored in non-composited mode.
      
      * src/ChromeClientImpl.cpp:
      (WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
      * src/NonCompositedContentHost.cpp:
      (WebKit::NonCompositedContentHost::NonCompositedContentHost):
      * src/PageWidgetDelegate.cpp:
      (WebKit::PageWidgetDelegate::paint):
      * src/PageWidgetDelegate.h:
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::selectRange):
      (WebKit::WebFrameImpl::moveCaretSelectionTowardsWindowPoint):
      * src/WebPagePopupImpl.cpp:
      (WebKit::WebPagePopupImpl::paint):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::computeScaleAndScrollForHitRect):
      (WebKit::WebViewImpl::scaledSize):
      (WebKit::WebViewImpl::resize):
      (WebKit::WebViewImpl::paint):
      (WebKit::WebViewImpl::selectionBounds):
      (WebKit::WebViewImpl::computeScaleAndScrollForFocusedNode):
      (WebKit::WebViewImpl::clampOffsetAtScale):
      (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset):
      (WebKit::WebViewImpl::setDeviceScaleFactor):
      (WebKit::WebViewImpl::contentsSize):
      (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
      (WebKit::WebViewImpl::applyScrollAndScale):
      * src/WebViewImpl.h:
      * tests/FrameTestHelpers.cpp:
      (WebKit::FrameTestHelpers::createWebView):
      * tests/WebFrameTest.cpp:
      * tests/WebInputEventConversionTest.cpp:
      (WebCore::TEST):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebc208d2
  19. 28 Mar, 2013 2 commits
    • commit-queue@webkit.org's avatar
      Support bottom-right anchored fixed-position elements during a pinch gesture · 9b56533e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111670
      
      Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-03-28
      Reviewed by James Robinson.
      
      Source/Platform:
      
      Added WebLayerPositionConstraint for layers that need position
      adjustment during threaded scrolling.
      Currently it is only used for fixed-position layers.
      
      * Platform.gypi:
      * chromium/public/WebLayer.h:
      (WebKit):
      (WebLayer):
      (WebKit::WebLayer::setPositionConstraint):
      (WebKit::WebLayer::positionConstraint):
      (WebKit::WebLayer::setFixedToContainerLayer):
      (WebKit::WebLayer::fixedToContainerLayer):
      * chromium/public/WebLayerPositionConstraint.h: Added.
      (WebKit):
      (WebLayerPositionConstraint):
      (WebKit::WebLayerPositionConstraint::WebLayerPositionConstraint):
      (WebKit::WebLayerPositionConstraint::fixedPosition):
      
      Source/WebCore:
      
      This patch adds support to bottom-right fixed-position elements by
      introducing WebLayerPositionConstraint to WebLayer.
      
      No new tests. Can't test until chromium patch landed.
      
      * page/scrolling/ScrollingCoordinator.h:
      (WebCore::ScrollingCoordinator::updateLayerPositionConstraint):
      * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
      (WebCore::clearPositionConstraintExceptForLayer):
      (WebCore):
      (WebCore::computePositionConstraint):
      (WebCore::ScrollingCoordinatorChromium::updateLayerPositionConstraint):
      * page/scrolling/chromium/ScrollingCoordinatorChromium.h:
      (ScrollingCoordinatorChromium):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::registerScrollingLayers):
      * rendering/RenderLayerBacking.h:
      (WebCore::RenderLayerBacking::contentsContainmentLayer):
      (RenderLayerBacking):
      * rendering/RenderLayerCompositor.cpp:
      * rendering/RenderLayerCompositor.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b56533e
    • zandobersek@gmail.com's avatar
      [GTK] Build GTK-specific, non-layer-violating source code into... · f12ef742
      zandobersek@gmail.com authored
      [GTK] Build GTK-specific, non-layer-violating source code into WebCore-independent libPlatformGtk.la
      https://bugs.webkit.org/show_bug.cgi?id=112546
      
      Reviewed by Martin Robinson.
      
      .: 
      
      * GNUmakefile.am: Define the new platform_webcore_cppflags.
      
      Source/Platform: 
      
      * GNUmakefile.am: Only specify the very minimal set of inclusion directories, containing the Source/WebCore/platform
      directory and its subdirectories. This will allow only for the WebCore-independent GTK-specific sources to be built into
      libPlatformGtk.la. Also include the GTK, libsecret and libsoup dependencies' cflags amongst the libPlatformGtk's
      CPPFLAGS.
      * GNUmakefile.list.am: Removed. The build targets are now listed (and will be listed until the migration) in the
      GNUmakefile.list.am under Source/WebCore, following the common sense of specifying the build target in the
      GNUmakefile.list.am placed in the same framework directory in which the source file is located.
      
      Source/WebCore: 
      
      No new tests - no new functionality.
      
      * GNUmakefile.am: Passing the DATA_DIR value through the cppflags is not required anymore as the affected source is now
      built into libPlatformGtk.la.
      * GNUmakefile.list.am: Build the GTK-specific source files that are already independent of WebCore into the
      libPlatformGtk.la by assigning the build targets listing to the platformgtk_sources variable.
      * platform/gtk/GtkVersioning.c: Renamed from Source/Platform/gtk/GtkVersioning.c.
      * platform/gtk/GtkVersioning.h: Renamed from Source/Platform/gtk/GtkVersioning.h.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: The GtkVersioning.c file has moved back under Source/WebCore/platform.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: Reference the platform_webcore_cppflags and GTK, libsecret and libsoup dependencies' cflags amongst the
      libPlatformGtk2's CPPFLAGS.
      * Scripts/generate-forwarding-headers.pl: Remove the Platform framework from the list of the frameworks to be searched
      for forwarding headers, it's at the moment not necessary to be included.
      * Shared/gtk/ArgumentCodersGtk.cpp: Adjust the forwarding header for GtkVersioning.h that's been moved back under the
      WebCore framework.
      * Shared/gtk/WebEventFactory.cpp: Ditto.
      * UIProcess/API/gtk/WebKitWebViewBase.cpp: Ditto.
      * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: Ditto.
      
      Tools: 
      
      * GNUmakefile.am: Reference the platformgtk_cppflags amongst the libWebCoreInternals' CPPFLAGS. GtkVersioning.c file has
      moved back to Source/WebCore/platform. Fix an indentation issue as well.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f12ef742
  20. 27 Mar, 2013 1 commit
    • danakj@chromium.org's avatar
      [chromium] Remove the WebVideoFrame, WebVideoFrameProvider,... · c14d66b7
      danakj@chromium.org authored
      [chromium] Remove the WebVideoFrame, WebVideoFrameProvider, WebStreamTextureClient, and WebVideoLayer classes.
      https://bugs.webkit.org/show_bug.cgi?id=112483
      
      Reviewed by James Robinson.
      
      Source/Platform:
      
      These classes are no longer used, so remove them. And remove APIs
      to provide them.
      
      * Platform.gypi:
      * chromium/public/WebCompositorSupport.h:
      (WebKit):
      * chromium/public/WebVideoFrame.h: Removed.
      * chromium/public/WebVideoFrameProvider.h: Removed.
      * chromium/public/WebVideoLayer.h: Removed.
      
      Source/WebKit/chromium:
      
      These classes are no longer used, so remove them.
      
      * WebKit.gyp:
      * public/WebMediaPlayer.h:
      (WebKit):
      (WebMediaPlayer):
      * public/WebStreamTextureClient.h: Removed.
      * public/WebVideoFrame.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c14d66b7
  21. 26 Mar, 2013 1 commit
    • danakj@chromium.org's avatar
      [chromium] Move ownership of compositor VideoLayer to WebMediaPlayer · 53190e76
      danakj@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112971
      
      Reviewed by James Robinson.
      
      Source/Platform:
      
      Defines REMOVE_WEBVIDEOFRAME in related headers to enable this code
      path in chromium.
      
      * chromium/public/WebVideoFrame.h:
      * chromium/public/WebVideoFrameProvider.h:
      
      Source/WebKit/chromium:
      
      This moves ownership of the compositor's video layer over to the
      implementation of WebMediaPlayer, as well as all interaction
      between the media player system and the compositor layer or its
      interfaces such as cc::VideoFrameProvider.
      
      Now, the WebMediaPlayer implementation calls setWebLayer() to
      provide the WebLayer* to the WebMediaPlayerClientImpl so that
      it can be inserted into the GraphicsLayer tree appropriately.
      
      Defines REMOVE_WEBVIDEOFRAME in related headers to enable this code
      path in chromium.
      
      Once chromium removes its use of WebVideoFrame and its related
      classes, we can remove them from WebKit entirely.
      
      * WebKit.gypi:
      * public/WebMediaPlayer.h:
      (WebKit):
      * public/WebMediaPlayerClient.h:
      * public/WebStreamTextureClient.h:
      * src/WebMediaPlayerClientImpl.cpp:
      (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
      (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
      (WebKit::WebMediaPlayerClientImpl::repaint):
      (WebKit::WebMediaPlayerClientImpl::setOpaque):
      (WebKit::WebMediaPlayerClientImpl::setWebLayer):
      (WebKit::WebMediaPlayerClientImpl::loadRequested):
      (WebKit::WebMediaPlayerClientImpl::platformLayer):
      (WebKit::WebMediaPlayerClientImpl::paint):
      (WebKit::WebMediaPlayerClientImpl::needsWebLayer):
      (WebKit::WebMediaPlayerClientImpl::supportsAcceleratedRendering):
      (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
      (WebKit::WebMediaPlayerClientImpl::create):
      (WebKit::WebMediaPlayerClientImpl::supportsType):
      * src/WebMediaPlayerClientImpl.h:
      (WebKit):
      (WebMediaPlayerClientImpl):
      * tests/WebMediaPlayerClientImplTest.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      53190e76
  22. 25 Mar, 2013 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r146819. · 5039aea4
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/146819
      https://bugs.webkit.org/show_bug.cgi?id=113249
      
      broke component build (Requested by danakj on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-25
      
      Source/Platform:
      
      * chromium/public/WebVideoFrame.h:
      
      Source/WebKit/chromium:
      
      * WebKit.gypi:
      * public/WebMediaPlayerClient.h:
      (WebKit):
      * src/WebMediaPlayerClientImpl.cpp:
      (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
      (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
      (WebKit::WebMediaPlayerClientImpl::repaint):
      (WebKit::WebMediaPlayerClientImpl::setOpaque):
      (WebKit::WebMediaPlayerClientImpl::disableAcceleratedCompositing):
      (WebKit::WebMediaPlayerClientImpl::loadRequested):
      (WebKit::WebMediaPlayerClientImpl::loadInternal):
      (WebKit):
      (WebKit::WebMediaPlayerClientImpl::platformLayer):
      (WebKit::WebMediaPlayerClientImpl::paint):
      (WebKit::WebMediaPlayerClientImpl::supportsAcceleratedRendering):
      (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
      (WebKit::WebMediaPlayerClientImpl::setVideoFrameProviderClient):
      (WebKit::WebMediaPlayerClientImpl::getCurrentFrame):
      (WebKit::WebMediaPlayerClientImpl::putCurrentFrame):
      (WebKit::WebMediaPlayerClientImpl::create):
      (WebKit::WebMediaPlayerClientImpl::supportsType):
      * src/WebMediaPlayerClientImpl.h:
      (WebKit):
      (WebMediaPlayerClientImpl):
      * tests/WebMediaPlayerClientImplTest.cpp: Added.
      (WebKit):
      (FakeWebMediaPlayerClientImpl):
      (WebKit::FakeWebMediaPlayerClientImpl::create):
      (WebKit::FakeWebMediaPlayerClientImpl::FakeWebMediaPlayerClientImpl):
      (FakeVideoFrameProviderClient):
      (WebKit::FakeVideoFrameProviderClient::create):
      (WebKit::FakeVideoFrameProviderClient::~FakeVideoFrameProviderClient):
      (WebKit::FakeVideoFrameProviderClient::didReceiveFrame):
      (WebKit::FakeVideoFrameProviderClient::didUpdateMatrix):
      (WebKit::FakeVideoFrameProviderClient::stopUsingProvider):
      (WebKit::FakeVideoFrameProviderClient::provider):
      (WebKit::FakeVideoFrameProviderClient::FakeVideoFrameProviderClient):
      (WebKit::TEST):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5039aea4
    • danakj@chromium.org's avatar
      [chromium] Move ownership of compositor VideoLayer to WebMediaPlayer · c4d5471c
      danakj@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112971
      
      Reviewed by James Robinson.
      
      Source/Platform:
      
      Defines REMOVE_WEBVIDEOFRAME in related headers to enable this code
      path in chromium.
      
      * chromium/public/WebVideoFrame.h:
      * chromium/public/WebVideoFrameProvider.h:
      
      Source/WebKit/chromium:
      
      This moves ownership of the compositor's video layer over to the
      implementation of WebMediaPlayer, as well as all interaction
      between the media player system and the compositor layer or its
      interfaces such as cc::VideoFrameProvider.
      
      Now, the WebMediaPlayer implementation calls setWebLayer() to
      provide the WebLayer* to the WebMediaPlayerClientImpl so that
      it can be inserted into the GraphicsLayer tree appropriately.
      
      Defines REMOVE_WEBVIDEOFRAME in related headers to enable this code
      path in chromium.
      
      Once chromium removes its use of WebVideoFrame and its related
      classes, we can remove them from WebKit entirely.
      
      * WebKit.gypi:
      * public/WebMediaPlayer.h:
      (WebKit):
      * public/WebMediaPlayerClient.h:
      * public/WebStreamTextureClient.h:
      * src/WebMediaPlayerClientImpl.cpp:
      (WebKit::WebMediaPlayerClientImpl::~WebMediaPlayerClientImpl):
      (WebKit::WebMediaPlayerClientImpl::readyStateChanged):
      (WebKit::WebMediaPlayerClientImpl::repaint):
      (WebKit::WebMediaPlayerClientImpl::setOpaque):
      (WebKit::WebMediaPlayerClientImpl::setWebLayer):
      (WebKit::WebMediaPlayerClientImpl::loadRequested):
      (WebKit::WebMediaPlayerClientImpl::platformLayer):
      (WebKit::WebMediaPlayerClientImpl::paint):
      (WebKit::WebMediaPlayerClientImpl::needsWebLayer):
      (WebKit::WebMediaPlayerClientImpl::supportsAcceleratedRendering):
      (WebKit::WebMediaPlayerClientImpl::acceleratedRenderingInUse):
      (WebKit::WebMediaPlayerClientImpl::create):
      (WebKit::WebMediaPlayerClientImpl::supportsType):
      * src/WebMediaPlayerClientImpl.h:
      (WebKit):
      (WebMediaPlayerClientImpl):
      * tests/WebMediaPlayerClientImplTest.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4d5471c
  23. 24 Mar, 2013 2 commits
    • jamesr@google.com's avatar
      [chromium] Wire windows scrollByPage enum up to compositor thread input handling · 71df6a14
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=113117
      
      Reviewed by Adrienne Walker.
      
      Source/Platform:
      
      * chromium/public/WebInputHandlerClient.h:
      
      Source/WebKit/chromium:
      
      * src/WebCompositorInputHandlerImpl.cpp:
      (WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
      * tests/WebCompositorInputHandlerImplTest.cpp:
      (MockWebInputHandlerClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71df6a14
    • dmazzoni@google.com's avatar
      Implement Web Speech Synthesis for Chromium · 4998a2a6
      dmazzoni@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=111695
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      Exposes a platform API that the embedder can implement to
      provide speech synthesis for the Chromium port.
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      (WebKit::Platform::speechSynthesizer):
      * chromium/public/WebSpeechSynthesisUtterance.h: Added.
      (WebKit):
      (WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::~WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::operator=):
      (WebKit::WebSpeechSynthesisUtterance::isNull):
      * chromium/public/WebSpeechSynthesisVoice.h: Added.
      (WebCore):
      (WebKit):
      (WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::~WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::operator=):
      * chromium/public/WebSpeechSynthesizer.h: Added.
      (WebKit):
      (WebSpeechSynthesizer):
      (WebKit::WebSpeechSynthesizer::~WebSpeechSynthesizer):
      * chromium/public/WebSpeechSynthesizerClient.h: Added.
      (WebKit):
      (WebSpeechSynthesizerClient):
      (WebKit::WebSpeechSynthesizerClient::~WebSpeechSynthesizerClient):
      
      Source/WebCore:
      
      Straightforward implementation of speech synthesis
      for Chromium by exposing interfaces for the platform
      to implement.
      
      * Modules/speech/SpeechSynthesis.cpp:
      (WebCore::SpeechSynthesis::boundaryEventOccurred):
      (WebCore::SpeechSynthesis::didStartSpeaking):
      (WebCore::SpeechSynthesis::didPauseSpeaking):
      (WebCore::SpeechSynthesis::didResumeSpeaking):
      (WebCore::SpeechSynthesis::didFinishSpeaking):
      (WebCore::SpeechSynthesis::speakingErrorOccurred):
      (WebCore):
      * Modules/speech/SpeechSynthesis.h:
      (SpeechSynthesis):
      * Modules/speech/SpeechSynthesisUtterance.cpp:
      (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
      (WebCore):
      (WebCore::SpeechSynthesisUtterance::~SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::setVoice):
      * Modules/speech/SpeechSynthesisUtterance.h:
      (SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::text):
      (WebCore::SpeechSynthesisUtterance::setText):
      (WebCore::SpeechSynthesisUtterance::lang):
      (WebCore::SpeechSynthesisUtterance::setLang):
      (WebCore::SpeechSynthesisUtterance::volume):
      (WebCore::SpeechSynthesisUtterance::setVolume):
      (WebCore::SpeechSynthesisUtterance::rate):
      (WebCore::SpeechSynthesisUtterance::setRate):
      (WebCore::SpeechSynthesisUtterance::pitch):
      (WebCore::SpeechSynthesisUtterance::setPitch):
      (WebCore::SpeechSynthesisUtterance::startTime):
      (WebCore::SpeechSynthesisUtterance::setStartTime):
      (WebCore::SpeechSynthesisUtterance::platformUtterance):
      * Modules/speech/SpeechSynthesisVoice.h:
      (WebCore::SpeechSynthesisVoice::~SpeechSynthesisVoice):
      * WebCore.exp.in:
      * WebCore.gypi:
      * platform/PlatformSpeechSynthesis.h:
      (PlatformSpeechSynthesis):
      * platform/PlatformSpeechSynthesisUtterance.cpp:
      (WebCore):
      (WebCore::PlatformSpeechSynthesisUtterance::create):
      * platform/PlatformSpeechSynthesisUtterance.h:
      (PlatformSpeechSynthesisUtterance):
      (WebCore::PlatformSpeechSynthesisUtterance::setClient):
      * platform/PlatformSpeechSynthesisVoice.cpp:
      (WebCore):
      (WebCore::PlatformSpeechSynthesisVoice::create):
      (WebCore::PlatformSpeechSynthesisVoice::PlatformSpeechSynthesisVoice):
      * platform/PlatformSpeechSynthesisVoice.h:
      (PlatformSpeechSynthesisVoice):
      (WebCore::PlatformSpeechSynthesisVoice::setVoiceURI):
      (WebCore::PlatformSpeechSynthesisVoice::setName):
      (WebCore::PlatformSpeechSynthesisVoice::setLang):
      (WebCore::PlatformSpeechSynthesisVoice::setLocalService):
      (WebCore::PlatformSpeechSynthesisVoice::setIsDefault):
      * platform/PlatformSpeechSynthesizer.cpp:
      (WebCore::PlatformSpeechSynthesizer::create):
      (WebCore::PlatformSpeechSynthesizer::setVoiceList):
      (WebCore):
      * platform/PlatformSpeechSynthesizer.h:
      (WebKit):
      (PlatformSpeechSynthesizerClient):
      (PlatformSpeechSynthesizer):
      * platform/chromium/PlatformSpeechSynthesizerChromium.cpp: Added.
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
      (WebCore::PlatformSpeechSynthesizer::speak):
      (WebCore::PlatformSpeechSynthesizer::pause):
      (WebCore::PlatformSpeechSynthesizer::resume):
      (WebCore::PlatformSpeechSynthesizer::cancel):
      * platform/chromium/support/WebSpeechSynthesisUtterance.cpp: Added.
      (WebKit):
      (WebKit::WebSpeechSynthesisUtterance::WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::operator=):
      (WebKit::WebSpeechSynthesisUtterance::assign):
      (WebKit::WebSpeechSynthesisUtterance::reset):
      (WebKit::WebSpeechSynthesisUtterance::operator PassRefPtr<PlatformSpeechSynthesisUtterance>):
      (WebKit::WebSpeechSynthesisUtterance::operator PlatformSpeechSynthesisUtterance*):
      (WebKit::WebSpeechSynthesisUtterance::text):
      (WebKit::WebSpeechSynthesisUtterance::lang):
      (WebKit::WebSpeechSynthesisUtterance::voice):
      (WebKit::WebSpeechSynthesisUtterance::volume):
      (WebKit::WebSpeechSynthesisUtterance::rate):
      (WebKit::WebSpeechSynthesisUtterance::pitch):
      (WebKit::WebSpeechSynthesisUtterance::startTime):
      * platform/chromium/support/WebSpeechSynthesisVoice.cpp: Added.
      (WebKit):
      (WebKit::WebSpeechSynthesisVoice::assign):
      (WebKit::WebSpeechSynthesisVoice::reset):
      (WebKit::WebSpeechSynthesisVoice::setVoiceURI):
      (WebKit::WebSpeechSynthesisVoice::setName):
      (WebKit::WebSpeechSynthesisVoice::setLanguage):
      (WebKit::WebSpeechSynthesisVoice::setIsLocalService):
      (WebKit::WebSpeechSynthesisVoice::setIsDefault):
      (WebKit::WebSpeechSynthesisVoice::operator PassRefPtr<WebCore::PlatformSpeechSynthesisVoice>):
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp: Added.
      (WebCore):
      (WebCore::WebSpeechSynthesizerClientImpl::WebSpeechSynthesizerClientImpl):
      (WebCore::WebSpeechSynthesizerClientImpl::~WebSpeechSynthesizerClientImpl):
      (WebCore::WebSpeechSynthesizerClientImpl::setVoiceList):
      (WebCore::WebSpeechSynthesizerClientImpl::didStartSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didFinishSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didPauseSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didResumeSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::speakingErrorOccurred):
      (WebCore::WebSpeechSynthesizerClientImpl::wordBoundaryEventOccurred):
      (WebCore::WebSpeechSynthesizerClientImpl::sentenceBoundaryEventOccurred):
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.h: Added.
      (WebCore):
      (WebSpeechSynthesizerClientImpl):
      * platform/mac/PlatformSpeechSynthesizerMac.mm:
      (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
      (-[WebSpeechSynthesisWrapper speechSynthesizer:didFinishSpeaking:]):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.cpp:
      (WebCore::PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock):
      (WebCore::PlatformSpeechSynthesizerMock::speakingFinished):
      (WebCore::PlatformSpeechSynthesizerMock::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.h:
      (PlatformSpeechSynthesizerMock):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4998a2a6
  24. 22 Mar, 2013 4 commits
    • dgrogan@chromium.org's avatar
      IndexedDB: Histogram available disk space on attempt to open database · a55ee6ce
      dgrogan@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112862
      
      Reviewed by Tony Chang.
      
      Source/Platform:
      
      * chromium/public/Platform.h:
      (WebKit::Platform::availableDiskSpaceInBytes):
      (Platform):
      
      Source/WebCore:
      
      ChromeOS suspects they might be hitting disk corruption when the disks
      are nearly full. This patch logs the available space to either the
      "success" or the "fail" histogram as appropriate so that the
      distributions can be compared.
      
      No new tests - I don't know of a good way to test histograms. Local
      printf testing didn't turn up any bugs.
      
      * platform/leveldb/LevelDBDatabase.cpp:
      (WebCore::HistogramFreeSpace):
      (WebCore):
      (WebCore::LevelDBDatabase::open):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a55ee6ce
    • tommyw@google.com's avatar
      MediaStream API: Finalize the RTCPeerConnection states · 740d37e0
      tommyw@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=112792
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebRTCPeerConnectionHandlerClient.h:
      
      Source/WebCore:
      
      This patch finalized the RTCPeerConnection state and events. These changes
      have not yet pushed out to the editors draft; but they are uncontroversial
      and agreed upon.
      
      readyState will be deleted; please use the replacement signalingState which is already available.
      onstatechange -> onsignalingstatechange
      onicechange -> oniceconnectionstatechange
      ongatheringchange will be deleted since oniceconnectionstatechange can be used for the same purpose.
      RTCIceConnectionState::"starting" -> RTCIceConnectionState::"new"
      
      Patch covered by modified tests.
      
      * Modules/mediastream/RTCPeerConnection.cpp:
      (WebCore::RTCPeerConnection::RTCPeerConnection):
      (WebCore::RTCPeerConnection::iceConnectionState):
      (WebCore::RTCPeerConnection::changeSignalingState):
      (WebCore::RTCPeerConnection::changeIceGatheringState):
      (WebCore::RTCPeerConnection::changeIceConnectionState):
      * Modules/mediastream/RTCPeerConnection.h:
      (RTCPeerConnection):
      * Modules/mediastream/RTCPeerConnection.idl:
      * dom/EventNames.h:
      (WebCore):
      * platform/mediastream/RTCPeerConnectionHandlerClient.h:
      
      Source/WebKit/chromium:
      
      * src/AssertMatchingEnums.cpp:
      
      LayoutTests:
      
      * fast/mediastream/RTCPeerConnection-datachannel.html:
      * fast/mediastream/RTCPeerConnection-dtmf.html:
      * fast/mediastream/RTCPeerConnection-events-expected.txt:
      * fast/mediastream/RTCPeerConnection-events.html:
      * fast/mediastream/RTCPeerConnection-ice.html:
      * fast/mediastream/RTCPeerConnection-state-expected.txt:
      * fast/mediastream/RTCPeerConnection-state.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      740d37e0
    • dgrogan@chromium.org's avatar
      Unreviewed, rolling out r146560. · 4313cf3a
      dgrogan@chromium.org authored
      http://trac.webkit.org/changeset/146560
      https://bugs.webkit.org/show_bug.cgi?id=112862
      
      invalid parameter to histogram
      
      Source/Platform:
      
      * chromium/public/Platform.h:
      
      Source/WebCore:
      
      * platform/leveldb/LevelDBDatabase.cpp:
      (WebCore::LevelDBDatabase::open):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4313cf3a
    • dgrogan@chromium.org's avatar
      IndexedDB: Histogram available disk space on attempt to open database · 969a1e84
      dgrogan@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112862
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/Platform.h:
      (WebKit::Platform::availableDiskSpaceInBytes):
      (Platform):
      
      Source/WebCore:
      
      ChromeOS suspects they might be hitting disk corruption when the disks
      are nearly full. This patch logs the available space to either the
      "success" or the "fail" histogram as appropriate so that the
      distributions can be compared.
      
      No new tests - I don't know of a good way to test histograms. Local
      printf testing didn't turn up any bugs.
      
      * platform/leveldb/LevelDBDatabase.cpp:
      (WebCore::HistogramFreeSpace):
      (WebCore):
      (WebCore::LevelDBDatabase::open):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      969a1e84
  25. 21 Mar, 2013 4 commits
    • pilgrim@chromium.org's avatar
      [Chromium] Removed unused WEBKIT_USE_NEW_WEBFILESYSTEMTYPE flag · 192bd054
      pilgrim@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112931
      
      Reviewed by Adam Barth.
      
      Migration complete; flag no longer needed.
      
      * chromium/public/WebFileSystemType.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      192bd054
    • antonm@chromium.org's avatar
      Unreviewed, rolling out r146483. · 59a21b56
      antonm@chromium.org authored
      http://trac.webkit.org/changeset/146483
      https://bugs.webkit.org/show_bug.cgi?id=111695
      
      Source/JavaScriptCore: 
      
      Breaks debug builds.
      
      * bytecode/GlobalResolveInfo.h: Removed property svn:mergeinfo.
      
      Source/Platform: 
      
      Breaks
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      * chromium/public/WebSpeechSynthesisUtterance.h: Removed.
      * chromium/public/WebSpeechSynthesisVoice.h: Removed.
      * chromium/public/WebSpeechSynthesizer.h: Removed.
      * chromium/public/WebSpeechSynthesizerClient.h: Removed.
      
      Source/WebCore: 
      
      Breaks
      
      * Modules/speech/SpeechSynthesis.cpp:
      (WebCore::SpeechSynthesis::boundaryEventOccurred):
      (WebCore::SpeechSynthesis::didStartSpeaking):
      (WebCore::SpeechSynthesis::didPauseSpeaking):
      (WebCore::SpeechSynthesis::didResumeSpeaking):
      (WebCore::SpeechSynthesis::didFinishSpeaking):
      (WebCore::SpeechSynthesis::speakingErrorOccurred):
      (WebCore):
      * Modules/speech/SpeechSynthesis.h:
      (SpeechSynthesis):
      * Modules/speech/SpeechSynthesisUtterance.cpp:
      (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::setVoice):
      * Modules/speech/SpeechSynthesisUtterance.h:
      (WebCore::SpeechSynthesisUtterance::text):
      (WebCore::SpeechSynthesisUtterance::setText):
      (WebCore::SpeechSynthesisUtterance::lang):
      (WebCore::SpeechSynthesisUtterance::setLang):
      (WebCore::SpeechSynthesisUtterance::volume):
      (WebCore::SpeechSynthesisUtterance::setVolume):
      (WebCore::SpeechSynthesisUtterance::rate):
      (WebCore::SpeechSynthesisUtterance::setRate):
      (WebCore::SpeechSynthesisUtterance::pitch):
      (WebCore::SpeechSynthesisUtterance::setPitch):
      (WebCore::SpeechSynthesisUtterance::startTime):
      (WebCore::SpeechSynthesisUtterance::setStartTime):
      (WebCore::SpeechSynthesisUtterance::platformUtterance):
      (SpeechSynthesisUtterance):
      * Modules/speech/SpeechSynthesisVoice.h:
      (SpeechSynthesisVoice):
      * WebCore.exp.in:
      * WebCore.gypi:
      * platform/PlatformSpeechSynthesis.h:
      (PlatformSpeechSynthesis):
      * platform/PlatformSpeechSynthesisUtterance.cpp:
      * platform/PlatformSpeechSynthesisUtterance.h:
      (PlatformSpeechSynthesisUtterance):
      (WebCore::PlatformSpeechSynthesisUtterance::client):
      * platform/PlatformSpeechSynthesisVoice.cpp:
      (WebCore::PlatformSpeechSynthesisVoice::create):
      (WebCore::PlatformSpeechSynthesisVoice::PlatformSpeechSynthesisVoice):
      * platform/PlatformSpeechSynthesisVoice.h:
      (PlatformSpeechSynthesisVoice):
      (WebCore::PlatformSpeechSynthesisVoice::voiceURI):
      (WebCore::PlatformSpeechSynthesisVoice::name):
      (WebCore::PlatformSpeechSynthesisVoice::lang):
      (WebCore::PlatformSpeechSynthesisVoice::localService):
      * platform/PlatformSpeechSynthesizer.cpp:
      (WebCore::PlatformSpeechSynthesizer::create):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore):
      * platform/PlatformSpeechSynthesizer.h:
      (PlatformSpeechSynthesizerClient):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (PlatformSpeechSynthesizer):
      * platform/chromium/PlatformSpeechSynthesizerChromium.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesisUtterance.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesisVoice.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.h: Removed.
      * platform/mac/PlatformSpeechSynthesizerMac.mm:
      (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
      (-[WebSpeechSynthesisWrapper speechSynthesizer:didFinishSpeaking:]):
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.cpp:
      (WebCore::PlatformSpeechSynthesizerMock::create):
      (WebCore::PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock):
      (WebCore::PlatformSpeechSynthesizerMock::speakingFinished):
      (WebCore::PlatformSpeechSynthesizerMock::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.h:
      (PlatformSpeechSynthesizerMock):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59a21b56
    • danakj@chromium.org's avatar
      [chromium] Add isOrphan() to the WebLayer API · 696dd770
      danakj@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112649
      
      Reviewed by James Robinson.
      
      This method will be used by WebMediaPlayerClientImpl to tell
      if the compositing video layer is currently being used to
      display the video content or not.
      
      * chromium/public/WebLayer.h:
      (WebLayer):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      696dd770
    • dmazzoni@google.com's avatar
      Implement Web Speech Synthesis for Chromium · 00dd10cf
      dmazzoni@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=111695
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      Exposes a platform API that the embedder can implement to
      provide speech synthesis for the Chromium port.
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      (WebKit::Platform::speechSynthesizer):
      * chromium/public/WebSpeechSynthesisUtterance.h: Added.
      (WebKit):
      (WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::~WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::operator=):
      (WebKit::WebSpeechSynthesisUtterance::isNull):
      * chromium/public/WebSpeechSynthesisVoice.h: Added.
      (WebCore):
      (WebKit):
      (WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::~WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::operator=):
      * chromium/public/WebSpeechSynthesizer.h: Added.
      (WebKit):
      (WebSpeechSynthesizer):
      (WebKit::WebSpeechSynthesizer::~WebSpeechSynthesizer):
      * chromium/public/WebSpeechSynthesizerClient.h: Added.
      (WebKit):
      (WebSpeechSynthesizerClient):
      (WebKit::WebSpeechSynthesizerClient::~WebSpeechSynthesizerClient):
      
      Source/WebCore:
      
      Straightforward implementation of speech synthesis
      for Chromium by exposing interfaces for the platform
      to implement.
      
      * Modules/speech/SpeechSynthesis.cpp:
      (WebCore::SpeechSynthesis::boundaryEventOccurred):
      (WebCore::SpeechSynthesis::didStartSpeaking):
      (WebCore::SpeechSynthesis::didPauseSpeaking):
      (WebCore::SpeechSynthesis::didResumeSpeaking):
      (WebCore::SpeechSynthesis::didFinishSpeaking):
      (WebCore::SpeechSynthesis::speakingErrorOccurred):
      (WebCore):
      * Modules/speech/SpeechSynthesis.h:
      (SpeechSynthesis):
      * Modules/speech/SpeechSynthesisUtterance.cpp:
      (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
      (WebCore):
      (WebCore::SpeechSynthesisUtterance::~SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::setVoice):
      * Modules/speech/SpeechSynthesisUtterance.h:
      (SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::text):
      (WebCore::SpeechSynthesisUtterance::setText):
      (WebCore::SpeechSynthesisUtterance::lang):
      (WebCore::SpeechSynthesisUtterance::setLang):
      (WebCore::SpeechSynthesisUtterance::volume):
      (WebCore::SpeechSynthesisUtterance::setVolume):
      (WebCore::SpeechSynthesisUtterance::rate):
      (WebCore::SpeechSynthesisUtterance::setRate):
      (WebCore::SpeechSynthesisUtterance::pitch):
      (WebCore::SpeechSynthesisUtterance::setPitch):
      (WebCore::SpeechSynthesisUtterance::startTime):
      (WebCore::SpeechSynthesisUtterance::setStartTime):
      (WebCore::SpeechSynthesisUtterance::platformUtterance):
      * Modules/speech/SpeechSynthesisVoice.h:
      (WebCore::SpeechSynthesisVoice::~SpeechSynthesisVoice):
      * WebCore.exp.in:
      * WebCore.gypi:
      * platform/PlatformSpeechSynthesis.h:
      (PlatformSpeechSynthesis):
      * platform/PlatformSpeechSynthesisUtterance.cpp:
      (WebCore):
      (WebCore::PlatformSpeechSynthesisUtterance::create):
      * platform/PlatformSpeechSynthesisUtterance.h:
      (PlatformSpeechSynthesisUtterance):
      (WebCore::PlatformSpeechSynthesisUtterance::setClient):
      * platform/PlatformSpeechSynthesisVoice.cpp:
      (WebCore):
      (WebCore::PlatformSpeechSynthesisVoice::create):
      (WebCore::PlatformSpeechSynthesisVoice::PlatformSpeechSynthesisVoice):
      * platform/PlatformSpeechSynthesisVoice.h:
      (PlatformSpeechSynthesisVoice):
      (WebCore::PlatformSpeechSynthesisVoice::setVoiceURI):
      (WebCore::PlatformSpeechSynthesisVoice::setName):
      (WebCore::PlatformSpeechSynthesisVoice::setLang):
      (WebCore::PlatformSpeechSynthesisVoice::setLocalService):
      (WebCore::PlatformSpeechSynthesisVoice::setIsDefault):
      * platform/PlatformSpeechSynthesizer.cpp:
      (WebCore::PlatformSpeechSynthesizer::create):
      (WebCore::PlatformSpeechSynthesizer::setVoiceList):
      (WebCore):
      * platform/PlatformSpeechSynthesizer.h:
      (WebKit):
      (PlatformSpeechSynthesizerClient):
      (PlatformSpeechSynthesizer):
      * platform/chromium/PlatformSpeechSynthesizerChromium.cpp: Added.
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
      (WebCore::PlatformSpeechSynthesizer::speak):
      (WebCore::PlatformSpeechSynthesizer::pause):
      (WebCore::PlatformSpeechSynthesizer::resume):
      (WebCore::PlatformSpeechSynthesizer::cancel):
      * platform/chromium/support/WebSpeechSynthesisUtterance.cpp: Added.
      (WebKit):
      (WebKit::WebSpeechSynthesisUtterance::WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::operator=):
      (WebKit::WebSpeechSynthesisUtterance::assign):
      (WebKit::WebSpeechSynthesisUtterance::reset):
      (WebKit::WebSpeechSynthesisUtterance::operator PassRefPtr<PlatformSpeechSynthesisUtterance>):
      (WebKit::WebSpeechSynthesisUtterance::operator PlatformSpeechSynthesisUtterance*):
      (WebKit::WebSpeechSynthesisUtterance::text):
      (WebKit::WebSpeechSynthesisUtterance::lang):
      (WebKit::WebSpeechSynthesisUtterance::voice):
      (WebKit::WebSpeechSynthesisUtterance::volume):
      (WebKit::WebSpeechSynthesisUtterance::rate):
      (WebKit::WebSpeechSynthesisUtterance::pitch):
      (WebKit::WebSpeechSynthesisUtterance::startTime):
      * platform/chromium/support/WebSpeechSynthesisVoice.cpp: Added.
      (WebKit):
      (WebKit::WebSpeechSynthesisVoice::assign):
      (WebKit::WebSpeechSynthesisVoice::reset):
      (WebKit::WebSpeechSynthesisVoice::setVoiceURI):
      (WebKit::WebSpeechSynthesisVoice::setName):
      (WebKit::WebSpeechSynthesisVoice::setLanguage):
      (WebKit::WebSpeechSynthesisVoice::setIsLocalService):
      (WebKit::WebSpeechSynthesisVoice::setIsDefault):
      (WebKit::WebSpeechSynthesisVoice::operator PassRefPtr<WebCore::PlatformSpeechSynthesisVoice>):
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp: Added.
      (WebCore):
      (WebCore::WebSpeechSynthesizerClientImpl::WebSpeechSynthesizerClientImpl):
      (WebCore::WebSpeechSynthesizerClientImpl::~WebSpeechSynthesizerClientImpl):
      (WebCore::WebSpeechSynthesizerClientImpl::setVoiceList):
      (WebCore::WebSpeechSynthesizerClientImpl::didStartSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didFinishSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didPauseSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didResumeSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::speakingErrorOccurred):
      (WebCore::WebSpeechSynthesizerClientImpl::wordBoundaryEventOccurred):
      (WebCore::WebSpeechSynthesizerClientImpl::sentenceBoundaryEventOccurred):
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.h: Added.
      (WebCore):
      (WebSpeechSynthesizerClientImpl):
      * platform/mac/PlatformSpeechSynthesizerMac.mm:
      (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
      (-[WebSpeechSynthesisWrapper speechSynthesizer:didFinishSpeaking:]):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.cpp:
      (WebCore::PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock):
      (WebCore::PlatformSpeechSynthesizerMock::speakingFinished):
      (WebCore::PlatformSpeechSynthesizerMock::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.h:
      (PlatformSpeechSynthesizerMock):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00dd10cf
  26. 20 Mar, 2013 3 commits
    • commit-queue@webkit.org's avatar
      Remove Local/Remote and RTCStatsElement from WebRTCStats API · 2ea694eb
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112678
      
      Patch by Harald Alvestrand <hta@google.com> on 2013-03-20
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      * chromium/public/WebRTCStatsResponse.h:
      (WebRTCStatsResponse):
      
      Source/WebCore:
      
      Pure removal, remaining functionality covered by existing test.
      
      * Modules/mediastream/RTCStatsReport.cpp:
      * Modules/mediastream/RTCStatsReport.h:
      (RTCStatsReport):
      * Modules/mediastream/RTCStatsResponse.cpp:
      * Modules/mediastream/RTCStatsResponse.h:
      (RTCStatsResponse):
      * platform/chromium/support/WebRTCStatsResponse.cpp:
      * platform/mediastream/RTCStatsResponseBase.h:
      (RTCStatsResponseBase):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ea694eb
    • acolwell@chromium.org's avatar
      Add support for MediaSource::isTypeSupported() · 53720aa9
      acolwell@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112301
      
      Reviewed by Darin Fisher.
      
      Source/Platform:
      
      * chromium/public/WebMimeRegistry.h:
      (WebMimeRegistry): Added supportsMediaSourceMIMEType() method.
      
      Source/WebCore:
      
      Test: http/tests/media/media-source/video-media-source-is-type-supported.html
      
      * Modules/mediasource/MediaSource.cpp:
      (WebCore::MediaSource::addSourceBuffer): Added isTypeSupported() call to verify parameters
                                               pass into this method.
      (WebCore::MediaSource::isTypeSupported):
      (WebCore):
      * Modules/mediasource/MediaSource.h:
      (MediaSource):
      * Modules/mediasource/MediaSource.idl: Added isTypeSupported().
      * platform/MIMETypeRegistry.h:
      (MIMETypeRegistry): Added isSupportedMediaSourceMIMEType().
      * platform/chromium/MIMETypeRegistryChromium.cpp:
      (WebCore):
      (WebCore::MIMETypeRegistry::isSupportedMediaSourceMIMEType): Implemented in terms of WebMimeRegistry::isSupportedMediaSourceMIMEType.
      
      LayoutTests:
      
      * http/tests/media/media-source/video-media-source-is-type-supported-expected.txt: Added. Reflects Chromium expectations.
                                                                                         Valid MP4 type strings will return true
                                                                                         instead of false in Chrome builds.
      * http/tests/media/media-source/video-media-source-is-type-supported.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      53720aa9
    • kbr@google.com's avatar
      Unreviewed, rolling out r146277. · 94d21e6b
      kbr@google.com authored
      http://trac.webkit.org/changeset/146277
      https://bugs.webkit.org/show_bug.cgi?id=111695
      
      Broke Chromium Android build
      
      Source/Platform:
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      * chromium/public/WebSpeechSynthesisUtterance.h: Removed.
      * chromium/public/WebSpeechSynthesisVoice.h: Removed.
      * chromium/public/WebSpeechSynthesizer.h: Removed.
      * chromium/public/WebSpeechSynthesizerClient.h: Removed.
      
      Source/WebCore:
      
      * Modules/speech/SpeechSynthesis.cpp:
      (WebCore::SpeechSynthesis::boundaryEventOccurred):
      (WebCore::SpeechSynthesis::didStartSpeaking):
      (WebCore::SpeechSynthesis::didPauseSpeaking):
      (WebCore::SpeechSynthesis::didResumeSpeaking):
      (WebCore::SpeechSynthesis::didFinishSpeaking):
      (WebCore::SpeechSynthesis::speakingErrorOccurred):
      (WebCore):
      * Modules/speech/SpeechSynthesis.h:
      (SpeechSynthesis):
      * Modules/speech/SpeechSynthesisUtterance.cpp:
      (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::setVoice):
      * Modules/speech/SpeechSynthesisUtterance.h:
      (WebCore::SpeechSynthesisUtterance::text):
      (WebCore::SpeechSynthesisUtterance::setText):
      (WebCore::SpeechSynthesisUtterance::lang):
      (WebCore::SpeechSynthesisUtterance::setLang):
      (WebCore::SpeechSynthesisUtterance::volume):
      (WebCore::SpeechSynthesisUtterance::setVolume):
      (WebCore::SpeechSynthesisUtterance::rate):
      (WebCore::SpeechSynthesisUtterance::setRate):
      (WebCore::SpeechSynthesisUtterance::pitch):
      (WebCore::SpeechSynthesisUtterance::setPitch):
      (WebCore::SpeechSynthesisUtterance::startTime):
      (WebCore::SpeechSynthesisUtterance::setStartTime):
      (WebCore::SpeechSynthesisUtterance::platformUtterance):
      (SpeechSynthesisUtterance):
      * Modules/speech/SpeechSynthesisVoice.h:
      * WebCore.exp.in:
      * WebCore.gypi:
      * platform/PlatformSpeechSynthesis.h:
      (PlatformSpeechSynthesis):
      * platform/PlatformSpeechSynthesisUtterance.cpp:
      * platform/PlatformSpeechSynthesisUtterance.h:
      (PlatformSpeechSynthesisUtterance):
      * platform/PlatformSpeechSynthesisVoice.cpp:
      (WebCore::PlatformSpeechSynthesisVoice::create):
      * platform/PlatformSpeechSynthesisVoice.h:
      (PlatformSpeechSynthesisVoice):
      * platform/PlatformSpeechSynthesizer.cpp:
      (WebCore::PlatformSpeechSynthesizer::create):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore):
      * platform/PlatformSpeechSynthesizer.h:
      (PlatformSpeechSynthesizerClient):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (PlatformSpeechSynthesizer):
      * platform/chromium/PlatformSpeechSynthesizerChromium.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesisUtterance.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesisVoice.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp: Removed.
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.h: Removed.
      * platform/mac/PlatformSpeechSynthesizerMac.mm:
      (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
      (-[WebSpeechSynthesisWrapper speechSynthesizer:didFinishSpeaking:]):
      (WebCore::PlatformSpeechSynthesizer::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.cpp:
      (WebCore::PlatformSpeechSynthesizerMock::create):
      (WebCore::PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock):
      (WebCore::PlatformSpeechSynthesizerMock::speakingFinished):
      (WebCore::PlatformSpeechSynthesizerMock::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.h:
      (PlatformSpeechSynthesizerMock):
      
      Source/WebKit/chromium:
      
      * features.gypi:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94d21e6b
  27. 19 Mar, 2013 1 commit
    • dmazzoni@google.com's avatar
      Implement Web Speech Synthesis for Chromium · 74315d55
      dmazzoni@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=111695
      
      Reviewed by Adam Barth.
      
      Source/Platform:
      
      Exposes a platform API that the embedder can implement to
      provide speech synthesis for the Chromium port.
      
      * Platform.gypi:
      * chromium/public/Platform.h:
      (WebKit):
      (Platform):
      (WebKit::Platform::speechSynthesizer):
      * chromium/public/WebSpeechSynthesisUtterance.h: Added.
      (WebKit):
      (WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::~WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::operator=):
      (WebKit::WebSpeechSynthesisUtterance::isNull):
      * chromium/public/WebSpeechSynthesisVoice.h: Added.
      (WebCore):
      (WebKit):
      (WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::~WebSpeechSynthesisVoice):
      (WebKit::WebSpeechSynthesisVoice::operator=):
      * chromium/public/WebSpeechSynthesizer.h: Added.
      (WebKit):
      (WebSpeechSynthesizer):
      (WebKit::WebSpeechSynthesizer::~WebSpeechSynthesizer):
      * chromium/public/WebSpeechSynthesizerClient.h: Added.
      (WebKit):
      (WebSpeechSynthesizerClient):
      (WebKit::WebSpeechSynthesizerClient::~WebSpeechSynthesizerClient):
      
      Source/WebCore:
      
      Straightforward implementation of speech synthesis
      for Chromium by exposing interfaces for the platform
      to implement.
      
      * Modules/speech/SpeechSynthesis.cpp:
      (WebCore::SpeechSynthesis::boundaryEventOccurred):
      (WebCore::SpeechSynthesis::didStartSpeaking):
      (WebCore::SpeechSynthesis::didPauseSpeaking):
      (WebCore::SpeechSynthesis::didResumeSpeaking):
      (WebCore::SpeechSynthesis::didFinishSpeaking):
      (WebCore::SpeechSynthesis::speakingErrorOccurred):
      (WebCore):
      * Modules/speech/SpeechSynthesis.h:
      (SpeechSynthesis):
      * Modules/speech/SpeechSynthesisUtterance.cpp:
      (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
      (WebCore):
      (WebCore::SpeechSynthesisUtterance::~SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::setVoice):
      * Modules/speech/SpeechSynthesisUtterance.h:
      (SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::text):
      (WebCore::SpeechSynthesisUtterance::setText):
      (WebCore::SpeechSynthesisUtterance::lang):
      (WebCore::SpeechSynthesisUtterance::setLang):
      (WebCore::SpeechSynthesisUtterance::volume):
      (WebCore::SpeechSynthesisUtterance::setVolume):
      (WebCore::SpeechSynthesisUtterance::rate):
      (WebCore::SpeechSynthesisUtterance::setRate):
      (WebCore::SpeechSynthesisUtterance::pitch):
      (WebCore::SpeechSynthesisUtterance::setPitch):
      (WebCore::SpeechSynthesisUtterance::startTime):
      (WebCore::SpeechSynthesisUtterance::setStartTime):
      (WebCore::SpeechSynthesisUtterance::platformUtterance):
      * Modules/speech/SpeechSynthesisVoice.h:
      (WebCore::SpeechSynthesisVoice::~SpeechSynthesisVoice):
      * WebCore.exp.in:
      * WebCore.gypi:
      * platform/PlatformSpeechSynthesis.h:
      (PlatformSpeechSynthesis):
      * platform/PlatformSpeechSynthesisUtterance.cpp:
      (WebCore):
      (WebCore::PlatformSpeechSynthesisUtterance::create):
      * platform/PlatformSpeechSynthesisUtterance.h:
      (PlatformSpeechSynthesisUtterance):
      (WebCore::PlatformSpeechSynthesisUtterance::setClient):
      * platform/PlatformSpeechSynthesisVoice.cpp:
      (WebCore):
      (WebCore::PlatformSpeechSynthesisVoice::create):
      (WebCore::PlatformSpeechSynthesisVoice::PlatformSpeechSynthesisVoice):
      * platform/PlatformSpeechSynthesisVoice.h:
      (PlatformSpeechSynthesisVoice):
      (WebCore::PlatformSpeechSynthesisVoice::setVoiceURI):
      (WebCore::PlatformSpeechSynthesisVoice::setName):
      (WebCore::PlatformSpeechSynthesisVoice::setLang):
      (WebCore::PlatformSpeechSynthesisVoice::setLocalService):
      (WebCore::PlatformSpeechSynthesisVoice::setIsDefault):
      * platform/PlatformSpeechSynthesizer.cpp:
      (WebCore::PlatformSpeechSynthesizer::create):
      (WebCore::PlatformSpeechSynthesizer::setVoiceList):
      (WebCore):
      * platform/PlatformSpeechSynthesizer.h:
      (WebKit):
      (PlatformSpeechSynthesizerClient):
      (PlatformSpeechSynthesizer):
      * platform/chromium/PlatformSpeechSynthesizerChromium.cpp: Added.
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
      (WebCore::PlatformSpeechSynthesizer::speak):
      (WebCore::PlatformSpeechSynthesizer::pause):
      (WebCore::PlatformSpeechSynthesizer::resume):
      (WebCore::PlatformSpeechSynthesizer::cancel):
      * platform/chromium/support/WebSpeechSynthesisUtterance.cpp: Added.
      (WebKit):
      (WebKit::WebSpeechSynthesisUtterance::WebSpeechSynthesisUtterance):
      (WebKit::WebSpeechSynthesisUtterance::operator=):
      (WebKit::WebSpeechSynthesisUtterance::assign):
      (WebKit::WebSpeechSynthesisUtterance::reset):
      (WebKit::WebSpeechSynthesisUtterance::operator PassRefPtr<PlatformSpeechSynthesisUtterance>):
      (WebKit::WebSpeechSynthesisUtterance::operator PlatformSpeechSynthesisUtterance*):
      (WebKit::WebSpeechSynthesisUtterance::text):
      (WebKit::WebSpeechSynthesisUtterance::lang):
      (WebKit::WebSpeechSynthesisUtterance::voice):
      (WebKit::WebSpeechSynthesisUtterance::volume):
      (WebKit::WebSpeechSynthesisUtterance::rate):
      (WebKit::WebSpeechSynthesisUtterance::pitch):
      (WebKit::WebSpeechSynthesisUtterance::startTime):
      * platform/chromium/support/WebSpeechSynthesisVoice.cpp: Added.
      (WebKit):
      (WebKit::WebSpeechSynthesisVoice::assign):
      (WebKit::WebSpeechSynthesisVoice::reset):
      (WebKit::WebSpeechSynthesisVoice::setVoiceURI):
      (WebKit::WebSpeechSynthesisVoice::setName):
      (WebKit::WebSpeechSynthesisVoice::setLanguage):
      (WebKit::WebSpeechSynthesisVoice::setIsLocalService):
      (WebKit::WebSpeechSynthesisVoice::setIsDefault):
      (WebKit::WebSpeechSynthesisVoice::operator PassRefPtr<WebCore::PlatformSpeechSynthesisVoice>):
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp: Added.
      (WebCore):
      (WebCore::WebSpeechSynthesizerClientImpl::WebSpeechSynthesizerClientImpl):
      (WebCore::WebSpeechSynthesizerClientImpl::~WebSpeechSynthesizerClientImpl):
      (WebCore::WebSpeechSynthesizerClientImpl::setVoiceList):
      (WebCore::WebSpeechSynthesizerClientImpl::didStartSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didFinishSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didPauseSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::didResumeSpeaking):
      (WebCore::WebSpeechSynthesizerClientImpl::speakingErrorOccurred):
      (WebCore::WebSpeechSynthesizerClientImpl::wordBoundaryEventOccurred):
      (WebCore::WebSpeechSynthesizerClientImpl::sentenceBoundaryEventOccurred):
      * platform/chromium/support/WebSpeechSynthesizerClientImpl.h: Added.
      (WebCore):
      (WebSpeechSynthesizerClientImpl):
      * platform/mac/PlatformSpeechSynthesizerMac.mm:
      (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
      (-[WebSpeechSynthesisWrapper speechSynthesizer:didFinishSpeaking:]):
      (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
      (WebCore):
      (WebCore::PlatformSpeechSynthesizer::~PlatformSpeechSynthesizer):
      (WebCore::PlatformSpeechSynthesizer::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.cpp:
      (WebCore::PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock):
      (WebCore::PlatformSpeechSynthesizerMock::speakingFinished):
      (WebCore::PlatformSpeechSynthesizerMock::speak):
      * platform/mock/PlatformSpeechSynthesizerMock.h:
      (PlatformSpeechSynthesizerMock):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74315d55