|
1 /* |
|
2 * Copyright (c) 2004 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 // INCLUDE FILES |
|
21 |
|
22 #include "BrowserSoftkeysObserver.h" |
|
23 #include "BrowserWindow.h" |
|
24 #include "BrowserWindowManager.h" |
|
25 #include "BrowserContentView.h" |
|
26 |
|
27 // --------------------------------------------------------- |
|
28 // CBrowserSoftkeysObserver::NewL() |
|
29 // --------------------------------------------------------- |
|
30 // |
|
31 CBrowserSoftkeysObserver* CBrowserSoftkeysObserver::NewL( |
|
32 CBrowserWindow& aWindow ) |
|
33 { |
|
34 CBrowserSoftkeysObserver* self = new (ELeave) |
|
35 CBrowserSoftkeysObserver( aWindow ); |
|
36 CleanupStack::PushL( self ); |
|
37 self->ConstructL(); |
|
38 CleanupStack::Pop(); // self |
|
39 return self; |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------- |
|
43 // CBrowserSoftkeysObserver::~CBrowserSoftkeysObserver() |
|
44 // --------------------------------------------------------- |
|
45 // |
|
46 CBrowserSoftkeysObserver::~CBrowserSoftkeysObserver() |
|
47 { |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------- |
|
51 // CBrowserSoftkeysObserver::UpdateSoftkeyL() |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 void CBrowserSoftkeysObserver::UpdateSoftkeyL( |
|
55 TBrCtlKeySoftkey /* aKeySoftkey */, |
|
56 const TDesC& /* aLabel */, |
|
57 TUint32 /* aCommandId */, |
|
58 TBrCtlSoftkeyChangeReason /* aReason */ ) |
|
59 { |
|
60 // update only the active window's softkeys |
|
61 if( iWindow->IsWindowActive() ) |
|
62 { |
|
63 CBrowserContentView* cv = iWindow->WindowMgr().ContentView(); |
|
64 if( cv ) |
|
65 { |
|
66 cv->UpdateCbaL(); |
|
67 } |
|
68 } |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // CBrowserSoftkeysObserver::CBrowserSoftkeysObserver() |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 CBrowserSoftkeysObserver::CBrowserSoftkeysObserver( |
|
76 CBrowserWindow& aWindow ) : |
|
77 iWindow( &aWindow ) |
|
78 { |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------- |
|
82 // CBrowserSoftkeysObserver::ConstructL() |
|
83 // --------------------------------------------------------- |
|
84 // |
|
85 void CBrowserSoftkeysObserver::ConstructL() |
|
86 { |
|
87 } |
|
88 |
|
89 // End of File |
|
90 |