diff -r 000000000000 -r dd21522fd290 webengine/osswebengine/WebKit/s60/webview/WebPageFullScreenHandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/osswebengine/WebKit/s60/webview/WebPageFullScreenHandler.h Mon Mar 30 12:54:55 2009 +0300 @@ -0,0 +1,112 @@ +/* +* 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 page scrolling functionality +* +*/ + + + +#ifndef WEBPAGEFULLSCREENHANDLER_H +#define WEBPAGEFULLSCREENHANDLER_H + +// INCLUDES +#include +#include +#include +#include +// MACROS + +// FORWARD DECLARATIONS +class WebView; +class WebFrame; + +// CLASS DECLARATION +class WebPageFullScreenHandler: public CBase, public MAknWsEventObserver { +public: // Constructor and destructor + + /** + * Two-phased constructor. + **/ + static WebPageFullScreenHandler* NewL(WebView& webView); + + /** + * Destructor. + **/ + virtual ~WebPageFullScreenHandler(); + +private: // Constructors + + /** + * C++ default constructor. + **/ + WebPageFullScreenHandler(WebView& webView); + + /** + * By default Symbian 2nd phase constructor is private. + **/ + void constructL(); + + TBool HitRegionContains(const TPoint& aPoint); + void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination); + void AddWsObserverToControl(); + void constructSprite(); + void destructSprite(); + +public: // New functions + + + /** + * @since 5.0 + * @param + * @return + **/ + void showEscBtnL(void); + + /** + * @since 5.0 + * @param + * @return + **/ + void hideEscBtnL(void); + + /** + * @since 5.0 + * @param + * @return + **/ + bool isFullScreenMode(void); + + /** + * @since 5.0 + * @param + * @return + **/ + void SizeChanged(void); + + +private: + + // Pointer to owning view + + WebView* m_webView; // not owned + CAknWsEventMonitor* m_eventMonitor; // not owned + RWsSprite m_sprite; + TBool m_spriteVisible; + TBool m_tappedOnSprite; + TPoint m_pos; +}; + +#endif //WEBPAGEFULLSCREENHANDLER_H + +// End of File