Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_view.h

Issue 21692002: Rename AutofillDialogController to AutofillDialogViewDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_view_delegate.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 AutofillDialogViewDelegate;
21 class TestableAutofillDialogView; 21 class TestableAutofillDialogView;
22 22
23 // 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
24 // action via the imperative autocomplete API. 24 // action via the imperative autocomplete API.
25 class AutofillDialogView { 25 class AutofillDialogView {
26 public: 26 public:
27 virtual ~AutofillDialogView(); 27 virtual ~AutofillDialogView();
28 28
29 // Shows the dialog. 29 // Shows the dialog.
30 virtual void Show() = 0; 30 virtual void Show() = 0;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Returns an object that can be used to test that the view is behaving as 89 // Returns an object that can be used to test that the view is behaving as
90 // expected. 90 // expected.
91 virtual TestableAutofillDialogView* GetTestableView() = 0; 91 virtual TestableAutofillDialogView* GetTestableView() = 0;
92 92
93 // Called by AutofillDialogSignInDelegate when the sign-in page experiences a 93 // Called by AutofillDialogSignInDelegate when the sign-in page experiences a
94 // resize. |pref_size| is the new preferred size of the sign-in page. 94 // resize. |pref_size| is the new preferred size of the sign-in page.
95 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; 95 virtual void OnSignInResize(const gfx::Size& pref_size) = 0;
96 96
97 // Factory function to create the dialog (implemented once per view 97 // Factory function to create the dialog (implemented once per view
98 // implementation). |controller| will own the created dialog. 98 // implementation). |controller| will own the created dialog.
99 static AutofillDialogView* Create(AutofillDialogController* controller); 99 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate);
100 }; 100 };
101 101
102 } // namespace autofill 102 } // namespace autofill
103 103
104 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ 104 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698