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/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_export.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 // A model representing a dialog window. The model provides the content to show | 14 // A model representing a dialog window. The model provides the content to show |
15 // to the user (i.e. label, title), and the ways the user can interact with it | 15 // to the user (i.e. label, title), and the ways the user can interact with it |
16 // (i.e. the buttons). | 16 // (i.e. the buttons). |
17 class UI_EXPORT DialogModel { | 17 class UI_EXPORT DialogModel { |
18 public: | 18 public: |
(...skipping 23 matching lines...) Expand all Loading... |
42 // Returns whether the specified dialog button is enabled. | 42 // Returns whether the specified dialog button is enabled. |
43 virtual bool IsDialogButtonEnabled(DialogButton button) const = 0; | 43 virtual bool IsDialogButtonEnabled(DialogButton button) const = 0; |
44 | 44 |
45 // Returns true if the dialog should be closed. Returns false otherwise. | 45 // Returns true if the dialog should be closed. Returns false otherwise. |
46 virtual bool OnDialogButtonActivated(DialogButton button) = 0; | 46 virtual bool OnDialogButtonActivated(DialogButton button) = 0; |
47 }; | 47 }; |
48 | 48 |
49 } // namespace ui | 49 } // namespace ui |
50 | 50 |
51 #endif // UI_BASE_MODELS_DIALOG_MODEL_H_ | 51 #endif // UI_BASE_MODELS_DIALOG_MODEL_H_ |
OLD | NEW |