PageClientImpl.cpp [plain text]
#include "config.h"
#include "PageClientImpl.h"
#include "DrawingAreaProxyImpl.h"
#include "NativeWebKeyboardEvent.h"
#include "NotImplemented.h"
#include "WebContext.h"
#include "WebContextMenuProxy.h"
#include "WebPageProxy.h"
#include "ewk_private.h"
using namespace WebCore;
namespace WebKit {
PageClientImpl::PageClientImpl(WebContext* context, WebPageGroup* pageGroup, Evas_Object* viewWidget)
: m_viewWidget(viewWidget)
{
m_page = context->createWebPage(this, pageGroup);
m_page->initializeWebPage();
}
PageClientImpl::~PageClientImpl()
{
}
PassOwnPtr<DrawingAreaProxy> PageClientImpl::createDrawingAreaProxy()
{
return DrawingAreaProxyImpl::create(m_page.get());
}
void PageClientImpl::setViewNeedsDisplay(const WebCore::IntRect& rect)
{
ewk_view_display(m_viewWidget, rect);
}
void PageClientImpl::displayView()
{
notImplemented();
}
void PageClientImpl::scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize&)
{
setViewNeedsDisplay(scrollRect);
}
WebCore::IntSize PageClientImpl::viewSize()
{
int width, height;
evas_object_geometry_get(m_viewWidget, 0, 0, &width, &height);
return IntSize(width, height);
}
bool PageClientImpl::isViewWindowActive()
{
notImplemented();
return true;
}
bool PageClientImpl::isViewFocused()
{
notImplemented();
return true;
}
bool PageClientImpl::isViewVisible()
{
notImplemented();
return true;
}
bool PageClientImpl::isViewInWindow()
{
notImplemented();
return true;
}
void PageClientImpl::processDidCrash()
{
notImplemented();
}
void PageClientImpl::didRelaunchProcess()
{
notImplemented();
}
void PageClientImpl::pageClosed()
{
notImplemented();
}
void PageClientImpl::toolTipChanged(const String&, const String&)
{
notImplemented();
}
void PageClientImpl::setCursor(const Cursor&)
{
notImplemented();
}
void PageClientImpl::setCursorHiddenUntilMouseMoves(bool)
{
notImplemented();
}
void PageClientImpl::didChangeViewportProperties(const WebCore::ViewportAttributes&)
{
notImplemented();
}
void PageClientImpl::registerEditCommand(PassRefPtr<WebEditCommandProxy>, WebPageProxy::UndoOrRedo)
{
notImplemented();
}
void PageClientImpl::clearAllEditCommands()
{
notImplemented();
}
bool PageClientImpl::canUndoRedo(WebPageProxy::UndoOrRedo)
{
notImplemented();
return false;
}
void PageClientImpl::executeUndoRedo(WebPageProxy::UndoOrRedo)
{
notImplemented();
}
FloatRect PageClientImpl::convertToDeviceSpace(const FloatRect& viewRect)
{
notImplemented();
return viewRect;
}
FloatRect PageClientImpl::convertToUserSpace(const FloatRect& viewRect)
{
notImplemented();
return viewRect;
}
IntPoint PageClientImpl::screenToWindow(const IntPoint& point)
{
notImplemented();
return point;
}
IntRect PageClientImpl::windowToScreen(const IntRect&)
{
notImplemented();
return IntRect();
}
void PageClientImpl::doneWithKeyEvent(const NativeWebKeyboardEvent&, bool)
{
notImplemented();
}
PassRefPtr<WebPopupMenuProxy> PageClientImpl::createPopupMenuProxy(WebPageProxy*)
{
notImplemented();
return 0;
}
PassRefPtr<WebContextMenuProxy> PageClientImpl::createContextMenuProxy(WebPageProxy*)
{
notImplemented();
return 0;
}
void PageClientImpl::setFindIndicator(PassRefPtr<FindIndicator>, bool, bool)
{
notImplemented();
}
#if USE(ACCELERATED_COMPOSITING)
void PageClientImpl::enterAcceleratedCompositingMode(const LayerTreeContext&)
{
notImplemented();
}
void PageClientImpl::exitAcceleratedCompositingMode()
{
notImplemented();
}
void PageClientImpl::updateAcceleratedCompositingMode(const LayerTreeContext&)
{
notImplemented();
}
#endif // USE(ACCELERATED_COMPOSITING)
void PageClientImpl::didChangeScrollbarsForMainFrame() const
{
notImplemented();
}
void PageClientImpl::didCommitLoadForMainFrame(bool)
{
notImplemented();
}
void PageClientImpl::didFinishLoadingDataForCustomRepresentation(const String&, const CoreIPC::DataReference&)
{
notImplemented();
}
double PageClientImpl::customRepresentationZoomFactor()
{
notImplemented();
return 0;
}
void PageClientImpl::setCustomRepresentationZoomFactor(double)
{
notImplemented();
}
void PageClientImpl::flashBackingStoreUpdates(const Vector<IntRect>&)
{
notImplemented();
}
void PageClientImpl::findStringInCustomRepresentation(const String&, FindOptions, unsigned)
{
notImplemented();
}
void PageClientImpl::countStringMatchesInCustomRepresentation(const String&, FindOptions, unsigned)
{
notImplemented();
}
}