diff -r 79859ed3eea9 -r 919f36ff910f webengine/osswebengine/webkit/s60/webview/WebGestureInterface.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/osswebengine/webkit/s60/webview/WebGestureInterface.h Wed Sep 01 12:28:30 2010 +0100 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implements gesture interface functionality +* +*/ + +#ifndef WEBGESTUREINTERFACE_H +#define WEBGESTUREINTERFACE_H + +// INCLUDES +#include + +// MACROS + +// FORWARD DECLARATIONS +class WebView; + +// CLASS DECLARATION +class WebGestureInterface : public CBase, public MStmGestureListener + { +public: + // New methods + + /** + * NewL. + * Two-phased constructor. + * Create a WebGestureInterface object + * @return a pointer to the created instance of WebGestureInterface. + */ + static WebGestureInterface* NewL(WebView* view); + + static WebGestureInterface* NewLC(WebView* view); + + /** + * ~CgestureInterface + * Virtual Destructor. + */ + ~WebGestureInterface(); + +public: //member functions + + void HandlePointerEventL(const TPointerEvent& aPointerEvent); + +public: //from MStmGestureListener + + void HandleGestureEventL(const TStmGestureEvent& aGesture); + +private: + // Constructors + + void ConstructL(); + + /** + * WebGestureInterface. + * C++ default constructor. + */ + WebGestureInterface(WebView* view); + +private: + CStmGestureEngine *iGestureEngine; // <> + CStmGestureContext *iGestureContext; // <> + WebView* m_webview; // <> + }; + +#endif // WEBGESTUREINTERFACE_H +// End of File