OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/views/controls/message_box_view.h" | 5 #include "chrome/views/controls/message_box_view.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/clipboard.h" | 8 #include "base/clipboard.h" |
8 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
9 #include "base/scoped_clipboard_writer.h" | 10 #include "base/scoped_clipboard_writer.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/views/standard_layout.h" | 13 #include "chrome/browser/views/standard_layout.h" |
13 #include "chrome/common/l10n_util.h" | |
14 #include "chrome/common/message_box_flags.h" | 14 #include "chrome/common/message_box_flags.h" |
15 #include "chrome/views/controls/button/checkbox.h" | 15 #include "chrome/views/controls/button/checkbox.h" |
16 #include "chrome/views/window/client_view.h" | 16 #include "chrome/views/window/client_view.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 | 18 |
19 static const int kDefaultMessageWidth = 320; | 19 static const int kDefaultMessageWidth = 320; |
20 | 20 |
21 /////////////////////////////////////////////////////////////////////////////// | 21 /////////////////////////////////////////////////////////////////////////////// |
22 // MessageBoxView, public: | 22 // MessageBoxView, public: |
23 | 23 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 200 } |
201 | 201 |
202 if (checkbox_) { | 202 if (checkbox_) { |
203 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); | 203 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); |
204 layout->StartRow(0, checkbox_column_view_set_id); | 204 layout->StartRow(0, checkbox_column_view_set_id); |
205 layout->AddView(checkbox_); | 205 layout->AddView(checkbox_); |
206 } | 206 } |
207 | 207 |
208 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); | 208 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); |
209 } | 209 } |
OLD | NEW |