| 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Returns the icon that should be shown in the account chooser. | 68 // Returns the icon that should be shown in the account chooser. |
| 69 virtual gfx::Image AccountChooserImage() = 0; | 69 virtual gfx::Image AccountChooserImage() = 0; |
| 70 | 70 |
| 71 // Whether or not the details container should be showing currently. | 71 // Whether or not the details container should be showing currently. |
| 72 virtual bool ShouldShowDetailArea() const = 0; | 72 virtual bool ShouldShowDetailArea() const = 0; |
| 73 | 73 |
| 74 // Whether or not the progress bar in the button strip should be showing. | 74 // Whether or not the progress bar in the button strip should be showing. |
| 75 virtual bool ShouldShowProgressBar() const = 0; | 75 virtual bool ShouldShowProgressBar() const = 0; |
| 76 | 76 |
| 77 // Returns the image that should be shown on the left of the button strip |
| 78 // or an empty image if none should be shown. |
| 79 virtual gfx::Image ButtonStripImage() const = 0; |
| 80 |
| 77 // Which dialog buttons should be visible. | 81 // Which dialog buttons should be visible. |
| 78 virtual int GetDialogButtons() const = 0; | 82 virtual int GetDialogButtons() const = 0; |
| 79 | 83 |
| 80 // Whether or not the |button| should be enabled. | 84 // Whether or not the |button| should be enabled. |
| 81 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; | 85 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; |
| 82 | 86 |
| 83 // Returns a struct full of data concerning what overlay, if any, should be | 87 // Returns a struct full of data concerning what overlay, if any, should be |
| 84 // displayed on top of the dialog. | 88 // displayed on top of the dialog. |
| 85 virtual DialogOverlayState GetDialogOverlay() const = 0; | 89 virtual DialogOverlayState GetDialogOverlay() const = 0; |
| 86 | 90 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // The web contents that prompted the dialog. | 213 // The web contents that prompted the dialog. |
| 210 virtual content::WebContents* web_contents() = 0; | 214 virtual content::WebContents* web_contents() = 0; |
| 211 | 215 |
| 212 protected: | 216 protected: |
| 213 virtual ~AutofillDialogController(); | 217 virtual ~AutofillDialogController(); |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 } // namespace autofill | 220 } // namespace autofill |
| 217 | 221 |
| 218 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 222 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
| OLD | NEW |