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 <stdint.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
| 12 #include "base/macros.h" |
10 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
11 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
12 | 15 |
13 namespace views { | 16 namespace views { |
14 | 17 |
15 class Checkbox; | 18 class Checkbox; |
16 class Label; | 19 class Label; |
17 class Link; | 20 class Link; |
18 class LinkListener; | 21 class LinkListener; |
19 class Textfield; | 22 class Textfield; |
(...skipping 16 matching lines...) Expand all Loading... |
36 // The spec does not say anything about alignment. And we choose to | 39 // The spec does not say anything about alignment. And we choose to |
37 // align all paragraphs according to the direction of the first paragraph. | 40 // align all paragraphs according to the direction of the first paragraph. |
38 DETECT_DIRECTIONALITY = 1 << 0, | 41 DETECT_DIRECTIONALITY = 1 << 0, |
39 HAS_PROMPT_FIELD = 1 << 1, | 42 HAS_PROMPT_FIELD = 1 << 1, |
40 }; | 43 }; |
41 | 44 |
42 struct VIEWS_EXPORT InitParams { | 45 struct VIEWS_EXPORT InitParams { |
43 explicit InitParams(const base::string16& message); | 46 explicit InitParams(const base::string16& message); |
44 ~InitParams(); | 47 ~InitParams(); |
45 | 48 |
46 uint16 options; | 49 uint16_t options; |
47 base::string16 message; | 50 base::string16 message; |
48 base::string16 default_prompt; | 51 base::string16 default_prompt; |
49 int message_width; | 52 int message_width; |
50 int inter_row_vertical_spacing; | 53 int inter_row_vertical_spacing; |
51 }; | 54 }; |
52 | 55 |
53 explicit MessageBoxView(const InitParams& params); | 56 explicit MessageBoxView(const InitParams& params); |
54 | 57 |
55 ~MessageBoxView() override; | 58 ~MessageBoxView() override; |
56 | 59 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 116 |
114 // Spacing between rows in the grid layout. | 117 // Spacing between rows in the grid layout. |
115 int inter_row_vertical_spacing_; | 118 int inter_row_vertical_spacing_; |
116 | 119 |
117 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); | 120 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); |
118 }; | 121 }; |
119 | 122 |
120 } // namespace views | 123 } // namespace views |
121 | 124 |
122 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 125 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
OLD | NEW |