browsercore/appfw/Api/Views/GoAnywhereViewJSObject.h
branchGCC_SURGE
changeset 8 2e16851ffecd
parent 2 bf4420e9fa4d
parent 6 1c3b8676e58c
equal deleted inserted replaced
2:bf4420e9fa4d 8:2e16851ffecd
     1 /*
       
     2 * Copyright (c) 2010 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 "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GoAnywhereViewJSObject_H_
       
    19 #define GoAnywhereViewJSObject_H_
       
    20 
       
    21 #include "BWFGlobal.h"
       
    22 
       
    23 #include "controllableviewjsobject.h"
       
    24 
       
    25 class ViewEventContext;
       
    26 namespace WRT
       
    27 {
       
    28     class GoAnywhereView;
       
    29     
       
    30     /*!
       
    31       \brief This class provides the javascript API to GoAnywhereContentViews.
       
    32       \sa GoAnywhereContentView
       
    33      */
       
    34     class BWF_EXPORT GoAnywhereViewJSObject : public ControllableViewJSObject {
       
    35         Q_OBJECT
       
    36       public:
       
    37         GoAnywhereViewJSObject(GoAnywhereView *contentView, QWebFrame *chromeFrame);
       
    38         
       
    39       signals:
       
    40         void contextEvent(QObject *context);
       
    41         void goAnywhereViewChanged(QString);
       
    42         
       
    43       private slots:
       
    44         void onContextEvent(ViewEventContext *context);        
       
    45     };
       
    46 }
       
    47 
       
    48 #endif /* GoAnywhereViewJSObject_H_ */