webengine/osswebengine/WebKit/s60/webview/BrCtlWindowObserverImpl.h
changeset 10 a359256acfc6
child 15 60c5402cb945
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
       
     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:  Handle special load events such as network connection, deal with non-http or non-html requests
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef BRCTLWINDOWOBSERVERIMPL_H
       
    21 #define BRCTLWINDOWOBSERVERIMPL_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <BrCtlWindowObserver.h>
       
    25 
       
    26 
       
    27 /**
       
    28 *  This observer handles special load events such as network connection, deal with non-http(s) or non-html requests
       
    29 *
       
    30 *  @lib BrowserEngine.lib
       
    31 *  @since 2.8
       
    32 */
       
    33 class CBrCtlWindowObserver : public CBase, public MBrCtlWindowObserver
       
    34     {
       
    35     public: // From MBrCtlWindowObserver
       
    36         /**
       
    37         * Request the host applicaion to open the URL in a new window
       
    38         * @since 3.0
       
    39         * @param aUrl The Url of the request to be done in the new window
       
    40         * @param aTargetName The name of the new window
       
    41         * @param aUserInitiated ETrue if the new window is initiated by a user event (click)
       
    42         * @param aReserved For future use
       
    43         * @return Return Value is for future reference and is currently ignored
       
    44         */
       
    45         virtual CBrCtlInterface* OpenWindowL(TDesC& /*aUrl*/, TDesC* /*aTargetName*/, 
       
    46 			TBool /*aUserInitiated*/,  TAny* /*aReserved*/) {return NULL;}
       
    47     
       
    48         /**
       
    49         * Find a window by target name
       
    50         * @since 3.0
       
    51         * @param aTargetName name of the window to find
       
    52         * @return Return Value is the browser control associated with the window name
       
    53         */
       
    54         virtual CBrCtlInterface* FindWindowL( const TDesC& /*aTargetName*/ ) const { return NULL; }             
       
    55 
       
    56         /**
       
    57         * Handle window events such as close/focus etc
       
    58         * @since 3.0
       
    59         * @param aTargetName name of the window to send the event to
       
    60         * @param aCommand Command to pass to the window
       
    61         * @return void
       
    62         */
       
    63         virtual void HandleWindowCommandL( const TDesC& /*aTargetName*/, TBrCtlWindowCommand /*aCommand*/ ) {}
       
    64 
       
    65     };
       
    66 
       
    67 #endif      // BRCTLWINDOWOBSERVERIMPL_H
       
    68             
       
    69 // End of File