|
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 scrollbar and tab events |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BRCTLLAYOUTOBSERVERIMPL_H |
|
20 #define BRCTLLAYOUTOBSERVERIMPL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <BrCtlLayoutObserver.h> |
|
24 |
|
25 /** |
|
26 * This observer is notified of scrolling and tabbing events |
|
27 * |
|
28 * @lib BrowserEngine.lib |
|
29 * @since 2.8 |
|
30 */ |
|
31 class CBrCtlLayoutObserver : public CBase, public MBrCtlLayoutObserver |
|
32 { |
|
33 public: // From MBrCtlLayoutObserverImpl |
|
34 |
|
35 /** |
|
36 * Update the position of vertical scrollbar. |
|
37 * @since 2.8 |
|
38 * @param aDocumentHeight The total height of the markup page |
|
39 * @param aDisplayHeight The height of the display |
|
40 * @param aDisplayPosY The current Y position |
|
41 * @return void |
|
42 */ |
|
43 virtual void UpdateBrowserVScrollBarL(TInt /*aDocumentHeight*/, |
|
44 TInt /*aDisplayHeight*/, |
|
45 TInt /*aDisplayPosY*/ ) {} |
|
46 |
|
47 /** |
|
48 * Update the position of horizontal scrollbar. |
|
49 * @since 2.8 |
|
50 * @param aDocumentWidth The total width of the markup page |
|
51 * @param aDisplayWidth The width of the display |
|
52 * @param aDisplayPosX The current X position |
|
53 * @return void |
|
54 */ |
|
55 virtual void UpdateBrowserHScrollBarL(TInt /*aDocumentWidth*/, |
|
56 TInt /*aDisplayWidth*/, |
|
57 TInt /*aDisplayPosX*/ ) {} |
|
58 |
|
59 /** |
|
60 * Inform the layout of the page: right to left or left to right. Useful when the application draws the scrollbar itself. |
|
61 * @since 2.8 |
|
62 * @param aNewLayout RTL or LTR |
|
63 * @return void |
|
64 */ |
|
65 virtual void NotifyLayoutChange( TBrCtlLayout /*aNewLayout*/ ) {} |
|
66 |
|
67 /** |
|
68 * Update the title of the page in history view |
|
69 * @since 3.0 |
|
70 * @param aTitle Title of the page |
|
71 * @return void |
|
72 */ |
|
73 virtual void UpdateTitleL( const TDesC& /*aTitle*/ ) {} |
|
74 }; |
|
75 |
|
76 #endif // BRCTLLAYOUTOBSERVERIMPL_H |
|
77 |
|
78 // End of File |