Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: ui/views/controls/message_box_view.h

Issue 13925019: fix GridLayout::CreatePanel for new style dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: msw review Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 }; 41 };
42 42
43 struct VIEWS_EXPORT InitParams { 43 struct VIEWS_EXPORT InitParams {
44 explicit InitParams(const string16& message); 44 explicit InitParams(const string16& message);
45 ~InitParams(); 45 ~InitParams();
46 46
47 uint16 options; 47 uint16 options;
48 string16 message; 48 string16 message;
49 string16 default_prompt; 49 string16 default_prompt;
50 int message_width; 50 int message_width;
51 int top_inset;
52 int bottom_inset;
53 int left_inset;
54 int right_inset;
55 int inter_row_vertical_spacing; 51 int inter_row_vertical_spacing;
56 ui::Clipboard::SourceTag clipboard_source_tag; 52 ui::Clipboard::SourceTag clipboard_source_tag;
57 }; 53 };
58 54
59 explicit MessageBoxView(const InitParams& params); 55 explicit MessageBoxView(const InitParams& params);
60 56
61 virtual ~MessageBoxView(); 57 virtual ~MessageBoxView();
62 58
63 // Returns the text box. 59 // Returns the text box.
64 views::Textfield* text_box() { return prompt_field_; } 60 views::Textfield* text_box() { return prompt_field_; }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 106
111 // Icon displayed in the upper left corner of the message box. 107 // Icon displayed in the upper left corner of the message box.
112 ImageView* icon_; 108 ImageView* icon_;
113 109
114 // Checkbox for the message box. 110 // Checkbox for the message box.
115 Checkbox* checkbox_; 111 Checkbox* checkbox_;
116 112
117 // Maximum width of the message label. 113 // Maximum width of the message label.
118 int message_width_; 114 int message_width_;
119 115
120 // Insets for the grid layout.
121 int top_inset_;
122 int bottom_inset_;
123 int left_inset_;
124 int right_inset_;
125
126 // Spacing between rows in the grid layout. 116 // Spacing between rows in the grid layout.
127 int inter_row_vertical_spacing_; 117 int inter_row_vertical_spacing_;
128 118
129 // Source tag to be written to the clipboard when Ctrl-C pressed. 119 // Source tag to be written to the clipboard when Ctrl-C pressed.
130 ui::Clipboard::SourceTag source_tag_; 120 ui::Clipboard::SourceTag source_tag_;
131 121
132 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); 122 DISALLOW_COPY_AND_ASSIGN(MessageBoxView);
133 }; 123 };
134 124
135 } // namespace views 125 } // namespace views
136 126
137 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 127 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | ui/views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698