2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Handle scrollbar and tab events
19 #ifndef BRCTLLAYOUTOBSERVER_H
20 #define BRCTLLAYOUTOBSERVER_H
28 * Defines whether a page is to be read from left-to-right or from right-to-left.
32 EOriginTopLeft, ///< Page is to be read from left-to-right
33 EOriginTopRight ///< Page is to be read from right-to-left
36 enum TBrCtlTabDirection
45 * The MBrCtlLayoutObserver class receives
46 * scrolling events when the host application draws the scrollbar.
51 * #include <brctllayoutobserver.h>
54 * @see S60 Platform: Browser Control API Developer's Guide Version 2.0
55 * @lib BrowserEngine.lib
56 * @file brctllayoutobserver.h
59 class MBrCtlLayoutObserver
61 public: // New functions
64 * Update the position of vertical scrollbar.
66 * @param aDocumentHeight The total height of the markup page
67 * @param aDisplayHeight The height of the display
68 * @param aDisplayPosY The current Y position
71 virtual void UpdateBrowserVScrollBarL(TInt aDocumentHeight,
73 TInt aDisplayPosY ) = 0;
76 * Update the position of horizontal scrollbar.
78 * @param aDocumentWidth The total width of the markup page
79 * @param aDisplayWidth The width of the display
80 * @param aDisplayPosX The current X position
83 virtual void UpdateBrowserHScrollBarL(TInt aDocumentWidth,
85 TInt aDisplayPosX ) = 0;
88 * Inform the layout of the page: right to left or left to right.
89 * Useful when the application draws the scrollbar itself.
91 * @param aNewLayout RTL (right to left) or LTR (left to right)
93 * @attention This function is useful when the host application draws the scrollbar.
94 * In RTL pages, the scroll bar should be on the left side.
96 virtual void NotifyLayoutChange( TBrCtlLayout aNewLayout ) = 0;
99 * Update the title of the page in history view
101 * @param aTitle Title of the page
104 virtual void UpdateTitleL( const TDesC& aTitle ) = 0;
107 #endif // BRCTLLAYOUTOBSERVER_H