2012-07-25 Min Qin Upstream declaration of WebGraphicsContext3D::createStreamTextureCHROMIUM() for android https://bugs.webkit.org/show_bug.cgi?id=92308 Reviewed by Adam Barth. For android, we need 2 calls to create and destroy the stream texture. This change adds the interface for these 2 calls. The actual implementation will be in webgraphicscontext3d_in_process_impl and webgraphicscontext3d_command_buffer_impl. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::createStreamTextureCHROMIUM): (WebKit::WebGraphicsContext3D::destroyStreamTextureCHROMIUM): 2012-07-25 Tommy Widenflycht MediaStream API: Update MediaStreamTrack to match the specification https://bugs.webkit.org/show_bug.cgi?id=90180 Reviewed by Adam Barth. * chromium/public/WebMediaStreamDescriptor.h: (WebMediaStreamDescriptor): * chromium/public/WebMediaStreamSource.h: (WebMediaStreamSource): 2012-07-24 Dave Tu [chromium] Add time spent painting to GPU benchmarking renderingStats() API. https://bugs.webkit.org/show_bug.cgi?id=90019 Reviewed by Adrienne Walker. * chromium/public/WebRenderingStats.h: (WebRenderingStats): (WebKit::WebRenderingStats::WebRenderingStats): 2012-07-24 Sheriff Bot Unreviewed, rolling out r123499. http://trac.webkit.org/changeset/123499 https://bugs.webkit.org/show_bug.cgi?id=92161 Android fails to compile (Requested by zhenyao on #webkit). * chromium/public/WebMediaStreamDescriptor.h: (WebMediaStreamDescriptor): * chromium/public/WebMediaStreamSource.h: (WebMediaStreamSource): 2012-07-24 Leandro Gracia Gil [Chromium] Enable conversion between WebFloatRect and gfx::RectF. https://bugs.webkit.org/show_bug.cgi?id=92117 Reviewed by Adam Barth. Introduce WebFloatRect <--> gfx::RectF conversion as we already do with WebRect <--> gfx::Rect. * chromium/public/WebFloatRect.h: (WebKit::WebFloatRect::WebFloatRect): (WebFloatRect): (WebKit::WebFloatRect::operator=): (WebKit::WebFloatRect::operator gfx::RectF): 2012-07-24 Tommy Widenflycht MediaStream API: Update MediaStreamTrack to match the specification https://bugs.webkit.org/show_bug.cgi?id=90180 Reviewed by Adam Barth. * chromium/public/WebMediaStreamDescriptor.h: (WebMediaStreamDescriptor): * chromium/public/WebMediaStreamSource.h: (WebMediaStreamSource): 2012-07-23 Dave Tu [chromium] Add droppedFrameCount to renderingStats. https://bugs.webkit.org/show_bug.cgi?id=91694 Reviewed by Adrienne Walker. * chromium/public/WebRenderingStats.h: (WebRenderingStats): (WebKit::WebRenderingStats::WebRenderingStats): 2012-07-23 Brian Anderson [chromium] Use shallow flushes that don't glFlush https://bugs.webkit.org/show_bug.cgi?id=90325 Reviewed by Kenneth Russell. Adds shallowFlushCHROMIUM to WebGraphicsContext3D. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::shallowFlushCHROMIUM): 2012-07-23 Tommy Widenflycht [chromium] MediaStream API: Clean up the MockWebKitPlatformSupport object at shutdown https://bugs.webkit.org/show_bug.cgi?id=91857 Reviewed by Adam Barth. Made Platforms destructor virtual. * chromium/public/Platform.h: (WebKit::Platform::~Platform): 2012-07-18 Antoine Labour [chromium] Introduce CCResourceProvider, replacing TextureAllocator and hiding textures from clients to allow transport https://bugs.webkit.org/show_bug.cgi?id=91044 Reviewed by Adrienne Walker. This does several things: - Add a CCResourceProvider class, that hides textures and the 3D context from layers (except those that need it). Instead layers manage "resources". In the future, resources are expected to be transportable to a "parent" CCResourceProvider to allow flattening of nested compositors. - Replace texture ids by resource ids in DrawQuads (allowing them to be serializable). - Replace TextureAllocator uses by the CCResourceProvider class. - Upload of data is done through the CCResourceProvider instead of explicit GL calls. - External textures are wrapped into a resource at draw time (see caveat/FIXME in CCTextureLayerImpl). - Rendering with the resources is done through an explicit beginRenderFrom/endRenderFrom that exposes the texture only between that pair. - Merge all the LayerTextureSubImage instances (one per layer), into a single instance on the CCResourceProvider. Added CCResourceProviderTest, the refactoring is covered by existing tests. * chromium/public/WebCompositorTextureQuad.h: (WebCompositorTextureQuad): (WebKit::WebCompositorTextureQuad::resourceId): * chromium/public/WebCompositorTileQuad.h: (WebCompositorTileQuad): (WebKit::WebCompositorTileQuad::resourceId): 2012-07-18 Alexandre Elias [chromium] Ubercomp: add id to SharedQuadState https://bugs.webkit.org/show_bug.cgi?id=91670 Reviewed by Adrienne Walker. This assigns an integer ID to SharedQuadState objects and a corresponding ID to quads. This ID is unique only within a RenderPass and currently is just set to the index in the shared quad state list. This is redundant with the pointer and exists to simplify serialization. I found out that pointer rewriting within a pickler is blocked by pointers to memory being const there, so the reassignment will have to be performed in the application layer anyway. In that case, it's simplest to add some ID integers. * chromium/public/WebCompositorQuad.h: (WebKit::WebCompositorQuad::sharedQuadStateId): (WebCompositorQuad): * chromium/public/WebCompositorSharedQuadState.h: (WebCompositorSharedQuadState): 2012-07-18 Ryosuke Niwa Another Chromium Windows build fix attempt after r123014. * chromium/public/Platform.h: 2012-07-18 Mark Pilgrim [Chromium] Call SQLiteFileSystem-related functions directly https://bugs.webkit.org/show_bug.cgi?id=91631 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * chromium/public/Platform.h: (Platform): (WebKit::Platform::databaseOpenFile): (WebKit::Platform::databaseDeleteFile): (WebKit::Platform::databaseGetFileAttributes): (WebKit::Platform::databaseGetFileSize): (WebKit::Platform::databaseGetSpaceAvailableForOrigin): 2012-07-18 Sailesh Agrawal Chromium Mac: Add TEXTURE_RECTANGLE_ARB support to CCVideoLayerImpl https://bugs.webkit.org/show_bug.cgi?id=91169 Reviewed by Adrienne Walker. Added a "orientation" field to WebCompositorIOSurfaceQuad. This is used at draw time to flip the texture if necessary. * chromium/public/WebCompositorIOSurfaceQuad.h: Added orientation field to the constructor. (WebKit::WebCompositorIOSurfaceQuad::orientation): (WebCompositorIOSurfaceQuad): The new orientation field should be set to Flipped if the texture should be flipped when drawing. 2012-07-13 Tony Payne Remove Widget from screenColorProfile https://bugs.webkit.org/show_bug.cgi?id=91300 Reviewed by Adam Barth. * chromium/public/Platform.h: (Platform): Updated comment to reflect that we no longer have a type param. 2012-07-11 Alexandre Elias [chromium] Move compositor quads to Platform/chromium/public https://bugs.webkit.org/show_bug.cgi?id=90582 Reviewed by Adrienne Walker. This moves CCSharedQuadState, CCDrawQuad, and all but two CC*DrawQuad classes to the WebKit namespace, as a first step to pushing them across the process boundary for the ubercompositor. - The intent is to serialize the class hierarchy using the same mechanism as WebInputEvent. In order to do this, there are three requirements: pure POD data, a method returning size, and a packing pragma. - Private data members are fine with this kind of serializer, and a default constructor is not needed. Because of that, we can maintain the same encapsulation and convenient APIs (behind WEBKIT_IMPLEMENTATION) as the original classes. To ease the transition, the original WebCore headers still exist and typedef to the new classes. - However, SharedQuadState will be serialized using the normal IPC_STRUCT_TRAITS macro, so I made its members public. A custom serializer (on quad lists) will maintain the pointers from quads to SharedQuadStates. - I converted the Material casting mechanism to materialCast() methods living in the derived classes. That way, the WebCompositorQuad header doesn't need to know about all its derived classes. - Quad classes not yet transitioned can still be used in non-ubercompositor mode. CCRenderPassDrawQuad and CCYUVVideoDrawQuad are currently non-POD and I left them in their original files. This approach is the best I've found so far, since it preserves all WebCore-facing APIs and avoids unnecessary code duplication (new quad types or members can be added by modifying only one place). There also should not be an unreasonable amount of custom serializer code required. * Platform.gypi: * chromium/public/WebCompositorQuad.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCDrawQuad.h. (WebKit): (WebCompositorQuad): (WebKit::WebCompositorQuad::quadRect): (WebKit::WebCompositorQuad::quadTransform): (WebKit::WebCompositorQuad::layerTransform): (WebKit::WebCompositorQuad::layerRect): (WebKit::WebCompositorQuad::scissorRect): (WebKit::WebCompositorQuad::opacity): (WebKit::WebCompositorQuad::needsBlending): (WebKit::WebCompositorQuad::isLayerAxisAlignedIntRect): (WebKit::WebCompositorQuad::quadVisibleRect): (WebKit::WebCompositorQuad::isDebugQuad): (WebKit::WebCompositorQuad::material): (WebKit::WebCompositorQuad::sharedQuadState): (WebKit::WebCompositorQuad::setSharedQuadState): * chromium/public/WebCompositorSharedQuadState.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h. (WebKit): (WebCompositorSharedQuadState): * chromium/public/WebCompositorSolidColorQuad.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCSolidColorDrawQuad.h. (WebKit): (WebCompositorSolidColorQuad): (WebKit::WebCompositorSolidColorQuad::color): * chromium/public/WebCompositorTextureQuad.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCTextureDrawQuad.h. (WebKit): (WebCompositorTextureQuad): (WebKit::WebCompositorTextureQuad::uvRect): (WebKit::WebCompositorTextureQuad::textureId): (WebKit::WebCompositorTextureQuad::premultipliedAlpha): (WebKit::WebCompositorTextureQuad::flipped): 2012-07-05 Ian Vollick [chromium] Create a WebKit::Web* wrapper for the cc animation classes https://bugs.webkit.org/show_bug.cgi?id=90303 Reviewed by James Robinson. * Platform.gypi: * chromium/public/WebAnimation.h: Added. (WebCore): (WebKit): (WebAnimation): (WebKit::WebAnimation::WebAnimation): (WebKit::WebAnimation::~WebAnimation): * chromium/public/WebAnimationCurve.h: Added. (WebCore): (WebKit): (WebAnimationCurve): (WebKit::WebAnimationCurve::~WebAnimationCurve): (WebKit::WebAnimationCurve::WebAnimationCurve): * chromium/public/WebFloatAnimationCurve.h: Added. (WebCore): (WebKit): (WebFloatAnimationCurve): (WebKit::WebFloatAnimationCurve::WebFloatAnimationCurve): (WebKit::WebFloatAnimationCurve::~WebFloatAnimationCurve): * chromium/public/WebFloatKeyframe.h: Added. (WebKit): (WebKit::WebFloatKeyframe::WebFloatKeyframe): (WebFloatKeyframe): * chromium/public/WebTransformAnimationCurve.h: Added. (WebCore): (WebKit): (WebTransformAnimationCurve): (WebKit::WebTransformAnimationCurve::WebTransformAnimationCurve): (WebKit::WebTransformAnimationCurve::~WebTransformAnimationCurve): * chromium/public/WebTransformKeyframe.h: Added. (WebKit): (WebKit::WebTransformKeyframe::WebTransformKeyframe): (WebTransformKeyframe): 2012-07-03 Alex Sakhartchouk [chromium] Avoid calling getUniformLocation??() in the compositor startup https://bugs.webkit.org/show_bug.cgi?id=90217 Reviewed by Adrienne Walker. Adding an entry point for bindUniformLocationCHROMIUM. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::bindUniformLocationCHROMIUM): 2012-07-03 Tony Chang [chromium] Unreviewed, update .gitignore to handle VS2010 files. * Platform.gyp/.gitignore: 2012-07-02 Tommy Widenflycht MediaStream API: Update MediaStreamTrackList to match the specification https://bugs.webkit.org/show_bug.cgi?id=90171 Reviewed by Adam Barth. The latest update to the specification added add and remove methods with corresponding callbacks. The callbacks can be triggered both from JS and from the platform layer. * chromium/public/WebMediaStreamCenterClient.h: (WebKit): (WebMediaStreamCenterClient): 2012-07-01 Keishi Hattori Unreviewed, rolling out r121650. http://trac.webkit.org/changeset/121650 https://bugs.webkit.org/show_bug.cgi?id=90303 runhooks is failing for chromium win bots and WebAnimationTest.DefaultSettings is crashing * Platform.gypi: * chromium/public/WebAnimation.h: Removed. * chromium/public/WebAnimationCurve.h: Removed. * chromium/public/WebFloatAnimationCurve.h: Removed. * chromium/public/WebFloatKeyframe.h: Removed. * chromium/public/WebTransformAnimationCurve.h: Removed. * chromium/public/WebTransformKeyframe.h: Removed. 2012-07-01 Ian Vollick [chromium] Create a WebKit::Web* wrapper for the cc animation classes https://bugs.webkit.org/show_bug.cgi?id=90303 Reviewed by James Robinson. * Platform.gypi: * chromium/public/WebAnimation.h: Added. (WebCore): (WebKit): (WebAnimation): (WebKit::WebAnimation::WebAnimation): (WebKit::WebAnimation::~WebAnimation): * chromium/public/WebAnimationCurve.h: Added. (WebCore): (WebKit): (WebAnimationCurve): (WebKit::WebAnimationCurve::~WebAnimationCurve): (WebKit::WebAnimationCurve::WebAnimationCurve): * chromium/public/WebFloatAnimationCurve.h: Added. (WebCore): (WebKit): (WebFloatAnimationCurve): (WebKit::WebFloatAnimationCurve::WebFloatAnimationCurve): (WebKit::WebFloatAnimationCurve::~WebFloatAnimationCurve): * chromium/public/WebFloatKeyframe.h: Added. (WebKit): (WebKit::WebFloatKeyframe::WebFloatKeyframe): (WebFloatKeyframe): * chromium/public/WebTransformAnimationCurve.h: Added. (WebCore): (WebKit): (WebTransformAnimationCurve): (WebKit::WebTransformAnimationCurve::WebTransformAnimationCurve): (WebKit::WebTransformAnimationCurve::~WebTransformAnimationCurve): * chromium/public/WebTransformKeyframe.h: Added. (WebKit): (WebKit::WebTransformKeyframe::WebTransformKeyframe): (WebTransformKeyframe): 2012-06-30 Ian Vollick [chromium] CanvasLayerTextureUpdater needs to convert opaque rects back to content space. https://bugs.webkit.org/show_bug.cgi?id=90092 The CanvasLayerTextureUpdater currently receives its opaque rects in layer space, but is expected to return them in content space and does not convert them. This patch adds this conversion. To avoid numerical errors, this patch also switches to using float rects to store opaque rects where appropriate. Reviewed by Adrienne Walker. * chromium/public/WebContentLayerClient.h: (WebKit): (WebContentLayerClient): 2012-06-29 Tony Payne Remove type from screenColorProfile API https://bugs.webkit.org/show_bug.cgi?id=90299 Reviewed by Adam Barth. * chromium/public/Platform.h: (WebKit::Platform::screenColorProfile): Removed type from chromium public API's version of screenColorProfile(). 2012-06-28 James Robinson [chromium] Remove mapRect and mapQuad from WebTransformationMatrix https://bugs.webkit.org/show_bug.cgi?id=90230 Reviewed by Adrienne Walker. Removes clipping-unaware mapRect, mapQuad and projectPoint functions from the WebTransformationMatrix interface. * chromium/public/WebTransformationMatrix.h: (WebTransformationMatrix): 2012-06-28 Adrienne Walker [chromium] Split WebScrollbar into WebPluginScrollbar and WebScrollbar https://bugs.webkit.org/show_bug.cgi?id=90117 Reviewed by James Robinson. Move WebScrollbar from client API to Platform. * Platform.gypi: * chromium/public/WebScrollbar.h: Copied from Source/WebKit/chromium/public/WebPluginScrollbarClient.h. (WebKit): (WebScrollbar): (WebKit::WebScrollbar::~WebScrollbar): 2012-06-26 James Robinson [chromium] Remove WebView::graphicsContext3D getter https://bugs.webkit.org/show_bug.cgi?id=89916 Reviewed by Adrienne Walker. Remove unused getter. * chromium/public/WebLayerTreeView.h: (WebLayerTreeView): 2012-06-26 Dave Tu [chromium] Expose rendering statistics to WebWidget. https://bugs.webkit.org/show_bug.cgi?id=88268 Reviewed by James Robinson. The WebKit side of a basic framework for exposing rendering statistics to Chromium's --enable-benchmarking extension. * chromium/public/WebLayerTreeView.h: (WebRenderingStatistics): (WebKit): (WebLayerTreeView): 2012-06-25 James Robinson [chromium] Add WebLayer API for scrolling https://bugs.webkit.org/show_bug.cgi?id=89913 Reviewed by Adrienne Walker. Adds WebScrollableLayer type to represent a layer that can be scrolled by the user. Currently WebContentLayers are scrollable and no other layer types are, although this might change in the future. * chromium/public/WebContentLayer.h: (WebKit::WebContentLayer::WebContentLayer): * chromium/public/WebLayer.h: (WebLayer): * chromium/public/WebScrollableLayer.h: (WebKit): (WebScrollableLayer): (WebKit::WebScrollableLayer::WebScrollableLayer): (WebKit::WebScrollableLayer::~WebScrollableLayer): (WebKit::WebScrollableLayer::operator=): 2012-06-25 Sheriff Bot Unreviewed, rolling out r121176. http://trac.webkit.org/changeset/121176 https://bugs.webkit.org/show_bug.cgi?id=89934 [chromium] browser_tests assert failed: FATAL:native_theme_win.cc(1541)] Check failed: false. Invalid part: 16 (Requested by ukai on #webkit). * chromium/public/win/WebThemeEngine.h: (WebKit::WebThemeEngine::paintProgressBar): 2012-06-25 James Robinson [chromium] Use WebGraphicsContext3D in compositor implementation https://bugs.webkit.org/show_bug.cgi?id=89700 Reviewed by Adrienne Walker. Puts all callback destructors in protected section and removes obsolete memory callback signature. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContextLostCallback): (WebGraphicsErrorMessageCallback): (WebGraphicsSwapBuffersCompleteCallbackCHROMIUM): (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): 2012-06-25 Scott Graham Plumb Scrollbar button dimensions through WebThemeEngine https://bugs.webkit.org/show_bug.cgi?id=89264 Reviewed by James Robinson. Rather than making the height of the scrollbar buttons the same as the width of the scrollbar, delegate to the WebThemeEngine. This allows matching the Aura theme rather than the standard Windows theme. * chromium/public/win/WebThemeEngine.h: (WebKit): (WebThemeEngine): 2012-06-22 Kenneth Russell Unreviewed, rolling out r121064. http://trac.webkit.org/changeset/121064 https://bugs.webkit.org/show_bug.cgi?id=88268 Broke Chromium Mac build. * Platform.gypi: * chromium/public/WebLayerTreeView.h: (WebKit): (WebLayerTreeView): * chromium/public/WebRenderingStats.h: Removed. 2012-06-22 Dave Tu [chromium] Expose rendering statistics to WebWidget. https://bugs.webkit.org/show_bug.cgi?id=88268 Reviewed by James Robinson. The WebKit side of a basic framework for exposing rendering statistics to Chromium's --enable-benchmarking extension. * chromium/public/WebLayerTreeView.h: (WebRenderingStatistics): (WebKit): (WebLayerTreeView): 2012-06-22 Jeff Timanus [Chromium] Change implementing a fast-path for copying GPU-accelerated Canvas2D instances to WebGL textures. https://bugs.webkit.org/show_bug.cgi?id=86275 This change adds the necessary plumbing to the various rendering contexts to copy the backing store texture of a Canvas2D instance to be copied to a WebGL texture. The GL_CHROMIUM_copy_texture extension is necessary because the backing-store for a GPU-accelerated skia Canvas2D is normally in BGRA format, which is not supported by glCopyTexImage. Reviewed by Kenneth Russell. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::copyTextureCHROMIUM): 2012-06-20 Christopher Cameron [chromium] webkit-backface-visibility doesn't work with video https://bugs.webkit.org/show_bug.cgi?id=88908 When determining a contents layer's backface culling, use the parent layer's transform and backface-visibility properties. Track which layers need this special treatment with useParentBackfaceVisibility and setUseParentBackfaceVisibility functions in WebCore::LayerChromium, WebKit::WebLayer, and WebCore::CCLayerImpl. Reviewed by Adrienne Walker. * chromium/public/WebLayer.h: (WebLayer): Add an accessor to specify that a layer should use its parent's backface culling behavior. 2012-06-19 Tony Payne Add monitor profile support for Win https://bugs.webkit.org/show_bug.cgi?id=88565 Reviewed by Eric Seidel. * chromium/public/Platform.h: (Platform): (WebKit::Platform::screenColorProfile): 2012-06-14 James Robinson [chromium] Use WebImageLayer in GraphicsLayerChromium for image layers https://bugs.webkit.org/show_bug.cgi?id=89150 Reviewed by Adrienne Walker. Adds a WebImageLayer type to represent layers backed by (guess what) Images. * Platform.gypi: * chromium/public/WebImageLayer.h: Added. (WebCore): (WebKit): (WebImageLayer): (WebKit::WebImageLayer::WebImageLayer): (WebKit::WebImageLayer::~WebImageLayer): 2012-06-14 James Robinson [chromium] GraphicsLayerChromium should use WebContentLayer directly https://bugs.webkit.org/show_bug.cgi?id=89145 Reviewed by Adrienne Walker. Add an opaque rect parameter to WebContentLayerClient::paintContents() for a client to (optionally) provide information about opaque portions of the painted region for culling optimizations. * chromium/public/WebContentLayerClient.h: (WebContentLayerClient): 2012-06-16 Robert Kroeger [chromium] Make the deviceScaleFactor dynamically adjustable. https://bugs.webkit.org/show_bug.cgi?id=88916 Reviewed by James Robinson. * chromium/public/WebLayerTreeView.h: Plumb setDeviceScaleFactor and deviceScaleFactor functions. (WebKit::WebLayerTreeView::Settings::Settings): Remove deviceScaleFactor from settings as it is now dynamic. (Settings): (WebLayerTreeView): 2012-06-14 Ian Vollick [chromium] Certain settings in CCSettings could be global https://bugs.webkit.org/show_bug.cgi?id=88384 Reviewed by James Robinson. * chromium/public/WebLayerTreeView.h: (WebCore): (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-06-14 Eugene Klyuchnikov Web Inspector: Refactor message loop instrumentation. https://bugs.webkit.org/show_bug.cgi?id=88978 Reviewed by Pavel Feldman. 1) Remove "messageLoop" term 2) Reuse WebThread::TaskObserver interface 3) Move implementation (from embedder) to platform code. * chromium/public/WebThread.h: (TaskObserver): add "willProcessTask" method. 2012-06-13 Sheriff Bot Unreviewed, rolling out r120268. http://trac.webkit.org/changeset/120268 https://bugs.webkit.org/show_bug.cgi?id=89060 WebCompositor::setPerTilePaintingEnabled hits an assertion in DEBUG (Requested by dominicc|work on #webkit). * chromium/public/WebLayerTreeView.h: (WebCore): (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-06-13 Ian Vollick [chromium] Certain settings in CCSettings could be global https://bugs.webkit.org/show_bug.cgi?id=88384 Reviewed by James Robinson. * chromium/public/WebLayerTreeView.h: (WebCore): (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-06-12 James Robinson [chromium] Port Canvas2DLayerBridge over to WebExternalTextureLayer https://bugs.webkit.org/show_bug.cgi?id=88597 Reviewed by Adrienne Walker. This adds two new APIs to WebExternalTextureLayer that are used by the accelerated 2d canvas path: - willModifyTexture() is called to indicate that a system outside the compositor's control is about to modify the texture backing the WebExternalTextureLayer. This indicates to the compositor that it needs to avoid producing more frames using this texture until it can do a full commit - either by double buffering or appropriate flow control. - setRateLimitContext() is called to enable rate limiting for this texture. The rate limiting logic blocks if too many invalidate() or invalidateRect() calls are made on the texture outside of the context of a WebLayerTreeViewClient::updateAnimations() call to prevent a non-vsynced producer from getting too far ahead of the compositor. * chromium/public/WebExternalTextureLayer.h: (WebKit::WebExternalTextureLayer::WebExternalTextureLayer): (WebExternalTextureLayer): 2012-06-11 James Robinson [chromium] Port DrawingBufferChromium from TextureLayerChromium over to WebExternalTextureLayer https://bugs.webkit.org/show_bug.cgi?id=86273 Reviewed by Adrienne Walker. * Platform.gypi: * chromium/public/WebExternalTextureLayer.h: (WebKit): (WebExternalTextureLayer): * chromium/public/WebExternalTextureLayerClient.h: Copied from Source/WebKit/chromium/src/WebExternalTextureLayer.cpp. (WebKit): (WebTextureUpdater): (WebKit::WebTextureUpdater::~WebTextureUpdater): (WebExternalTextureLayerClient): (WebKit::WebExternalTextureLayerClient::~WebExternalTextureLayerClient): 2012-06-11 Dana Jansens [chromium] Separate CCVideoDrawQuad and from the layer tree and video provider by removing ManagedTexture and WebVideoFrame pointers from the quad https://bugs.webkit.org/show_bug.cgi?id=88363 Reviewed by Adrienne Walker. * Platform.gypi: * chromium/public/WebVideoFrame.h: * chromium/src/WebVideoFrame.cpp: Removed. 2012-06-08 David Reveman [Chromium] Compositor doesn't support translucent root layers. https://bugs.webkit.org/show_bug.cgi?id=87821 Reviewed by James Robinson. * chromium/public/WebLayer.h: (WebLayer): * chromium/public/WebLayerTreeView.h: (WebLayerTreeView): 2012-06-06 Mark Pilgrim [Chromium] Move createMessagePortChannel to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85764 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::createMessagePortChannel): * chromium/public/WebMessagePortChannel.h: Added. (WebKit): (WebMessagePortChannel): (WebKit::WebMessagePortChannel::~WebMessagePortChannel): * chromium/public/WebMessagePortChannelClient.h: Added. (WebKit): (WebMessagePortChannelClient): (WebKit::WebMessagePortChannelClient::~WebMessagePortChannelClient): 2012-06-05 Mark Pilgrim [Chromium] Move createLocalStorageNamespace to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85766 Reviewed by James Robinson. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::createLocalStorageNamespace): * chromium/public/WebStorageArea.h: Added. (WebKit): (WebStorageArea): (WebKit::WebStorageArea::~WebStorageArea): (WebKit::WebStorageArea::setItem): (WebKit::WebStorageArea::removeItem): (WebKit::WebStorageArea::clear): * chromium/public/WebStorageNamespace.h: Added. (WebKit): (WebStorageNamespace): (WebKit::WebStorageNamespace::~WebStorageNamespace): (WebKit::WebStorageNamespace::isSameNamespace): 2012-06-01 Alexandre Elias [chromium] Software compositor initialization and base classes https://bugs.webkit.org/show_bug.cgi?id=87920 Reviewed by James Robinson. Add a new setting to force software compositing. In this mode, no GraphicsContext3D should ever be created. * chromium/public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-06-01 Mark Pilgrim [Chromium] Call clipboard methods directly https://bugs.webkit.org/show_bug.cgi?id=88038 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * chromium/public/WebClipboard.h: (WebKit::WebClipboard::sequenceNumber): 2012-05-31 Shawn Singh [chromium] Migrate to WebTransformationMatrix https://bugs.webkit.org/show_bug.cgi?id=87788 Reviewed by James Robinson. * chromium/public/WebTransformationMatrix.h: (WebTransformationMatrix): 2012-05-31 Dana Jansens [chromium] Add copy constructor to WebFilterOperations https://bugs.webkit.org/show_bug.cgi?id=87970 Reviewed by James Robinson. * chromium/public/WebFilterOperations.h: (WebKit::WebFilterOperations::WebFilterOperations): 2012-05-31 Ian Vollick [chromium] create WebTransformOperation interface for chromium platform https://bugs.webkit.org/show_bug.cgi?id=87510 Reviewed by James Robinson. * Platform.gypi: * chromium/public/WebTransformOperations.h: Added. (WebKit): (WebTransformOperations): (WebKit::WebTransformOperations::~WebTransformOperations): (WebKit::WebTransformOperations::WebTransformOperations): (WebKit::WebTransformOperations::operator=): 2012-05-30 Yury Semikhatsky Web Inspector: add MemoryUsageSupport::processMemorySizesInBytes https://bugs.webkit.org/show_bug.cgi?id=87830 Reviewed by James Robinson. * chromium/public/Platform.h: (Platform): (WebKit::Platform::processMemorySizesInBytes): moved this method from Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h, also removed 'get' prefix. 2012-05-29 Mark Pilgrim [Chromium] Move fileExists to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87531 Reviewed by Adam Barth. Call fileExists through fileUtilities(), not directly. * chromium/public/Platform.h: (Platform): 2012-05-29 Mark Pilgrim [Chromium] Move fileExists to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87531 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * chromium/public/Platform.h: (WebKit::Platform::fileExists): (Platform): 2012-05-29 Shawn Singh [chromium] make WebTransformationMatrix object usable by non-webkit code https://bugs.webkit.org/show_bug.cgi?id=87315 Reviewed by James Robinson. * chromium/public/WebTransformationMatrix.h: (WebKit::WebTransformationMatrix::~WebTransformationMatrix): (WebTransformationMatrix): 2012-05-25 Kinuko Yasuda [chromium] Deprecate FileUtilities::getFileSize and getFileModifiedTime in favor of getFileMetadata https://bugs.webkit.org/show_bug.cgi?id=87492 Reviewed by Adam Barth. * chromium/public/WebFileUtilities.h: 2012-05-25 Mark Pilgrim [Chomium] Move sandboxSupport to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87518 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::sandboxSupport): * chromium/public/android/WebSandboxSupport.h: Added. (WebKit): (WebSandboxSupport): * chromium/public/linux/WebFontFamily.h: Added. (WebKit): (WebFontFamily): * chromium/public/linux/WebSandboxSupport.h: Added. (WebKit): (WebSandboxSupport): * chromium/public/mac/WebSandboxSupport.h: Added. (WebKit): (WebSandboxSupport): * chromium/public/win/WebSandboxSupport.h: Added. (WebKit): (WebSandboxSupport): 2012-05-17 Andrey Kosyakov [chromium] add instrumentation for compositing https://bugs.webkit.org/show_bug.cgi?id=83928 Reviewed by James Robinson. - added willCommit() and didBeginFrame() methods for instrumentation of compositing. * chromium/public/WebLayerTreeViewClient.h: (WebLayerTreeViewClient): 2012-05-21 Kinuko Yasuda Cleanup: add a file system call which captures the file metadata at once. https://bugs.webkit.org/show_bug.cgi?id=86995 Reviewed by David Levin. * Platform.gypi: Added an entry for WebFileInfo.h. * chromium/public/WebFileInfo.h: Renamed from Source/WebKit/chromium/public/WebFileInfo.h. (WebKit::WebFileInfo::WebFileInfo): * chromium/public/WebFileUtilities.h: (WebKit): (WebKit::WebFileUtilities::getFileInfo): Added. 2012-05-24 Antoine Labour [chromium] Add a setForceRenderSurface to WebLayer for test/bench purpose https://bugs.webkit.org/show_bug.cgi?id=87436 Reviewed by James Robinson. * chromium/public/WebLayer.h: (WebLayer): 2012-05-24 Mark Pilgrim [Chromium] Move queryLocalizedString to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85762 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::queryLocalizedString): * chromium/public/WebLocalizedString.h: Added. (WebKit): 2012-05-23 Sheriff Bot Unreviewed, rolling out r118218. http://trac.webkit.org/changeset/118218 https://bugs.webkit.org/show_bug.cgi?id=87299 breaks webkit win builder (Requested by pilgrim_google__ on #webkit). * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): * chromium/public/WebLocalizedString.h: Removed. 2012-05-23 Mark Pilgrim [Chromium] Move themeEngine to Platform.h https://bugs.webkit.org/show_bug.cgi?id=87268 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::themeEngine): * chromium/public/android: Added. * chromium/public/android/WebThemeEngine.h: Added. (WebKit): (WebThemeEngine): (ScrollbarTrackExtraParams): (ButtonExtraParams): (TextFieldExtraParams): (MenuListExtraParams): (SliderExtraParams): (InnerSpinButtonExtraParams): (ProgressBarExtraParams): (WebKit::WebThemeEngine::getSize): (WebKit::WebThemeEngine::paint): * chromium/public/linux: Added. * chromium/public/linux/WebThemeEngine.h: Added. (WebKit): (WebThemeEngine): (ScrollbarTrackExtraParams): (ButtonExtraParams): (TextFieldExtraParams): (MenuListExtraParams): (SliderExtraParams): (InnerSpinButtonExtraParams): (ProgressBarExtraParams): (WebKit::WebThemeEngine::getSize): (WebKit::WebThemeEngine::paint): * chromium/public/mac: Added. * chromium/public/mac/WebThemeEngine.h: Added. (WebKit): (WebThemeEngine): (ScrollbarInfo): (WebKit::WebThemeEngine::paintScrollbarThumb): * chromium/public/win: Added. * chromium/public/win/WebThemeEngine.h: Added. (WebKit): (WebThemeEngine): (WebKit::WebThemeEngine::paintSpinButton): (WebKit::WebThemeEngine::paintProgressBar): 2012-05-23 Mark Pilgrim [Chromium] Move queryLocalizedString to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85762 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::queryLocalizedString): * chromium/public/WebLocalizedString.h: Added. (WebKit): 2012-05-22 Mark Pilgrim [Chromium] Call canAccelerate2dCanvas directly https://bugs.webkit.org/show_bug.cgi?id=86893 Reviewed by James Robinson. Part of a refactoring series. See tracking bug 82948. * chromium/public/Platform.h: (Platform): (WebKit::Platform::canAccelerate2dCanvas): 2012-05-22 Mark Pilgrim [Chromium] Move cookieJar to Platform.h https://bugs.webkit.org/show_bug.cgi?id=86755 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::cookieJar): * chromium/public/WebCookie.h: Added. (WebKit): (WebKit::WebCookie::WebCookie): (WebCookie): * chromium/public/WebCookieJar.h: Added. (WebKit): (WebCookieJar): (WebKit::WebCookieJar::setCookie): (WebKit::WebCookieJar::cookies): (WebKit::WebCookieJar::cookieRequestHeaderFieldValue): (WebKit::WebCookieJar::rawCookies): (WebKit::WebCookieJar::deleteCookie): (WebKit::WebCookieJar::cookiesEnabled): (WebKit::WebCookieJar::~WebCookieJar): 2012-05-22 Gavin Peters [Chromium] Remove old staging enum value WebURLRequest::TargetType::TargetIsPrerender https://bugs.webkit.org/show_bug.cgi?id=85021 Reviewed by Adam Barth. * chromium/public/WebURLRequest.h: 2012-05-21 James Robinson [chromium] Port chromium compositor to use WebFilterOperation(s) https://bugs.webkit.org/show_bug.cgi?id=87046 Reviewed by Adrienne Walker. This changes WebFilterOperation / WebFilterOperations from being simple wrappers over WebCore types to being standalone. WebFilterOperation is a plain old data struct with some convenience constuctors and type assertions. Each WebFilterOperation contains a type tag and the parameters needed for each filter. WebFilterOperations represents an ordered list of WebFilterOperation instances and can be copied around as needed. It also exposes a few convenience functions about how the filters will modify pixels. * Platform.gypi: * chromium/public/WebFilterOperation.h: (WebFilterOperation): (WebKit::WebFilterOperation::type): (WebKit::WebFilterOperation::amount): (WebKit::WebFilterOperation::dropShadowOffset): (WebKit::WebFilterOperation::dropShadowColor): (WebKit::WebFilterOperation::createGrayscaleFilter): (WebKit::WebFilterOperation::createSepiaFilter): (WebKit::WebFilterOperation::createSaturateFilter): (WebKit::WebFilterOperation::createHueRotateFilter): (WebKit::WebFilterOperation::createInvertFilter): (WebKit::WebFilterOperation::createBrightnessFilter): (WebKit::WebFilterOperation::createContrastFilter): (WebKit::WebFilterOperation::createOpacityFilter): (WebKit::WebFilterOperation::createBlurFilter): (WebKit::WebFilterOperation::createDropShadowFilter): (WebKit::WebFilterOperation::equals): (WebKit::WebFilterOperation::WebFilterOperation): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebFilterOperations.h: (WebKit): (WebKit::WebFilterOperations::WebFilterOperations): (WebKit::WebFilterOperations::operator=): (WebFilterOperations): (WebKit::operator==): (WebKit::operator!=): * chromium/src/WebFilterOperations.cpp: Added. (WebKit): (WebFilterOperationsPrivate): (WebKit::WebFilterOperations::initialize): (WebKit::WebFilterOperations::destroy): (WebKit::WebFilterOperations::assign): (WebKit::WebFilterOperations::equals): (WebKit::WebFilterOperations::append): (WebKit::WebFilterOperations::clear): (WebKit::WebFilterOperations::isEmpty): (WebKit::spreadForStdDeviation): (WebKit::WebFilterOperations::getOutsets): (WebKit::WebFilterOperations::hasFilterThatMovesPixels): (WebKit::WebFilterOperations::hasFilterThatAffectsOpacity): (WebKit::WebFilterOperations::size): (WebKit::WebFilterOperations::at): 2012-05-17 Mark Pilgrim [Chromium] Move Web Workers methods to Platform.h https://bugs.webkit.org/show_bug.cgi?id=86799 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::didStartWorkerRunLoop): (WebKit::Platform::didStopWorkerRunLoop): * chromium/public/WebWorkerRunLoop.h: Added. (WebCore): (WebKit): (WebWorkerRunLoop): (Task): (WebKit::WebWorkerRunLoop::Task::~Task): (WebKit::operator==): (WebKit::operator<): 2012-05-17 Dana Jansens [chromium] Scale all compositor output by the defaultDeviceScaleFactor https://bugs.webkit.org/show_bug.cgi?id=86051 Reviewed by James Robinson. * chromium/public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-05-17 Ami Fischman [Chromium] Store HTTP version in WebURLResponse https://bugs.webkit.org/show_bug.cgi?id=86522 Reviewed by Adam Barth. * chromium/public/WebURLResponse.h: (WebURLResponse): 2012-05-17 Vangelis Kokkevis [chromium] Expose layer tiling size options to WebSettings https://bugs.webkit.org/show_bug.cgi?id=86425 Adding entries for tile size and max untiled layer size. Reviewed by Adrienne Walker. * chromium/public/WebLayerTreeView.h: (WebKit): (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-05-17 Mark Pilgrim [Chromium] Move fileUtilities to Platform.h https://bugs.webkit.org/show_bug.cgi?id=86777 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::fileUtilities): * chromium/public/WebFileUtilities.h: Added. (WebKit): (WebFileUtilities): (WebKit::WebFileUtilities::revealFolderInOS): (WebKit::WebFileUtilities::fileExists): (WebKit::WebFileUtilities::deleteFile): (WebKit::WebFileUtilities::deleteEmptyDirectory): (WebKit::WebFileUtilities::getFileSize): (WebKit::WebFileUtilities::getFileModificationTime): (WebKit::WebFileUtilities::directoryName): (WebKit::WebFileUtilities::pathByAppendingComponent): (WebKit::WebFileUtilities::makeAllDirectories): (WebKit::WebFileUtilities::getAbsolutePath): (WebKit::WebFileUtilities::isDirectory): (WebKit::WebFileUtilities::filePathToURL): (WebKit::WebFileUtilities::openFile): (WebKit::WebFileUtilities::closeFile): (WebKit::WebFileUtilities::seekFile): (WebKit::WebFileUtilities::truncateFile): (WebKit::WebFileUtilities::readFromFile): (WebKit::WebFileUtilities::writeToFile): (WebKit::WebFileUtilities::~WebFileUtilities): 2012-05-11 James Robinson [chromium] Convert GraphicsLayerChromium to use WebLayer types https://bugs.webkit.org/show_bug.cgi?id=86269 Reviewed by Adrienne Walker. Adds some new WebLayer / WebContentLayer APIs that WebCore::GraphicsLayerChromium needs. * chromium/public/WebContentLayer.h: (WebCore): (WebKit): (WebContentLayer): * chromium/public/WebLayer.h: (WebKit): (WebKit::WebLayer::isNull): (WebLayer): * chromium/public/WebTransformationMatrix.h: (WebKit::WebTransformationMatrix::~WebTransformationMatrix): Fix a memory leak - WebPrivateOwnPtr<>s have to be explicitly cleared. (WebTransformationMatrix): 2012-05-16 Dana Jansens [chromium] Clear the m_private pointer when destroying WebFilterOperations to avoid assert in WebPrivateOwnPtr https://bugs.webkit.org/show_bug.cgi?id=86654 Reviewed by James Robinson. * chromium/public/WebFilterOperations.h: (WebKit::WebFilterOperations::~WebFilterOperations): (WebFilterOperations): 2012-05-16 Kenichi Ishibashi [Chromium] WebTransformationMatrixTest.verifyDefaultConstructorCreatesIdentityMatrix is failing https://bugs.webkit.org/show_bug.cgi?id=86589 Reviewed by Kent Tamura. * chromium/public/WebTransformationMatrix.h: Added destructor. (WebTransformationMatrix): 2012-05-15 Sheriff Bot Unreviewed, rolling out r117204. http://trac.webkit.org/changeset/117204 https://bugs.webkit.org/show_bug.cgi?id=86559 causing win compilation failures (Requested by pilgrim_google_ on #webkit). * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): * chromium/public/WebMessagePortChannel.h: Removed. * chromium/public/WebMessagePortChannelClient.h: Removed. 2012-05-15 Mark Pilgrim [Chromium] Move createMessagePortChannel to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85764 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::createMessagePortChannel): * chromium/public/WebMessagePortChannel.h: Added. (WebKit): (WebMessagePortChannel): (WebKit::WebMessagePortChannel::~WebMessagePortChannel): * chromium/public/WebMessagePortChannelClient.h: Added. (WebKit): (WebMessagePortChannelClient): (WebKit::WebMessagePortChannelClient::~WebMessagePortChannelClient): 2012-05-15 Mark Pilgrim [Chromium] Move blobRegistry to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85765 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::blobRegistry): * chromium/public/WebBlobData.h: Added. (WebKit): (WebBlobData): (WebKit::WebBlobData::~WebBlobData): (WebKit::WebBlobData::WebBlobData): (WebKit::WebBlobData::isNull): * chromium/public/WebBlobRegistry.h: Added. (WebKit): (WebBlobRegistry): (WebKit::WebBlobRegistry::~WebBlobRegistry): 2012-05-15 James Robinson [chromium] Remove WEBKIT_USING_(SKIA|CG) #defines https://bugs.webkit.org/show_bug.cgi?id=86536 Reviewed by Adam Barth. The Chromium port always using Skia, so WEBKIT_USING_CG has been dead code for many moons. * chromium/public/WebCommon.h: 2012-05-15 James Robinson [chromium] Move createOffscreenGraphicsContext3D() from WebKitPlatformSupport to Platform https://bugs.webkit.org/show_bug.cgi?id=86524 Reviewed by Adam Barth. Moves createOffscreenGraphicsContext3D(), previously on WebKitPlatformSupport, to WebKit::Platform. * chromium/public/Platform.h: (Platform): (WebKit::Platform::createOffscreenGraphicsContext3D): 2012-05-14 Gavin Peters Add Prerenderer, PrerenderHandle and a chromium interface for Prerendering. https://bugs.webkit.org/show_bug.cgi?id=85005 Reviewed by Adam Barth. * Platform.gypi: * chromium/public/WebPrerender.h: (WebKit::WebPrerender::referrer): (WebCore): (WebPrerender): * chromium/public/WebPrerenderingSupport.h: (WebKit): (WebPrerenderingSupport): * chromium/public/WebURLRequest.h: * chromium/src/WebPrerenderingSupport.cpp: Added. (WebKit): (WebKit::WebPrerenderingSupport::initialize): (WebKit::WebPrerenderingSupport::shutdown): (WebKit::WebPrerenderingSupport::current): 2012-05-12 Sheriff Bot Unreviewed, rolling out r116812. http://trac.webkit.org/changeset/116812 https://bugs.webkit.org/show_bug.cgi?id=86313 Appears to be causing a top crash (Requested by abarth on #webkit). * Platform.gypi: * chromium/public/Platform.h: (WebKit): * chromium/public/WebStorageArea.h: Removed. * chromium/public/WebStorageNamespace.h: Removed. 2012-05-11 Shawn Singh [chromium] Plumb --show-paint-rects to accelerated compositor https://bugs.webkit.org/show_bug.cgi?id=86255 Reviewed by James Robinson. * chromium/public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-05-11 Mark Pilgrim [Chromium] Move createLocalStorageNamespace to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85766 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::createLocalStorageNamespace): * chromium/public/WebStorageArea.h: Added. (WebKit): (WebStorageArea): (WebKit::WebStorageArea::~WebStorageArea): (WebKit::WebStorageArea::setItem): (WebKit::WebStorageArea::removeItem): (WebKit::WebStorageArea::clear): * chromium/public/WebStorageNamespace.h: Added. (WebKit): (WebStorageNamespace): (WebKit::WebStorageNamespace::~WebStorageNamespace): (WebKit::WebStorageNamespace::isSameNamespace): 2012-05-11 Shawn Singh [chromium] Create WebTransformationMatrix interface for chromium platform https://bugs.webkit.org/show_bug.cgi?id=86049 Reviewed by James Robinson. * Platform.gyp/Platform.gyp: * Platform.gypi: * chromium/public/WebTransformationMatrix.h: Added. (WebCore): (WebKit): (WebTransformationMatrix): 2012-05-10 Mark Pilgrim [Chromium] Remove WEBKIT_USING_SKIA ifdefs that are always true https://bugs.webkit.org/show_bug.cgi?id=86121 Reviewed by Adam Barth. Chromium always uses Skia now, so this just removes the barriers around code that was previously #if'd. * chromium/public/WebCanvas.h: (WebKit): * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::onCreateGrGLInterface): * chromium/public/WebImage.h: (WebImage): 2012-05-10 Mark Pilgrim [Chromium] Remove dead code behind unused WEBKIT_USING_CG https://bugs.webkit.org/show_bug.cgi?id=86018 Reviewed by Adam Barth. We never use CoreGraphics as the backend for GraphicsContext in Chromium, so this is all dead code. * chromium/public/WebCanvas.h: (WebKit): * chromium/public/WebImage.h: (WebImage): 2012-05-09 Mark Pilgrim [Chromium] Move clipboard to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85758 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::clipboard): * chromium/public/WebClipboard.h: Added. (WebKit): (WebClipboard): (WebKit::WebClipboard::sequenceNumber): (WebKit::WebClipboard::isFormatAvailable): (WebKit::WebClipboard::readAvailableTypes): (WebKit::WebClipboard::readPlainText): (WebKit::WebClipboard::readHTML): (WebKit::WebClipboard::readImage): (WebKit::WebClipboard::readCustomData): (WebKit::WebClipboard::writePlainText): (WebKit::WebClipboard::writeHTML): (WebKit::WebClipboard::writeURL): (WebKit::WebClipboard::writeImage): (WebKit::WebClipboard::writeDataObject): (WebKit::WebClipboard::~WebClipboard): * chromium/public/WebDragData.h: Added. (WebKit): (WebDragData): (WebKit::WebDragData::~WebDragData): (WebKit::WebDragData::WebDragData): (WebKit::WebDragData::operator=): (WebKit::WebDragData::isNull): * chromium/public/WebImage.h: Added. (WebKit): (WebImage): (WebKit::WebImage::~WebImage): (WebKit::WebImage::WebImage): (WebKit::WebImage::operator=): (WebKit::WebImage::getSkBitmap): (WebKit::WebImage::init): (WebKit::WebImage::getCGImageRef): 2012-05-09 Tommy Widenflycht MediaStream API: Adding the possibility of port specific information in MediaStreamDescriptor https://bugs.webkit.org/show_bug.cgi?id=85794 Reviewed by Adam Barth. To facilitate for ports I have added an ExtraData field that can be used for whatever purpose is needed. * chromium/public/WebMediaStreamDescriptor.h: (ExtraData): (WebKit::WebMediaStreamDescriptor::ExtraData::~ExtraData): (WebMediaStreamDescriptor): 2012-05-07 Mark Pilgrim [Chromium] Move fileSystem to Platform.h https://bugs.webkit.org/show_bug.cgi?id=85760 Reviewed by Adam Barth. Part of a refactoring series. See tracking bug 82948. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::fileSystem): * chromium/public/WebFileSystem.h: Added. (WebKit): (WebFileSystem): (WebKit::WebFileSystem::move): (WebKit::WebFileSystem::copy): (WebKit::WebFileSystem::remove): (WebKit::WebFileSystem::removeRecursively): (WebKit::WebFileSystem::readMetadata): (WebKit::WebFileSystem::createFile): (WebKit::WebFileSystem::createDirectory): (WebKit::WebFileSystem::fileExists): (WebKit::WebFileSystem::directoryExists): (WebKit::WebFileSystem::readDirectory): (WebKit::WebFileSystem::createFileWriter): (WebKit::WebFileSystem::createSnapshotFileAndReadMetadata): (WebKit::WebFileSystem::~WebFileSystem): 2012-05-07 Tommy Widenflycht MediaStream API: Rename MediaStreamCenter::didConstructMediaStream https://bugs.webkit.org/show_bug.cgi?id=85796 Reviewed by Adam Barth. Renamed WebMediaStreamCenter::didConstructMediaStream to didCreateMediaStream, and change so that it is only called for MediaStreams created from JS. Also send out the WebMediaStreamDescriptor non-const instead. * chromium/public/WebMediaStreamCenter.h: (WebKit::WebMediaStreamCenter::didCreateMediaStream): (WebMediaStreamCenter): (WebKit::WebMediaStreamCenter::didConstructMediaStream): 2012-05-07 Tommy Widenflycht MediaStream API: Allow UserMediaRequest::succeed to take an MediaStreamDescriptor https://bugs.webkit.org/show_bug.cgi?id=85798 Reviewed by Adam Barth. Adding another UserMediaRequest::succeed function that takes an MediaStreamDescriptor instead of the two MediaStreamSource arrays. * chromium/public/WebMediaStreamCenter.h: (WebMediaStreamCenter): (WebKit::WebMediaStreamCenter::constructSDP): 2012-05-04 Tommy Widenflycht MediaStream API: Make PeerConnection00's API fully compliant with the draft https://bugs.webkit.org/show_bug.cgi?id=85491 Reviewed by Adam Barth. * chromium/public/WebPeerConnection00HandlerClient.h: 2012-05-02 Dana Jansens [chromium] Don't occlude pixels in a surface that are needed for a background filter blur https://bugs.webkit.org/show_bug.cgi?id=84317 Reviewed by Adrienne Walker. * chromium/public/WebFilterOperation.h: 2012-05-01 Gavin Peters [Chromium] Fix WebPrerender::referrer() thunk. https://bugs.webkit.org/show_bug.cgi?id=85290 Reviewed by Dimitri Glazkov. * chromium/public/WebPrerender.h: (WebKit::WebPrerender::referrer): 2012-04-30 Gavin Peters [Chromium] Add thunk headers for staging Prerendering API. https://bugs.webkit.org/show_bug.cgi?id=84880 Reviewed by Adam Barth. These empty headers will be replaced by the actual API when Bug 85005 is commited. * Platform.gypi: * chromium/public/WebPrerender.h: Added. (WebKit): (WebPrerender): (ExtraData): (WebKit::WebPrerender::ExtraData::~ExtraData): (WebKit::WebPrerender::url): (WebKit::WebPrerender::referrer): (WebKit::WebPrerender::referrerPolicy): (WebKit::WebPrerender::setExtraData): (WebKit::WebPrerender::extraData): (WebKit::WebPrerender::WebPrerender): (WebKit::WebPrerender::~WebPrerender): * chromium/public/WebPrerenderingSupport.h: Added. (WebKit): (WebPrerenderingSupport): (WebKit::WebPrerenderingSupport::initialize): (WebKit::WebPrerenderingSupport::shutdown): (WebKit::WebPrerenderingSupport::current): (WebKit::WebPrerenderingSupport::add): (WebKit::WebPrerenderingSupport::cancel): (WebKit::WebPrerenderingSupport::abandon): (WebKit::WebPrerenderingSupport::WebPrerenderingSupport): (WebKit::WebPrerenderingSupport::~WebPrerenderingSupport): 2012-04-26 James Robinson [chromium] Separate IOSurface layer type from texture layers https://bugs.webkit.org/show_bug.cgi?id=85030 Reviewed by Adrienne Walker. Adds a new layer type for IOSurface backed layers, instead of sharing that functionality in WebExternalTextureLayer. IOSurface backed layers do not share any other properties with external texture layers. * Platform.gypi: * chromium/public/WebExternalTextureLayer.h: (WebExternalTextureLayer): * chromium/public/WebIOSurfaceLayer.h: (WebCore): (WebKit): (WebIOSurfaceLayer): (WebKit::WebIOSurfaceLayer::WebIOSurfaceLayer): (WebKit::WebIOSurfaceLayer::~WebIOSurfaceLayer): 2012-04-25 Dana Jansens [chromium] Remove guarded virtual methods from WebFilterOperation API https://bugs.webkit.org/show_bug.cgi?id=84926 Reviewed by James Robinson. We remove the virtual methods from the WebFilterOperation class, and use an enum in the base class to distinguish which subclass the object is. Then WebFilterOperations can access the correct subclass to get the filter operation's data and construct a WebCore::FilterOperation to store internally. * chromium/public/WebFilterOperation.h: (WebKit::WebFilterOperation::WebFilterOperation): (WebKit::WebBasicColorMatrixFilterOperation::WebBasicColorMatrixFilterOperation): (WebBasicColorMatrixFilterOperation): (WebKit::WebBasicComponentTransferFilterOperation::WebBasicComponentTransferFilterOperation): (WebBasicComponentTransferFilterOperation): (WebKit::WebBlurFilterOperation::WebBlurFilterOperation): (WebKit::WebDropShadowFilterOperation::WebDropShadowFilterOperation): 2012-04-25 Gavin Peters [Chromium] Fix some conditional compilation logic in Platform https://bugs.webkit.org/show_bug.cgi?id=83798 Reviewed by Darin Fisher. * chromium/public/WebURLError.h: (WebURLError): * chromium/public/WebURLRequest.h: (WebURLRequest): * chromium/public/WebURLResponse.h: (WebURLResponse): 2012-04-25 Gavin Peters Move WebReferrerPolicy.h from WebKit to Platform https://bugs.webkit.org/show_bug.cgi?id=84539 Reviewed by Adam Barth. * Platform.gypi: * chromium/public/WebReferrerPolicy.h: Copied from Source/WebKit/chromium/public/WebReferrerPolicy.h. (WebKit): 2012-04-24 Yuzhu Shen [chromium] Add a description field in WebURLError and show failure description in the inspector network tab. https://bugs.webkit.org/show_bug.cgi?id=84566 Reviewed by Pavel Feldman. * chromium/public/WebURLError.h: (WebURLError): 2012-04-18 James Robinson [chromium] Use TextureLayerChromium for WebGL content instead of a dedicated layer type https://bugs.webkit.org/show_bug.cgi?id=84311 Reviewed by Adrienne Walker. Remove some unused getters. * chromium/public/WebExternalTextureLayer.h: (WebExternalTextureLayer): 2012-04-20 Dana Jansens [chromium] WebFilterOperations API does not compile or dynamically link https://bugs.webkit.org/show_bug.cgi?id=84506 Reviewed by James Robinson. Non-inline functions need WEBKIT_EXPORT in their declarations, and the type used in the WebPrivateOwnPtr needs to be forward- declared even when WEBKIT_IMPLEMENTATION is not defined. * chromium/public/WebFilterOperations.h: (WebKit::WebFilterOperations::WebFilterOperations): (WebFilterOperations): 2012-04-20 James Robinson [chromium] Plumb a compositor surface ready notification through to the threaded compositor https://bugs.webkit.org/show_bug.cgi?id=84305 Reviewed by Adrienne Walker. Add a notification for when the compositor surface associated with a given view is ready to use. * chromium/public/WebLayerTreeView.h: (WebLayerTreeView): 2012-04-16 James Robinson [chromium] Convert WebPluginContainerImpl over to use WebExternalTextureLayer https://bugs.webkit.org/show_bug.cgi?id=84120 Reviewed by Adrienne Walker. This adds support for IO surface backed WebExternalTextureLayer, used by CoreAnimation plugins on OS X and moves some functionality used by multiple WebLayer subclasses up to the base class. * chromium/public/WebContentLayer.h: (WebContentLayer): * chromium/public/WebExternalTextureLayer.h: (WebCore): (WebExternalTextureLayer): * chromium/public/WebLayer.h: (WebKit): (WebLayer): (WebKit::WebLayer::unwrap): 2012-04-17 Dana Jansens [chromium] Fix gyp for WebFilterOperation.h and WebFilterOperations.h https://bugs.webkit.org/show_bug.cgi?id=84182 Reviewed by James Robinson. * Platform.gypi: 2012-04-16 Kent Tamura [Chromium] Fix Chromium-Mac build https://bugs.webkit.org/show_bug.cgi?id=80054 * chromium/public/WebFilterOperations.h: (WebKit): WebFilterOperation is a struct, not a class. 2012-04-16 Dana Jansens [chromium] Expose compositor filters to Aura through WebLayer https://bugs.webkit.org/show_bug.cgi?id=80054 Reviewed by James Robinson. * chromium/public/WebFilterOperation.h: Added. (WebKit): (WebFilterOperation): (WebKit::WebFilterOperation::WebFilterOperation): (WebBasicColorMatrixFilterOperation): (WebKit::WebBasicColorMatrixFilterOperation::WebBasicColorMatrixFilterOperation): (WebBasicComponentTransferFilterOperation): (WebKit::WebBasicComponentTransferFilterOperation::WebBasicComponentTransferFilterOperation): (WebBlurFilterOperation): (WebKit::WebBlurFilterOperation::WebBlurFilterOperation): (WebDropShadowFilterOperation): (WebKit::WebDropShadowFilterOperation::WebDropShadowFilterOperation): * chromium/public/WebFilterOperations.h: Added. (WebKit): (WebFilterOperations): * chromium/public/WebLayer.h: (WebKit): (WebLayer): 2012-04-13 James Robinson [chromium] Expose WebVideoLayer to Platform API and port WebMediaPlayerClientImpl to using it https://bugs.webkit.org/show_bug.cgi?id=83963 Reviewed by Adrienne Walker. Adds a compositor layer type for video, WebVideoLayer, and a WebVideoProvider interface. * Platform.gypi: * chromium/public/WebContentLayer.h: (WebContentLayer): * chromium/public/WebLayer.h: (WebLayer): (WebKit::WebLayer::unwrap): * chromium/public/WebVideoFrameProvider.h: Renamed from Source/WebCore/platform/graphics/chromium/VideoFrameProvider.h. (WebKit): (WebVideoFrameProvider): (WebKit::WebVideoFrameProvider::~WebVideoFrameProvider): (Client): * chromium/public/WebVideoLayer.h: Copied from Source/WebKit/chromium/src/WebContentLayer.cpp. (WebCore): (WebKit): (WebVideoLayer): (WebKit::WebVideoLayer::WebVideoLayer): (WebKit::WebVideoLayer::~WebVideoLayer): 2012-04-11 James Robinson [chromium] Remove unused compositeToTexture / compositeOffscreen setting https://bugs.webkit.org/show_bug.cgi?id=83733 Reviewed by Adrienne Walker. Remove compositeOffscreen setting. This was an experiment that is no longer needed. * chromium/public/WebLayerTreeView.h: (WebKit::WebLayerTreeView::Settings::Settings): (Settings): 2012-04-13 James Robinson [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API https://bugs.webkit.org/show_bug.cgi?id=83851 Reviewed by Adam Barth. Move WebVideoFrame API into Platform. * Platform.gypi: * chromium/public/WebVideoFrame.h: Renamed from Source/WebCore/platform/graphics/chromium/VideoFrameChromium.h. (WebKit): (WebVideoFrame): (WebKit::WebVideoFrame::~WebVideoFrame): (WebKit::WebVideoFrame::format): (WebKit::WebVideoFrame::width): (WebKit::WebVideoFrame::height): (WebKit::WebVideoFrame::planes): (WebKit::WebVideoFrame::stride): (WebKit::WebVideoFrame::data): (WebKit::WebVideoFrame::textureId): (WebKit::WebVideoFrame::textureTarget): * chromium/src/WebVideoFrame.cpp: Renamed from Source/WebCore/platform/graphics/chromium/VideoFrameChromium.cpp. (WebKit): 2012-04-12 Sheriff Bot Unreviewed, rolling out r114075. http://trac.webkit.org/changeset/114075 https://bugs.webkit.org/show_bug.cgi?id=83857 Breaks compile (Requested by jamesr on #webkit). * Platform.gypi: 2012-04-12 James Robinson [chromium] Move WebVideoFrame into Platform and remove WebCore::VideoFrameChromium wrapper API https://bugs.webkit.org/show_bug.cgi?id=83851 Reviewed by Adam Barth. Move WebVideoFrame API into Platform. * Platform.gypi: * chromium/public/WebVideoFrame.h: Renamed from Source/WebCore/platform/graphics/chromium/VideoFrameChromium.h. (WebKit): (WebVideoFrame): (WebKit::WebVideoFrame::~WebVideoFrame): (WebKit::WebVideoFrame::format): (WebKit::WebVideoFrame::width): (WebKit::WebVideoFrame::height): (WebKit::WebVideoFrame::planes): (WebKit::WebVideoFrame::stride): (WebKit::WebVideoFrame::data): (WebKit::WebVideoFrame::textureId): (WebKit::WebVideoFrame::textureTarget): * chromium/src/WebVideoFrame.cpp: Renamed from Source/WebCore/platform/graphics/chromium/VideoFrameChromium.cpp. (WebKit): 2012-04-11 David Dorwin Add keySystem attribute to canPlayType() for Encrypted Media Extensions https://bugs.webkit.org/show_bug.cgi?id=82973 Reviewed by Adam Barth. The new attribute is behind the ENABLE(ENCRYPTED_MEDIA) feature define. Implementation is based on v0.1 of the draft proposal at http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#extensions. * chromium/public/WebMimeRegistry.h: (WebKit::WebMimeRegistry::supportsMediaMIMEType): 2012-04-09 Dana Jansens [chromium] Viewport is not filled when out of texture memory on mac https://bugs.webkit.org/show_bug.cgi?id=83351 Reviewed by Adrienne Walker. * chromium/public/WebLayerTreeView.h: (WebLayerTreeView): 2012-04-09 James Robinson [chromium] CCLayerTreeHost / WebLayerTreeView should be single ownership, not RefCounted https://bugs.webkit.org/show_bug.cgi?id=83413 Reviewed by Adrienne Walker. This makes WebLayerTreeView noncopyable to better match the underlying semantics. There is no code currently that attempts to copy WebLayerTreeView instances. * chromium/public/WebLayerTreeView.h: (WebKit): (WebLayerTreeView): 2012-04-04 Adam Barth figure out how to export webcore symbols from webkit.dll properly https://bugs.webkit.org/show_bug.cgi?id=83105 Reviewed by Dimitri Glazkov. Unwind our ugly, ugly hack to make the Windows component build work. * chromium/public/WebMediaStreamSourcesRequest.h: (WebMediaStreamSourcesRequest): 2012-04-03 Adam Barth Unreviewed. This patch adds an ugly, ugly hack to bandaid over the Windows component build. See comments in the code for details. * chromium/public/WebMediaStreamSourcesRequest.h: (WebMediaStreamSourcesRequest): 2012-04-02 Zhenyao Mo Implement WebGLShaderPrecisionFormat https://bugs.webkit.org/show_bug.cgi?id=75925 Reviewed by Kenneth Russell. * chromium/public/WebGraphicsContext3D.h: Add getShaderPrecisionFormat(). (WebGraphicsContext3D): 2012-04-03 Adam Barth Attempt to fix the Windows component build by including these headers rather than forward declaring these objects. * chromium/public/WebMediaStreamSourcesRequest.h: (WebKit): 2012-04-02 Adam Barth [Chromium] Move a number of virtual functions from WebKitPlatformSupport.h into Platform.h https://bugs.webkit.org/show_bug.cgi?id=82865 Reviewed by Kent Tamura. Moving these functions into Platform.h allows them to be called from Platform (aka WebCore/platform), as discussed in https://lists.webkit.org/pipermail/webkit-dev/2012-March/020166.html * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::mimeRegistry): (WebKit::Platform::audioHardwareSampleRate): (WebKit::Platform::audioHardwareBufferSize): (WebKit::Platform::createAudioDevice): (WebKit::Platform::sampleGamepads): (WebKit::Platform::visitedLinkHash): (WebKit::Platform::isLinkVisited): (WebKit::Platform::signedPublicKeyAndChallengeString): (WebKit::Platform::memoryUsageMB): (WebKit::Platform::actualMemoryUsageMB): (WebKit::Platform::lowMemoryUsageMB): (WebKit::Platform::highMemoryUsageMB): (WebKit::Platform::highUsageDeltaMB): (WebKit::Platform::prefetchHostName): (WebKit::Platform::createSocketStreamHandle): (WebKit::Platform::userAgent): (WebKit::Platform::cacheMetadata): (WebKit::Platform::createThread): (WebKit::Platform::currentThread): (WebKit::Platform::decrementStatsCounter): (WebKit::Platform::incrementStatsCounter): (WebKit::Platform::loadResource): (WebKit::Platform::loadAudioResource): (WebKit::Platform::sandboxEnabled): (WebKit::Platform::suddenTerminationChanged): (WebKit::Platform::defaultLocale): (WebKit::Platform::currentTime): (WebKit::Platform::monotonicallyIncreasingTime): (WebKit::Platform::setSharedTimerFiredFunction): (WebKit::Platform::setSharedTimerFireInterval): (WebKit::Platform::stopSharedTimer): (WebKit::Platform::callOnMainThread): (WebKit::Platform::getTraceCategoryEnabledFlag): (WebKit::Platform::addTraceEvent): (WebKit::Platform::histogramCustomCounts): (WebKit::Platform::histogramEnumeration): 2012-04-02 Adam Barth [Chromium] Move another block of headers from WebKit/chromium/public/platform to Platform/chromium/public https://bugs.webkit.org/show_bug.cgi?id=82862 Rubber-stamped by Eric Seidel. * Platform.gypi: * chromium/public/WebAudioBus.h: Copied from Source/WebKit/chromium/public/platform/WebAudioBus.h. * chromium/public/WebAudioDevice.h: Copied from Source/WebKit/chromium/public/platform/WebAudioDevice.h. * chromium/public/WebGamepad.h: Copied from Source/WebKit/chromium/public/platform/WebGamepad.h. * chromium/public/WebGamepads.h: Copied from Source/WebKit/chromium/public/platform/WebGamepads.h. * chromium/public/WebSocketStreamError.h: Copied from Source/WebKit/chromium/public/platform/WebSocketStreamError.h. * chromium/public/WebSocketStreamHandle.h: Copied from Source/WebKit/chromium/public/platform/WebSocketStreamHandle.h. * chromium/public/WebSocketStreamHandleClient.h: Copied from Source/WebKit/chromium/public/platform/WebSocketStreamHandleClient.h. 2012-04-01 Adam Barth [Chromium] Move thread-related APIs from WebKit into Platform https://bugs.webkit.org/show_bug.cgi?id=82858 Reviewed by Eric Seidel. * Platform.gypi: * chromium/public/WebThread.h: Copied from Source/WebKit/chromium/public/platform/WebThread.h. * chromium/public/WebThreadSafeData.h: Copied from Source/WebKit/chromium/public/platform/WebThreadSafeData.h. 2012-03-29 Adam Barth [Chromium] Delete WebKit/chromium/bridge https://bugs.webkit.org/show_bug.cgi?id=82677 Reviewed by James Robinson. This patch moves all the MediaStream-related platform APIs from WebKit/chromium/public/platform into Platform/chromium/public. This is part of a larger project to more clearly separate the platform and client portions of the Chromium WebKit API. * Platform.gypi: * chromium/public/Platform.h: (WebKit): (Platform): (WebKit::Platform::createPeerConnectionHandler): (WebKit::Platform::createPeerConnection00Handler): (WebKit::Platform::createMediaStreamCenter): * chromium/public/WebICECandidateDescriptor.h: Copied from Source/WebKit/chromium/public/platform/WebICECandidateDescriptor.h. * chromium/public/WebICEOptions.h: Copied from Source/WebKit/chromium/public/platform/WebICEOptions.h. * chromium/public/WebMediaHints.h: Copied from Source/WebKit/chromium/public/platform/WebMediaHints.h. * chromium/public/WebMediaStreamCenter.h: Copied from Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h. * chromium/public/WebMediaStreamCenterClient.h: Copied from Source/WebKit/chromium/public/platform/WebMediaStreamCenterClient.h. * chromium/public/WebMediaStreamComponent.h: Copied from Source/WebKit/chromium/public/platform/WebMediaStreamComponent.h. * chromium/public/WebMediaStreamDescriptor.h: Copied from Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h. * chromium/public/WebMediaStreamSource.h: Copied from Source/WebKit/chromium/public/platform/WebMediaStreamSource.h. * chromium/public/WebMediaStreamSourcesRequest.h: Copied from Source/WebKit/chromium/public/platform/WebMediaStreamSourcesRequest.h. * chromium/public/WebPeerConnection00Handler.h: Copied from Source/WebKit/chromium/public/platform/WebPeerConnection00Handler.h. * chromium/public/WebPeerConnection00HandlerClient.h: Copied from Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h. * chromium/public/WebPeerConnectionHandler.h: Copied from Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h. (WebPeerConnectionHandler): * chromium/public/WebPeerConnectionHandlerClient.h: Copied from Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h. * chromium/public/WebSessionDescriptionDescriptor.h: Copied from Source/WebKit/chromium/public/platform/WebSessionDescriptionDescriptor.h. * chromium/public/WebVector.h: Copied from Source/WebKit/chromium/public/platform/WebVector.h. 2012-03-30 David Barr Split up top-level .gitignore and .gitattributes https://bugs.webkit.org/show_bug.cgi?id=82687 Reviewed by Tor Arne Vestbø. * Platform.gyp/.gitignore: Added. 2012-03-29 Adam Barth [Chromium] Move createURLLoader() into Platform https://bugs.webkit.org/show_bug.cgi?id=82587 Reviewed by James Robinson. This patch introduces a base class for WebKitPlatformSupport that we can use to incrementally more APIs from WebKit/chromium/public/platform into Platform/chromium/public. Using this technique lets us avoid making changes in the embedder during the transition. This patch moves createURLLoader() because it's necessary for ResourceHandle. This is the third patch in this sequence: https://github.com/abarth/webkit/compare/master...webcore-platform * Platform.gypi: * chromium/public/Platform.h: Added. (WebKit): (Platform): (WebKit::Platform::createURLLoader): (WebKit::Platform::~Platform): * chromium/src/Platform.cpp: Added. (WebKit): (WebKit::Platform::initialize): (WebKit::Platform::shutdown): (WebKit::Platform::current): 2012-03-28 Adam Barth [Chromium] Move APIs related to ResourceHandle into Platform https://bugs.webkit.org/show_bug.cgi?id=82553 Reviewed by James Robinson. This patch is the first patch in this series: https://github.com/abarth/webkit/compare/master...webcore-platform The goal of these patches is to move WebCore::ResourceHandle out of Chromium's WebKit layer and into WebCore/platform, where it belongs. This patch moves the Chromium-WebKit APIs used by ResourceHandle out of the WebKit layer and into the Plaform layer. These are APIs that WebKit uses to call "down" to manipulate the underlying platform (rather than "up" to the client to make decisions). The long-term plan is to move all of the headers in WebKit/chromium/public/platform into Platform/chromium/public (although we'll likely need to clean up some layering violations as we go). * Platform.gypi: * chromium/public/WebData.h: Added. (WebKit): (WebData): (WebKit::WebData::~WebData): (WebKit::WebData::WebData): (WebKit::WebData::operator=): (WebKit::WebData::isEmpty): (WebKit::WebData::isNull): * chromium/public/WebHTTPBody.h: Added. (WebKit): (WebHTTPBody): (WebKit::WebHTTPBody::~WebHTTPBody): (WebKit::WebHTTPBody::WebHTTPBody): (WebKit::WebHTTPBody::operator=): (WebKit::WebHTTPBody::isNull): * chromium/public/WebHTTPHeaderVisitor.h: Added. (WebKit): (WebHTTPHeaderVisitor): (WebKit::WebHTTPHeaderVisitor::~WebHTTPHeaderVisitor): * chromium/public/WebHTTPLoadInfo.h: Added. (WebCore): (WebKit): (WebHTTPLoadInfo): (WebKit::WebHTTPLoadInfo::WebHTTPLoadInfo): (WebKit::WebHTTPLoadInfo::~WebHTTPLoadInfo): (WebKit::WebHTTPLoadInfo::operator =): * chromium/public/WebPrivateOwnPtr.h: Added. (WebKit): (WebPrivateOwnPtr): (WebKit::WebPrivateOwnPtr::WebPrivateOwnPtr): (WebKit::WebPrivateOwnPtr::~WebPrivateOwnPtr): (WebKit::WebPrivateOwnPtr::reset): (WebKit::WebPrivateOwnPtr::get): (WebKit::WebPrivateOwnPtr::operator->): * chromium/public/WebURL.h: Added. (WebKit): (WebURL): (WebKit::WebURL::~WebURL): (WebKit::WebURL::WebURL): (WebKit::WebURL::operator=): (WebKit::WebURL::assign): (WebKit::WebURL::spec): (WebKit::WebURL::parsed): (WebKit::WebURL::isValid): (WebKit::WebURL::isEmpty): (WebKit::WebURL::isNull): (WebKit::WebURL::operator GURL): (WebKit::operator<): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebURLError.h: Added. (WebKit): (WebURLError): (WebKit::WebURLError::WebURLError): * chromium/public/WebURLLoadTiming.h: Added. (WebKit): (WebURLLoadTiming): (WebKit::WebURLLoadTiming::~WebURLLoadTiming): (WebKit::WebURLLoadTiming::WebURLLoadTiming): (WebKit::WebURLLoadTiming::operator=): (WebKit::WebURLLoadTiming::isNull): * chromium/public/WebURLLoader.h: Added. (WebKit): (WebURLLoader): (WebKit::WebURLLoader::~WebURLLoader): * chromium/public/WebURLLoaderClient.h: Added. (WebKit): (WebURLLoaderClient): (WebKit::WebURLLoaderClient::willSendRequest): (WebKit::WebURLLoaderClient::didSendData): (WebKit::WebURLLoaderClient::didReceiveResponse): (WebKit::WebURLLoaderClient::didDownloadData): (WebKit::WebURLLoaderClient::didReceiveData): (WebKit::WebURLLoaderClient::didReceiveCachedMetadata): (WebKit::WebURLLoaderClient::didFinishLoading): (WebKit::WebURLLoaderClient::didFail): (WebKit::WebURLLoaderClient::~WebURLLoaderClient): * chromium/public/WebURLRequest.h: Added. (WebKit): (WebURLRequest): (ExtraData): (WebKit::WebURLRequest::ExtraData::~ExtraData): (WebKit::WebURLRequest::~WebURLRequest): (WebKit::WebURLRequest::WebURLRequest): (WebKit::WebURLRequest::operator=): * chromium/public/WebURLResponse.h: Added. (WebKit): (WebURLResponse): (ExtraData): (WebKit::WebURLResponse::ExtraData::~ExtraData): (WebKit::WebURLResponse::~WebURLResponse): (WebKit::WebURLResponse::WebURLResponse): (WebKit::WebURLResponse::operator=): 2012-03-27 Nat Duca [chromium] Route monotonic clock up from compositor https://bugs.webkit.org/show_bug.cgi?id=82154 Reviewed by James Robinson. * chromium/public/WebLayerTreeViewClient.h: (WebLayerTreeViewClient): 2012-03-26 Nat Duca [chromium] Add isInputThrottled/didBecomeReadyForAdditionalInput to WebWidget https://bugs.webkit.org/show_bug.cgi?id=82265 Reviewed by James Robinson. * chromium/public/WebLayerTreeView.h: (WebLayerTreeView): * chromium/public/WebLayerTreeViewClient.h: (WebLayerTreeViewClient): (WebKit::WebLayerTreeViewClient::didCommit): 2012-03-25 Nat Duca [chromium] Route willBeginFrame from compositor to WebWidget https://bugs.webkit.org/show_bug.cgi?id=82171 Reviewed by Darin Fisher. * chromium/public/WebLayerTreeViewClient.h: (WebLayerTreeViewClient): (WebKit::WebLayerTreeViewClient::willBeginFrame): 2012-03-23 Tony Chang [chromium] rename newwtf target back to wtf https://bugs.webkit.org/show_bug.cgi?id=82064 Reviewed by Adam Barth. * Platform.gyp/Platform.gyp: 2012-03-22 Tony Chang Unreviewed, fix chromium build after wtf move. Only use newwtf, remove references to wtf. * Platform.gyp/Platform.gyp: 2012-03-21 Ryosuke Niwa Touch a file to make Chromium Windows bots happy. * chromium/public/WebGraphicsContext3D.h: 2012-03-21 David Reveman [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support. https://bugs.webkit.org/show_bug.cgi?id=80988 Reviewed by Adrienne Walker. Add EXT_occlusion_query API to WebGraphicsContext3D. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::createQueryEXT): (WebKit::WebGraphicsContext3D::deleteQueryEXT): (WebKit::WebGraphicsContext3D::isQueryEXT): (WebKit::WebGraphicsContext3D::beginQueryEXT): (WebKit::WebGraphicsContext3D::endQueryEXT): (WebKit::WebGraphicsContext3D::getQueryivEXT): (WebKit::WebGraphicsContext3D::getQueryObjectuivEXT): 2012-03-19 Michal Mocny [chromium] Adding support for GL_EXT_discard_framebuffer. https://bugs.webkit.org/show_bug.cgi?id=81383 Reviewed by James Robinson. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::discardFramebufferEXT): (WebKit::WebGraphicsContext3D::ensureFramebufferCHROMIUM): 2012-03-19 Sheriff Bot Unreviewed, rolling out r111207. http://trac.webkit.org/changeset/111207 https://bugs.webkit.org/show_bug.cgi?id=81561 Causing chromium unit test failure (Requested by reveman on #webkit). * chromium/public/WebGraphicsContext3D.h: 2012-03-19 Michal Mocny [chromium] Updating WebGraphicsContext3D MemoryAllocation callback to accept a struct with have backbuffer suggestion. https://bugs.webkit.org/show_bug.cgi?id=81279 Reviewed by James Robinson. Adding a suggestHaveBackbuffer hint to the WebGraphicsContext3D memory allocation callback. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::onMemoryAllocationChanged): * chromium/public/WebGraphicsMemoryAllocation.h: Added. (WebKit): (WebGraphicsMemoryAllocation): (WebKit::WebGraphicsMemoryAllocation::WebGraphicsMemoryAllocation): 2012-03-19 David Reveman [Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support. https://bugs.webkit.org/show_bug.cgi?id=80988 Reviewed by Adrienne Walker. Add EXT_occlusion_query API to WebGraphicsContext3D. * chromium/public/WebGraphicsContext3D.h: (WebGraphicsContext3D): 2012-03-08 James Robinson Use an explicit attribute to signal that a context prefers to use a discrete GPU https://bugs.webkit.org/show_bug.cgi?id=80639 Reviewed by Stephen White. Adds preferDiscreteGPU attribute to WebGraphicsContext3D::Attributes. Also remove the forUseOnAnotherThread attribute, this has been dead code for a while now. * chromium/public/WebGraphicsContext3D.h: (WebKit::WebGraphicsContext3D::Attributes::Attributes): (Attributes): 2012-02-24 James Robinson [chromium] WebKit::setColorNames is a client API https://bugs.webkit.org/show_bug.cgi?id=79539 Reviewed by Darin Fisher. * Platform.gypi: * chromium/public/WebColor.h: (WebKit): 2012-02-24 Sheriff Bot Unreviewed, rolling out r108860. http://trac.webkit.org/changeset/108860 https://bugs.webkit.org/show_bug.cgi?id=79544 "Breaks Linux compile" (Requested by enne on #webkit). * Platform.gypi: * chromium/public/WebColor.h: (WebKit): * chromium/public/WebColorName.h: Renamed from Source/WebKit/chromium/public/WebColorName.h. (WebKit): 2012-02-24 James Robinson [chromium] WebKit::setColorNames is a client API https://bugs.webkit.org/show_bug.cgi?id=79539 Reviewed by Darin Fisher. * Platform.gypi: * chromium/public/WebColor.h: (WebKit): 2012-02-22 James Robinson [chromium] Move WebGraphicsContext3D header into the Platform directory https://bugs.webkit.org/show_bug.cgi?id=79301 Reviewed by Adam Barth. Moves WebGraphicsContext3D and WebNonCopyable (which WGC3D depends on). * Platform.gypi: * chromium/public/WebGraphicsContext3D.h: Copied from Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h. (WebKit): (WebGraphicsContext3D): (ActiveInfo): (WebKit::WebGraphicsContext3D::Attributes::Attributes): (Attributes): (WebGraphicsContextLostCallback): (WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback::~WebGraphicsContextLostCallback): (WebGraphicsErrorMessageCallback): (WebKit::WebGraphicsContext3D::WebGraphicsErrorMessageCallback::~WebGraphicsErrorMessageCallback): (WebGraphicsSwapBuffersCompleteCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM::~WebGraphicsSwapBuffersCompleteCallbackCHROMIUM): (WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM::~WebGraphicsMemoryAllocationChangedCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::~WebGraphicsContext3D): (WebKit::WebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::setParentContext): (WebKit::WebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM): (WebKit::WebGraphicsContext3D::rateLimitOffscreenContextCHROMIUM): (WebKit::WebGraphicsContext3D::setContextLostCallback): (WebKit::WebGraphicsContext3D::setErrorMessageCallback): (WebKit::WebGraphicsContext3D::getGraphicsResetStatusARB): (WebKit::WebGraphicsContext3D::getTranslatedShaderSourceANGLE): (WebKit::WebGraphicsContext3D::texImageIOSurface2DCHROMIUM): (WebKit::WebGraphicsContext3D::texStorage2DEXT): (WebKit::WebGraphicsContext3D::onCreateGrGLInterface): * chromium/public/WebNonCopyable.h: Copied from Source/WebKit/chromium/public/platform/WebNonCopyable.h. (WebKit): (WebNonCopyable): (WebKit::WebNonCopyable::WebNonCopyable): (WebKit::WebNonCopyable::~WebNonCopyable): 2012-02-23 James Robinson [chromium] Move Web*Layer* headers into Platform https://bugs.webkit.org/show_bug.cgi?id=79425 Reviewed by Adam Barth. This moves the Web*Layer* headers and their dependencies from WebKit/chromium/public/platform/ into Platform/chromium/public. * Platform.gypi: * chromium/public/WebCanvas.h: Copied from Source/WebKit/chromium/public/platform/WebCanvas.h. (WebKit): * chromium/public/WebColor.h: Copied from Source/WebKit/chromium/public/platform/WebColor.h. (WebKit): * chromium/public/WebColorName.h: Copied from Source/WebKit/chromium/public/platform/WebColorName.h. (WebKit): * chromium/public/WebContentLayer.h: Copied from Source/WebKit/chromium/public/platform/WebContentLayer.h. (WebKit): (WebContentLayer): (WebKit::WebContentLayer::WebContentLayer): (WebKit::WebContentLayer::~WebContentLayer): (WebKit::WebContentLayer::operator=): * chromium/public/WebContentLayerClient.h: Copied from Source/WebKit/chromium/public/platform/WebContentLayerClient.h. (WebKit): (WebContentLayerClient): (WebKit::WebContentLayerClient::~WebContentLayerClient): * chromium/public/WebExternalTextureLayer.h: Copied from Source/WebKit/chromium/public/platform/WebExternalTextureLayer.h. (WebKit): (WebExternalTextureLayer): (WebKit::WebExternalTextureLayer::WebExternalTextureLayer): (WebKit::WebExternalTextureLayer::~WebExternalTextureLayer): (WebKit::WebExternalTextureLayer::operator=): * chromium/public/WebLayer.h: Copied from Source/WebKit/chromium/public/platform/WebLayer.h. (WebKit): (WebLayer): (WebKit::WebLayer::WebLayer): (WebKit::WebLayer::~WebLayer): (WebKit::WebLayer::operator=): (WebKit::WebLayer::isNull): (WebKit::WebLayer::to): (WebKit::WebLayer::toConst): (WebKit::WebLayer::unwrap): (WebKit::WebLayer::constUnwrap): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebLayerTreeView.h: Copied from Source/WebKit/chromium/public/platform/WebLayerTreeView.h. (WebCore): (WebKit): (WebLayerTreeView): (WebKit::WebLayerTreeView::Settings::Settings): (Settings): (WebKit::WebLayerTreeView::WebLayerTreeView): (WebKit::WebLayerTreeView::~WebLayerTreeView): (WebKit::WebLayerTreeView::operator=): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebLayerTreeViewClient.h: Copied from Source/WebKit/chromium/public/platform/WebLayerTreeViewClient.h. (WebKit): (WebLayerTreeViewClient): (WebKit::WebLayerTreeViewClient::~WebLayerTreeViewClient): * chromium/public/WebPrivatePtr.h: Copied from Source/WebKit/chromium/public/platform/WebPrivatePtr.h. (WebKit): (WebPrivatePtr): (WebKit::WebPrivatePtr::WebPrivatePtr): (WebKit::WebPrivatePtr::~WebPrivatePtr): (WebKit::WebPrivatePtr::isNull): (WebKit::WebPrivatePtr::reset): (WebKit::WebPrivatePtr::operator=): (WebKit::WebPrivatePtr::get): (WebKit::WebPrivatePtr::operator->): (WebKit::WebPrivatePtr::assign): * chromium/public/WebSolidColorLayer.h: Copied from Source/WebKit/chromium/public/platform/WebSolidColorLayer.h. (WebKit): (WebSolidColorLayer): 2012-02-08 James Robinson r107042 caused compile breakages on chromium try bots https://bugs.webkit.org/show_bug.cgi?id=78125 Reviewed by Adam Barth. Replace the copy script with a copies GYP action since the MSVS generator tracks dependencies on a per-file basis. * Platform.gyp/Platform.gyp: * Platform.gyp/copy_webcore_headers.py: Removed. 2012-02-07 James Robinson [chromium] Move geometry headers in Platform API to Platform directory https://bugs.webkit.org/show_bug.cgi?id=78067 Reviewed by Adam Barth. This moves several geometry-related headers in the chromium WebKit platform API to Platform/chromium/public. These require a bit of extra work since when WEBKIT_IMPLEMENTATION is set they #include headers from WebCore/platform such as IntPoint so that the implementations of several functions can be inlined. Since we do not want to add anything in WebCore to the include path of projects that depend on the Platform API this poses a bit of an issue. I've added an extra build step to copy the specific headers used into the SHARED_INTERMEDIATE_DIR to preserve this inlining. Eventually we'll move the cross-platform code, including these headers, into somewhere under Platform/, but doing that requires non-trivial modifications to every build system in WebKit. * Platform.gyp/Platform.gyp: * Platform.gyp/copy_webcore_headers.py: Added. (CopyHeaders): (Main): * chromium/public/WebFloatPoint.h: Copied from Source/WebKit/chromium/public/platform/WebFloatPoint.h. (WebKit): (WebFloatPoint): (WebKit::WebFloatPoint::WebFloatPoint): (WebKit::WebFloatPoint::operator=): (WebKit::WebFloatPoint::operator WebCore::FloatPoint): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebFloatQuad.h: Copied from Source/WebKit/chromium/public/platform/WebFloatQuad.h. (WebKit): (WebFloatQuad): (WebKit::WebFloatQuad::WebFloatQuad): (WebKit::WebFloatQuad::operator=): * chromium/public/WebFloatRect.h: Copied from Source/WebKit/chromium/public/platform/WebFloatRect.h. (WebKit): (WebFloatRect): (WebKit::WebFloatRect::isEmpty): (WebKit::WebFloatRect::WebFloatRect): (WebKit::WebFloatRect::operator=): (WebKit::WebFloatRect::operator WebCore::FloatRect): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebPoint.h: Copied from Source/WebKit/chromium/public/platform/WebPoint.h. (WebKit): (WebPoint): (WebKit::WebPoint::WebPoint): (WebKit::WebPoint::operator=): (WebKit::WebPoint::operator WebCore::IntPoint): (WebKit::WebPoint::operator gfx::Point): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebRect.h: Copied from Source/WebKit/chromium/public/platform/WebRect.h. (WebKit): (WebRect): (WebKit::WebRect::isEmpty): (WebKit::WebRect::WebRect): (WebKit::WebRect::operator=): (WebKit::WebRect::operator WebCore::IntRect): (WebKit::WebRect::operator gfx::Rect): (WebKit::operator==): (WebKit::operator!=): * chromium/public/WebSize.h: Copied from Source/WebKit/chromium/public/platform/WebSize.h. (WebKit): (WebSize): (WebKit::WebSize::isEmpty): (WebKit::WebSize::WebSize): (WebKit::WebSize::operator=): (WebKit::WebSize::operator WebCore::IntSize): (WebKit::WebSize::operator gfx::Size): (WebKit::operator==): (WebKit::operator!=): 2012-01-19 Joi Sigurdsson Enable use of precompiled headers in Chromium port on Windows. Bug 76381 - Use precompiled headers in Chromium port on Windows https://bugs.webkit.org/show_bug.cgi?id=76381 Reviewed by Tony Chang. * Platform.gyp/Platform.gyp: Include WinPrecompile.gypi. 2012-01-04 James Robinson [chromium] Compile fix, rename libplatform.a to libwebkit_platform.a to avoid collision with nacl * Platform.gyp/Platform.gyp: 2012-01-04 James Robinson [chromium] Move WebMimeRegistry and dependencies to Source/Platform https://bugs.webkit.org/show_bug.cgi?id=74583 Reviewed by Darin Fisher. This creates a skeleton directory structure for the chromium WebKit platform API and moves WebMimeRegistry.h along with its dependencies (WebString and WebCString) to their final location. * Platform.gyp/Platform.gyp: Added. * Platform.gypi: Added. * chromium/platform/WebCString.h: Copied from Source/WebKit/chromium/public/platform/WebCString.h. (WebKit::WebCString::~WebCString): (WebKit::WebCString::WebCString): (WebKit::WebCString::operator=): (WebKit::WebCString::isEmpty): (WebKit::WebCString::isNull): (WebKit::WebCString::operator std::string): (WebKit::WebCString::fromUTF16): (WebKit::operator<): * chromium/platform/WebCommon.h: Copied from Source/WebKit/chromium/public/platform/WebCommon.h. * chromium/platform/WebMimeRegistry.h: Copied from Source/WebKit/chromium/public/platform/WebMimeRegistry.h. (WebKit::WebMimeRegistry::~WebMimeRegistry): * chromium/platform/WebString.h: Copied from Source/WebKit/chromium/public/platform/WebString.h. (WebKit::WebString::~WebString): (WebKit::WebString::WebString): (WebKit::WebString::operator=): (WebKit::WebString::isEmpty): (WebKit::WebString::isNull): (WebKit::WebString::operator string16): (WebKit::WebString::operator NullableString16): (WebKit::WebString::fromUTF8): (WebKit::operator==): (WebKit::operator!=): * chromium/src/WebCString.cpp: Renamed from Source/WebKit/chromium/src/WebCString.cpp. (WebKit::WebCString::compare): (WebKit::WebCString::reset): (WebKit::WebCString::assign): (WebKit::WebCString::length): (WebKit::WebCString::data): (WebKit::WebCString::utf16): (WebKit::WebCString::fromUTF16): (WebKit::WebCString::WebCString): (WebKit::WebCString::operator=): (WebKit::WebCString::operator WTF::CString): * chromium/src/WebString.cpp: Renamed from Source/WebKit/chromium/src/WebString.cpp. (WebKit::WebString::reset): (WebKit::WebString::assign): (WebKit::WebString::length): (WebKit::WebString::data): (WebKit::WebString::utf8): (WebKit::WebString::fromUTF8): (WebKit::WebString::equals): (WebKit::WebString::WebString): (WebKit::WebString::operator=): (WebKit::WebString::operator WTF::String): (WebKit::WebString::operator WTF::AtomicString): 2011-11-02 Adam Barth Add stubs for WTF and Platform https://bugs.webkit.org/show_bug.cgi?id=71492 Reviewed by Eric Seidel. This patch creates the Platform directory, which begins the process of moving Platform out of WebCore.