Skip to content
  • kenneth@webkit.org's avatar
    Make PlatformWindow return something else than PlatformWidget · e8249bf2
    kenneth@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=29085
    
    Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-17
    Reviewed by Simon Hausmann.
    
    WebCore:
    
    Make platformWindow return a PlatformPageClient
    (for now typedef'ed to PlatformWidget)
    
    Also, change the name of platformWindow to platformPageClient()
    
    * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
    (getPangoLayoutForAtk):
    * accessibility/win/AXObjectCacheWin.cpp:
    (WebCore::AXObjectCache::postPlatformNotification):
    (WebCore::AXObjectCache::handleFocusedUIElementChanged):
    * loader/EmptyClients.h:
    (WebCore::EmptyChromeClient::platformPageClient):
    * page/Chrome.cpp:
    (WebCore::Chrome::platformPageClient):
    * page/Chrome.h:
    * page/ChromeClient.h:
    * page/mac/EventHandlerMac.mm:
    (WebCore::EventHandler::wheelEvent):
    (WebCore::EventHandler::currentPlatformMouseEvent):
    (WebCore::EventHandler::sendContextMenuEvent):
    (WebCore::EventHandler::eventMayStartDrag):
    * platform/HostWindow.h:
    * platform/Widget.h:
    * platform/gtk/PlatformScreenGtk.cpp:
    (WebCore::getVisual):
    (WebCore::screenRect):
    (WebCore::screenAvailableRect):
    * platform/gtk/PopupMenuGtk.cpp:
    (WebCore::PopupMenu::show):
    * platform/gtk/ScrollViewGtk.cpp:
    (WebCore::ScrollView::platformAddChild):
    (WebCore::ScrollView::platformRemoveChild):
    (WebCore::ScrollView::visibleContentRect):
    * platform/gtk/WidgetGtk.cpp:
    (WebCore::Widget::setFocus):
    (WebCore::Widget::setCursor):
    * platform/qt/PlatformScreenQt.cpp:
    (WebCore::screenDepth):
    (WebCore::screenDepthPerComponent):
    (WebCore::screenIsMonochrome):
    (WebCore::screenRect):
    (WebCore::screenAvailableRect):
    * platform/qt/PopupMenuQt.cpp:
    (WebCore::PopupMenu::show):
    * platform/qt/WidgetQt.cpp:
    (WebCore::Widget::setCursor):
    * platform/win/PlatformScreenWin.cpp:
    (WebCore::monitorInfoForWidget):
    * platform/win/PopupMenuWin.cpp:
    (WebCore::PopupMenu::show):
    (WebCore::PopupMenu::calculatePositionAndSize):
    (WebCore::PopupMenu::wndProc):
    * platform/wx/RenderThemeWx.cpp:
    (WebCore::nativeWindowForRenderObject):
    * platform/wx/ScrollbarThemeWx.cpp:
    (WebCore::ScrollbarThemeWx::paint):
    * plugins/gtk/PluginViewGtk.cpp:
    (WebCore::PluginView::getValue):
    (WebCore::PluginView::forceRedraw):
    (WebCore::PluginView::platformStart):
    * plugins/mac/PluginViewMac.cpp:
    (WebCore::PluginView::platformStart):
    * plugins/qt/PluginViewQt.cpp:
    (WebCore::PluginView::handleKeyboardEvent):
    (WebCore::PluginView::getValue):
    (WebCore::PluginView::platformStart):
    * plugins/win/PluginViewWin.cpp:
    (WebCore::PluginView::getValue):
    (WebCore::PluginView::forceRedraw):
    (WebCore::PluginView::platformStart):
    
    WebKit/gtk:
    
    Reflect the rename of platformWindow and it's return type.
    
    * WebCoreSupport/ChromeClientGtk.cpp:
    (WebKit::ChromeClient::platformPageClient):
    (WebKit::ChromeClient::runOpenPanel):
    * WebCoreSupport/ChromeClientGtk.h:
    * webkit/webkitprivate.cpp:
    (currentToplevelCallback):
    * webkit/webkitwebview.cpp:
    (webkit_web_view_popup_menu_handler):
    
    WebKit/haiku:
    
    Reflect the rename of platformWindow and it's return type.
    
    * WebCoreSupport/ChromeClientHaiku.cpp:
    (WebCore::ChromeClientHaiku::platformPageClient):
    * WebCoreSupport/ChromeClientHaiku.h:
    
    WebKit/mac:
    
    Reflect the rename of platformWindow and it's return type.
    
    * WebCoreSupport/WebChromeClient.h:
    * WebCoreSupport/WebChromeClient.mm:
    (WebChromeClient::platformPageClient):
    
    WebKit/qt:
    
    Reflect the rename of platformWindow and it's return type.
    
    * WebCoreSupport/ChromeClientQt.cpp:
    (WebCore::ChromeClientQt::platformPageClient):
    * WebCoreSupport/ChromeClientQt.h:
    
    WebKit/win:
    
    Reflect the rename of platformWindow and it's return type.
    
    * AccessibleBase.cpp:
    (AccessibleBase::get_accParent):
    * WebCoreSupport/WebChromeClient.cpp:
    (WebChromeClient::platformPageClient):
    * WebCoreSupport/WebChromeClient.h:
    
    WebKit/wx:
    
    Reflect the rename of platformWindow and it's return type.
    
    * WebKitSupport/ChromeClientWx.cpp:
    (WebCore::ChromeClientWx::platformPageClient):
    * WebKitSupport/ChromeClientWx.h:
    * WebKitSupport/EditorClientWx.cpp:
    (WebCore::EditorClientWx::isEditable):
    (WebCore::EditorClientWx::registerCommandForUndo):
    (WebCore::EditorClientWx::registerCommandForRedo):
    (WebCore::EditorClientWx::clearUndoRedoOperations):
    (WebCore::EditorClientWx::canUndo):
    (WebCore::EditorClientWx::canRedo):
    (WebCore::EditorClientWx::undo):
    (WebCore::EditorClientWx::redo):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e8249bf2