webengine/osswebengine/WebKit/s60/misc/WebUtil.h
changeset 0 dd21522fd290
child 25 0ed94ceaa377
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implemetation of CWebKitView
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __WEBUTIL_H__
       
    19 #define __WEBUTIL_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 #include "BrCtlDefs.h"
       
    23 
       
    24 class WebFrame;
       
    25 class WebView;
       
    26 class TBrCtlImageCarrier;
       
    27 class TBrCtlSubscribeTo;
       
    28 class CEikMenuPane;
       
    29 //
       
    30 namespace WebCore {
       
    31     class Node;
       
    32     class String;
       
    33     class IntPoint;
       
    34     class Frame;
       
    35     class RenderImage;
       
    36     class Element;
       
    37 }
       
    38 
       
    39 TBrCtlDefs::TBrCtlElementType nodeTypeB(WebCore::Node* node, WebCore::Frame* frame);
       
    40 WebCore::String getNodeUrlAtPointInFrame(WebFrame& f_, WebCore::IntPoint& p_);
       
    41 WebFrame* frameAndPointUnderCursor(WebCore::IntPoint& p_, WebView& v_);
       
    42 int imageCountInFrame(WebFrame& wf_, bool visibleOnly_);
       
    43 CArrayFixFlat<TBrCtlImageCarrier>* imagesInFrame(WebFrame& wf_, bool visibleOnly_);
       
    44 CArrayFixFlat<TBrCtlSubscribeTo>* findSubscribeToInFrame(WebFrame& wf_);
       
    45 int focusedImage(WebView* webView, TBrCtlImageCarrier*& aImageCarrier);
       
    46 void loadFocusedImage(WebView* webView);
       
    47 WebCore::RenderImage* renderImageUnderCursor(WebView* webView);
       
    48 HBufC* generateFrameName();
       
    49 void addOneMenuItemAfter(CEikMenuPane& menuPane, unsigned int after, int command, int resourceId, unsigned int commandBase);
       
    50 void insertOneMenuItem(CEikMenuPane& menuPane, int command, int resourceId, unsigned int commandBase);
       
    51 int textMultiplier(int fontLevel, int originalSize);
       
    52 void addFocusedUrlToContacts(WebView* webView);
       
    53 int mapHttpErrors(int err );
       
    54 bool handleSelectElementScrolling(WebView* webView, int tb);
       
    55 
       
    56 #endif // END OF FILE
       
    57