webengine/osswebengine/webkit/s60/webview/WebGestureInterface.h
changeset 65 5bfc169077b2
parent 42 d39add9822e2
child 66 cacf6ee57968
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
     1 /*
       
     2 * Copyright (c) 2008 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:   Implements gesture interface functionality
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef WEBGESTUREINTERFACE_H
       
    19 #define WEBGESTUREINTERFACE_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <stmgestureinterface.h>
       
    23 
       
    24 // MACROS
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class WebView;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class WebGestureInterface : public CBase, public MStmGestureListener
       
    31     {
       
    32 public:
       
    33     // New methods
       
    34 
       
    35     /**
       
    36      * NewL.
       
    37      * Two-phased constructor.
       
    38      * Create a WebGestureInterface object
       
    39      * @return a pointer to the created instance of WebGestureInterface.
       
    40      */
       
    41     static WebGestureInterface* NewL(WebView* view);
       
    42 
       
    43     static WebGestureInterface* NewLC(WebView* view);
       
    44 
       
    45     /**
       
    46      * ~CgestureInterface
       
    47      * Virtual Destructor.
       
    48      */
       
    49     ~WebGestureInterface();
       
    50 
       
    51 public:   //member functions
       
    52 
       
    53     void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    54     
       
    55 public:  //from MStmGestureListener    
       
    56     
       
    57     void HandleGestureEventL(const TStmGestureEvent& aGesture);
       
    58 
       
    59 private:
       
    60     // Constructors
       
    61 
       
    62     void ConstructL();
       
    63 
       
    64     /**
       
    65      * WebGestureInterface.
       
    66      * C++ default constructor.
       
    67      */
       
    68     WebGestureInterface(WebView* view);
       
    69     
       
    70 private:   
       
    71     CStmGestureEngine  *iGestureEngine;   // <<owned>>
       
    72     CStmGestureContext *iGestureContext;  // <<not owned>>
       
    73     WebView* m_webview;                   // <<not owned>>
       
    74     };
       
    75 
       
    76 #endif //  WEBGESTUREINTERFACE_H
       
    77 // End of File