[Chromium] Remove screen-related functions from PlatformSupport
https://bugs.webkit.org/show_bug.cgi?id=97474

Reviewed by Adam Barth.

Screen-related functions like screenHorizontalDPI that
used to be on PlatformSupport are now accessed through a new
PlatformPageClient attached to Widget in WebCore-land, which is
implemented by ChromeClientImpl in WebKit-land, which proxies
calls to WebWidgetClient, which is actually implemented in
Chromium-land.

Source/Platform:

* Platform.gypi:
* chromium/public/WebScreenInfo.h: Added.
(WebKit):
(WebScreenInfo):
(WebKit::WebScreenInfo::WebScreenInfo):

Source/WebCore:

* WebCore.gypi:
* platform/Widget.h:
* platform/chromium/PageClientChromium.h: Copied from Source/WebCore/platform/chromium/PlatformWidget.h.
(PageClientChromium):
* platform/chromium/PlatformScreenChromium.cpp:
(WebCore::toPlatformPageClient):
(WebCore):
(WebCore::screenHorizontalDPI):
(WebCore::screenVerticalDPI):
(WebCore::screenDepth):
(WebCore::screenDepthPerComponent):
(WebCore::screenIsMonochrome):
(WebCore::screenRect):
(WebCore::screenAvailableRect):
* platform/chromium/PlatformSupport.h:
(PlatformSupport):

Source/WebKit/chromium:

* public/WebScreenInfo.h:
* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::screenInfo):
(WebKit):
* src/ChromeClientImpl.h:
(WebKit):
(WebKit::ChromeClientImpl::platformPageClient):
(ChromeClientImpl):
* src/PlatformSupport.cpp:
(WebCore):
* src/WebPagePopupImpl.cpp:


git-svn-id: https://svn.webkit.org/repository/webkit/trunk/Source/Platform/chromium/public@132419 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 file changed
tree: a119b64b36fa2387cc96e2c04bd60da3a86e0560
  1. android/
  2. linux/
  3. mac/
  4. win/
  5. Platform.h
  6. WebAnimation.h
  7. WebAnimationCurve.h
  8. WebAnimationDelegate.h
  9. WebAudioBus.h
  10. WebAudioDevice.h
  11. WebBlobData.h
  12. WebBlobRegistry.h
  13. WebCanvas.h
  14. WebClipboard.h
  15. WebColor.h
  16. WebCommon.h
  17. WebCompositor.h
  18. WebCompositorFrame.h
  19. WebCompositorFrameAck.h
  20. WebCompositorOutputSurface.h
  21. WebCompositorOutputSurfaceClient.h
  22. WebCompositorSoftwareOutputDevice.h
  23. WebCompositorSupport.h
  24. WebCompositorTransferableResourceList.h
  25. WebContentLayer.h
  26. WebContentLayerClient.h
  27. WebCookie.h
  28. WebCookieJar.h
  29. WebCString.h
  30. WebData.h
  31. WebDelegatedRendererLayer.h
  32. WebDragData.h
  33. WebExternalTextureLayer.h
  34. WebExternalTextureLayerClient.h
  35. WebFileInfo.h
  36. WebFileSystem.h
  37. WebFileUtilities.h
  38. WebFilterOperation.h
  39. WebFilterOperations.h
  40. WebFlingAnimator.h
  41. WebFloatAnimationCurve.h
  42. WebFloatKeyframe.h
  43. WebFloatPoint.h
  44. WebFloatQuad.h
  45. WebFloatRect.h
  46. WebGamepad.h
  47. WebGamepads.h
  48. WebGraphicsContext3D.h
  49. WebGraphicsMemoryAllocation.h
  50. WebHTTPBody.h
  51. WebHTTPHeaderVisitor.h
  52. WebHTTPLoadInfo.h
  53. WebICECandidateDescriptor.h
  54. WebICEOptions.h
  55. WebImage.h
  56. WebImageLayer.h
  57. WebInputHandler.h
  58. WebInputHandlerClient.h
  59. WebIOSurfaceLayer.h
  60. WebLayer.h
  61. WebLayerScrollClient.h
  62. WebLayerTreeView.h
  63. WebLayerTreeViewClient.h
  64. WebLocalizedString.h
  65. WebMediaConstraints.h
  66. WebMediaHints.h
  67. WebMediaStreamCenter.h
  68. WebMediaStreamCenterClient.h
  69. WebMediaStreamComponent.h
  70. WebMediaStreamDescriptor.h
  71. WebMediaStreamSource.h
  72. WebMediaStreamSourcesRequest.h
  73. WebMessagePortChannel.h
  74. WebMessagePortChannelClient.h
  75. WebMimeRegistry.h
  76. WebNonCopyable.h
  77. WebPeerConnection00Handler.h
  78. WebPeerConnection00HandlerClient.h
  79. WebPeerConnectionHandler.h
  80. WebPeerConnectionHandlerClient.h
  81. WebPoint.h
  82. WebPrerender.h
  83. WebPrerenderingSupport.h
  84. WebPrivateOwnPtr.h
  85. WebPrivatePtr.h
  86. WebRect.h
  87. WebReferrerPolicy.h
  88. WebRenderingStats.h
  89. WebRTCConfiguration.h
  90. WebRTCDataChannel.h
  91. WebRTCICECandidate.h
  92. WebRTCPeerConnectionHandler.h
  93. WebRTCPeerConnectionHandlerClient.h
  94. WebRTCSessionDescription.h
  95. WebRTCSessionDescriptionRequest.h
  96. WebRTCStatsRequest.h
  97. WebRTCStatsResponse.h
  98. WebRTCVoidRequest.h
  99. WebScreenInfo.h
  100. WebScrollbar.h
  101. WebScrollbarLayer.h
  102. WebScrollbarThemeGeometry.h
  103. WebScrollbarThemePainter.h
  104. WebSessionDescriptionDescriptor.h
  105. WebSharedGraphicsContext3D.h
  106. WebSize.h
  107. WebSocketStreamError.h
  108. WebSocketStreamHandle.h
  109. WebSocketStreamHandleClient.h
  110. WebSolidColorLayer.h
  111. WebStorageArea.h
  112. WebStorageNamespace.h
  113. WebString.h
  114. WebThread.h
  115. WebThreadSafeData.h
  116. WebTransformAnimationCurve.h
  117. WebTransformationMatrix.h
  118. WebTransformKeyframe.h
  119. WebTransformOperations.h
  120. WebURL.h
  121. WebURLError.h
  122. WebURLLoader.h
  123. WebURLLoaderClient.h
  124. WebURLLoadTiming.h
  125. WebURLRequest.h
  126. WebURLResponse.h
  127. WebVector.h
  128. WebVideoFrame.h
  129. WebVideoFrameProvider.h
  130. WebVideoLayer.h
  131. WebWorkerRunLoop.h