webengine/osswebengine/WebKit/s60/webview/WebToolBarInterface.h
changeset 0 dd21522fd290
child 36 0ed94ceaa377
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webengine/osswebengine/WebKit/s60/webview/WebToolBarInterface.h	Mon Mar 30 12:54:55 2009 +0300
@@ -0,0 +1,80 @@
+/*
+* Copyright (c) 2006 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:   Handles the viewing of a single frame. If the page is not frame
+*                enabled, this class is used as the single view.  If frame
+*                enabled, there is one instance of this class for each frame.
+*
+*/
+
+
+#ifndef __WEBTOOLBARINTERFACE
+#define __WEBTOOLBARINTERFACE
+
+//  INCLUDES
+#include <e32base.h>
+#include <bitstd.h>
+#include <W32STD.H>
+#include <COEDEF.H>
+#include <AknsConstants.h>
+#include <AknsItemID.h>
+#include <AknsConstants.h>
+#include "BrCtlDefs.h"
+#include "ToolBar.h"
+/*
+#include "Favicon.h"
+#include "WebCoreIconDatabaseBridge.h"
+*/
+// CONSTANTS
+
+// MACROS
+
+// DATA TYPES
+
+// FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+class CGulIcon;
+class TBrCtlSubscribeTo;
+class WebView;
+
+class WebToolBarInterface: public MToolBarCallback
+{
+
+public: 
+    WebToolBarInterface(WebView* webView);
+    virtual ~WebToolBarInterface();
+
+    TPoint CursorPosition();
+    void SetAndUpdateCursorPosition(const TPoint& aPoint);
+    const RPointerArray<TBrCtlSubscribeTo>& SubscribeToMenuItemsL();
+    CCoeControl& View();
+    CCoeControl& CCoeControlParent();
+    void CloseToolBarL();    
+    CGulIcon* GetFaviconL(const TDesC& aUrl);
+    void SendCommandsToClient(TBrCtlDefs::TBrCtlClientCommands aCommand,
+                                      const CArrayFix<TPtrC>& aAttributesNames,
+                                      const CArrayFix<TPtrC>& aAttributeValues);    
+    void LoadUrlL( const TDesC& aUrl, TBrCtlDefs::TBrCtlCacheMode aCacheMode );    
+    HBufC* ResolveUrlL( const TDesC& aUrl);
+    void OpenPageViewL();
+    TUint GetBrowserSettingL(TUint aSetting);
+    void HandleHistoryCommandL(TBrCtlDefs::TBrCtlCommands aCommand);
+    void ViewImagesL();
+    TBool wmlMode();
+    
+private:
+    WebView* m_webView;
+};
+
+#endif