OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class NavigationController; | 11 class NavigationController; |
12 } | 12 } |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 class Size; | 15 class Size; |
16 } | 16 } |
17 | 17 |
18 namespace autofill { | 18 namespace autofill { |
19 | 19 |
| 20 class AutofillDialogController; |
20 class TestableAutofillDialogView; | 21 class TestableAutofillDialogView; |
21 | 22 |
22 // An interface for the dialog that appears when a site initiates an Autofill | 23 // An interface for the dialog that appears when a site initiates an Autofill |
23 // action via the imperative autocomplete API. | 24 // action via the imperative autocomplete API. |
24 class AutofillDialogView { | 25 class AutofillDialogView { |
25 public: | 26 public: |
26 virtual ~AutofillDialogView(); | 27 virtual ~AutofillDialogView(); |
27 | 28 |
28 // Shows the dialog. | 29 // Shows the dialog. |
29 virtual void Show() = 0; | 30 virtual void Show() = 0; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; | 89 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; |
89 | 90 |
90 // Factory function to create the dialog (implemented once per view | 91 // Factory function to create the dialog (implemented once per view |
91 // implementation). |controller| will own the created dialog. | 92 // implementation). |controller| will own the created dialog. |
92 static AutofillDialogView* Create(AutofillDialogController* controller); | 93 static AutofillDialogView* Create(AutofillDialogController* controller); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace autofill | 96 } // namespace autofill |
96 | 97 |
97 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 98 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |