| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "views/controls/message_box_view.h" | 5 #include "views/controls/message_box_view.h" |
| 6 | 6 |
| 7 #include "app/clipboard/clipboard.h" |
| 8 #include "app/clipboard/scoped_clipboard_writer.h" |
| 7 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 8 #include "app/message_box_flags.h" | 10 #include "app/message_box_flags.h" |
| 9 #include "base/clipboard.h" | |
| 10 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 11 #include "base/scoped_clipboard_writer.h" | |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "views/controls/button/checkbox.h" | 13 #include "views/controls/button/checkbox.h" |
| 14 #include "views/standard_layout.h" | 14 #include "views/standard_layout.h" |
| 15 #include "views/views_delegate.h" | 15 #include "views/views_delegate.h" |
| 16 #include "views/window/client_view.h" | 16 #include "views/window/client_view.h" |
| 17 | 17 |
| 18 static const int kDefaultMessageWidth = 320; | 18 static const int kDefaultMessageWidth = 320; |
| 19 | 19 |
| 20 /////////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////////// |
| 21 // MessageBoxView, public: | 21 // MessageBoxView, public: |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 if (checkbox_) { | 208 if (checkbox_) { |
| 209 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); | 209 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); |
| 210 layout->StartRow(0, checkbox_column_view_set_id); | 210 layout->StartRow(0, checkbox_column_view_set_id); |
| 211 layout->AddView(checkbox_); | 211 layout->AddView(checkbox_); |
| 212 } | 212 } |
| 213 | 213 |
| 214 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); | 214 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); |
| 215 } | 215 } |
| OLD | NEW |