OLD | NEW |
1 // Copyright (c) 2011 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/ui/views/about_chrome_view.h" | 5 #include "chrome/browser/ui/views/about_chrome_view.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <commdlg.h> | 8 #include <commdlg.h> |
9 #endif // defined(OS_WIN) | 9 #endif // defined(OS_WIN) |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/browser/user_metrics.h" | 28 #include "content/browser/user_metrics.h" |
29 #include "grit/chromium_strings.h" | 29 #include "grit/chromium_strings.h" |
30 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
31 #include "grit/locale_settings.h" | 31 #include "grit/locale_settings.h" |
32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
33 #include "ui/base/l10n/l10n_util.h" | 33 #include "ui/base/l10n/l10n_util.h" |
34 #include "ui/base/resource/resource_bundle.h" | 34 #include "ui/base/resource/resource_bundle.h" |
35 #include "ui/gfx/canvas.h" | 35 #include "ui/gfx/canvas.h" |
36 #include "ui/gfx/color_utils.h" | 36 #include "ui/gfx/color_utils.h" |
37 #include "ui/views/layout/layout_constants.h" | 37 #include "ui/views/layout/layout_constants.h" |
| 38 #include "ui/views/widget/widget.h" |
38 #include "views/controls/button/text_button.h" | 39 #include "views/controls/button/text_button.h" |
39 #include "views/controls/link.h" | 40 #include "views/controls/link.h" |
40 #include "views/controls/textfield/textfield.h" | 41 #include "views/controls/textfield/textfield.h" |
41 #include "views/controls/throbber.h" | 42 #include "views/controls/throbber.h" |
42 #include "views/view_text_utils.h" | 43 #include "views/view_text_utils.h" |
43 #include "views/widget/widget.h" | |
44 #include "webkit/glue/webkit_glue.h" | 44 #include "webkit/glue/webkit_glue.h" |
45 | 45 |
46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
47 #include "base/win/win_util.h" | 47 #include "base/win/win_util.h" |
48 #include "chrome/browser/browser_process.h" | 48 #include "chrome/browser/browser_process.h" |
49 #include "chrome/browser/ui/views/restart_message_box.h" | 49 #include "chrome/browser/ui/views/restart_message_box.h" |
50 #include "chrome/installer/util/install_util.h" | 50 #include "chrome/installer/util/install_util.h" |
51 #endif // defined(OS_WIN) | 51 #endif // defined(OS_WIN) |
52 | 52 |
53 // The amount of vertical space separating the error label at the bottom from | 53 // The amount of vertical space separating the error label at the bottom from |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 int height = error_label_->GetHeightForWidth( | 790 int height = error_label_->GetHeightForWidth( |
791 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + | 791 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + |
792 views::kRelatedControlVerticalSpacing; | 792 views::kRelatedControlVerticalSpacing; |
793 window_rect.set_height(window_rect.height() + height); | 793 window_rect.set_height(window_rect.height() + height); |
794 GetWidget()->SetBounds(window_rect); | 794 GetWidget()->SetBounds(window_rect); |
795 | 795 |
796 return height; | 796 return height; |
797 } | 797 } |
798 | 798 |
799 #endif | 799 #endif |
OLD | NEW |