| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/views/confirm_message_box_dialog.h" | 5 #include "chrome/browser/ui/views/confirm_message_box_dialog.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/message_box_flags.h" | 8 #include "app/message_box_flags.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "grit/locale_settings.h" | 11 #include "grit/locale_settings.h" |
| 12 #include "views/standard_layout.h" | 12 #include "views/standard_layout.h" |
| 13 #include "views/widget/widget.h" | 13 #include "views/widget/widget.h" |
| 14 #include "views/window/window.h" | 14 #include "views/window/window.h" |
| 15 | 15 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void ConfirmMessageBoxDialog::Layout() { | 96 void ConfirmMessageBoxDialog::Layout() { |
| 97 gfx::Size sz = message_label_->GetPreferredSize(); | 97 gfx::Size sz = message_label_->GetPreferredSize(); |
| 98 message_label_->SetBounds(kPanelHorizMargin, kPanelVertMargin, | 98 message_label_->SetBounds(kPanelHorizMargin, kPanelVertMargin, |
| 99 width() - 2 * kPanelHorizMargin, | 99 width() - 2 * kPanelHorizMargin, |
| 100 sz.height()); | 100 sz.height()); |
| 101 } | 101 } |
| 102 | 102 |
| 103 gfx::Size ConfirmMessageBoxDialog::GetPreferredSize() { | 103 gfx::Size ConfirmMessageBoxDialog::GetPreferredSize() { |
| 104 return preferred_size_; | 104 return preferred_size_; |
| 105 } | 105 } |
| OLD | NEW |