equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: FormFill |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef WEBFORMFILL_H |
|
20 #define WEBFORMFILL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "FormFillCallback.h" |
|
25 |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 class WebView; |
|
35 class MFormFillPopup; |
|
36 class CFont; |
|
37 |
|
38 namespace WebCore { |
|
39 class FormState; |
|
40 class Element; |
|
41 } |
|
42 |
|
43 /** |
|
44 * Displays the Page overview |
|
45 * |
|
46 * @lib browserview.lib |
|
47 * @since Series 60 3.0 |
|
48 */ |
|
49 class WebFormFill : public MFormFillCallback |
|
50 { |
|
51 public: // Constructors and destructor |
|
52 |
|
53 /** |
|
54 * Constructor |
|
55 */ |
|
56 WebFormFill( WebView* view ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~WebFormFill(); |
|
62 public: // New functoins |
|
63 |
|
64 void willSubmitForm(WebCore::FormState* formState); |
|
65 void textChanged(WebCore::Element* inputElement); |
|
66 void updatePopupView(); |
|
67 |
|
68 public: // from MFormFillCabbback |
|
69 void queryUserAboutAutoFillL(bool& saveNow, bool& neverSave); |
|
70 MFormFillPopup* createFormFillPopup(CFont* font); |
|
71 void autoComplete(TPtrC text); |
|
72 void cancelPopup(); |
|
73 private: // Data |
|
74 |
|
75 WebView* m_webView; |
|
76 }; |
|
77 |
|
78 #endif // WEBFORMFILL_H |
|
79 |
|
80 // End of File |