| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_BASE_MODELS_DIALOG_MODEL_H_ | 5 #ifndef UI_BASE_MODELS_DIALOG_MODEL_H_ |
| 6 #define UI_BASE_MODELS_DIALOG_MODEL_H_ | 6 #define UI_BASE_MODELS_DIALOG_MODEL_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "ui/base/ui_base_export.h" | 9 #include "ui/base/ui_base_export.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual int GetDialogButtons() const = 0; | 23 virtual int GetDialogButtons() const = 0; |
| 24 | 24 |
| 25 // Returns the default dialog button. This should not be a mask as only | 25 // Returns the default dialog button. This should not be a mask as only |
| 26 // one button should ever be the default button. Return | 26 // one button should ever be the default button. Return |
| 27 // ui::DIALOG_BUTTON_NONE if there is no default. Default | 27 // ui::DIALOG_BUTTON_NONE if there is no default. Default |
| 28 // behavior is to return ui::DIALOG_BUTTON_OK or | 28 // behavior is to return ui::DIALOG_BUTTON_OK or |
| 29 // ui::DIALOG_BUTTON_CANCEL (in that order) if they are | 29 // ui::DIALOG_BUTTON_CANCEL (in that order) if they are |
| 30 // present, ui::DIALOG_BUTTON_NONE otherwise. | 30 // present, ui::DIALOG_BUTTON_NONE otherwise. |
| 31 virtual int GetDefaultDialogButton() const = 0; | 31 virtual int GetDefaultDialogButton() const = 0; |
| 32 | 32 |
| 33 // Returns whether the default dialog button should be colored blue as a call | |
| 34 // to action. | |
| 35 virtual bool ShouldDefaultButtonBeBlue() const = 0; | |
| 36 | |
| 37 // Returns the label of the specified dialog button. | 33 // Returns the label of the specified dialog button. |
| 38 virtual base::string16 GetDialogButtonLabel(DialogButton button) const = 0; | 34 virtual base::string16 GetDialogButtonLabel(DialogButton button) const = 0; |
| 39 | 35 |
| 40 // Returns whether the specified dialog button is enabled. | 36 // Returns whether the specified dialog button is enabled. |
| 41 virtual bool IsDialogButtonEnabled(DialogButton button) const = 0; | 37 virtual bool IsDialogButtonEnabled(DialogButton button) const = 0; |
| 42 }; | 38 }; |
| 43 | 39 |
| 44 } // namespace ui | 40 } // namespace ui |
| 45 | 41 |
| 46 #endif // UI_BASE_MODELS_DIALOG_MODEL_H_ | 42 #endif // UI_BASE_MODELS_DIALOG_MODEL_H_ |
| OLD | NEW |