| 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 UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| 6 #define UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 struct VIEWS_EXPORT InitParams { | 42 struct VIEWS_EXPORT InitParams { |
| 43 explicit InitParams(const string16& message); | 43 explicit InitParams(const string16& message); |
| 44 ~InitParams(); | 44 ~InitParams(); |
| 45 | 45 |
| 46 uint16 options; | 46 uint16 options; |
| 47 string16 message; | 47 string16 message; |
| 48 string16 default_prompt; | 48 string16 default_prompt; |
| 49 int message_width; | 49 int message_width; |
| 50 int top_inset; |
| 51 int bottom_inset; |
| 52 int left_inset; |
| 53 int right_inset; |
| 54 int inter_row_vertical_spacing; |
| 50 }; | 55 }; |
| 51 | 56 |
| 52 explicit MessageBoxView(const InitParams& params); | 57 explicit MessageBoxView(const InitParams& params); |
| 53 | 58 |
| 54 virtual ~MessageBoxView(); | 59 virtual ~MessageBoxView(); |
| 55 | 60 |
| 56 // Returns the text box. | 61 // Returns the text box. |
| 57 views::Textfield* text_box() { return prompt_field_; } | 62 views::Textfield* text_box() { return prompt_field_; } |
| 58 | 63 |
| 59 // Returns user entered data in the prompt field. | 64 // Returns user entered data in the prompt field. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 108 |
| 104 // Icon displayed in the upper left corner of the message box. | 109 // Icon displayed in the upper left corner of the message box. |
| 105 ImageView* icon_; | 110 ImageView* icon_; |
| 106 | 111 |
| 107 // Checkbox for the message box. | 112 // Checkbox for the message box. |
| 108 Checkbox* checkbox_; | 113 Checkbox* checkbox_; |
| 109 | 114 |
| 110 // Maximum width of the message label. | 115 // Maximum width of the message label. |
| 111 int message_width_; | 116 int message_width_; |
| 112 | 117 |
| 118 // Insets for the grid layout. |
| 119 int top_inset_; |
| 120 int bottom_inset_; |
| 121 int left_inset_; |
| 122 int right_inset_; |
| 123 |
| 124 // Spacing between rows in the grid layout. |
| 125 int inter_row_vertical_spacing_; |
| 126 |
| 113 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); | 127 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); |
| 114 }; | 128 }; |
| 115 | 129 |
| 116 } // namespace views | 130 } // namespace views |
| 117 | 131 |
| 118 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 132 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| OLD | NEW |