OLD | NEW |
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 #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 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/ui/browser_finder.h" | 24 #include "chrome/browser/ui/browser_finder.h" |
25 #include "chrome/common/chrome_constants.h" | 25 #include "chrome/common/chrome_constants.h" |
26 #include "chrome/common/chrome_version_info.h" | 26 #include "chrome/common/chrome_version_info.h" |
27 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
28 #include "chrome/installer/util/browser_distribution.h" | 28 #include "chrome/installer/util/browser_distribution.h" |
29 #include "content/public/browser/user_metrics.h" | 29 #include "content/public/browser/user_metrics.h" |
30 #include "grit/chromium_strings.h" | 30 #include "grit/chromium_strings.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "grit/locale_settings.h" | 32 #include "grit/locale_settings.h" |
33 #include "grit/theme_resources.h" | 33 #include "grit/theme_resources.h" |
| 34 #include "grit/theme_resources_standard.h" |
34 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
35 #include "ui/base/resource/resource_bundle.h" | 36 #include "ui/base/resource/resource_bundle.h" |
36 #include "ui/gfx/canvas.h" | 37 #include "ui/gfx/canvas.h" |
37 #include "ui/gfx/color_utils.h" | 38 #include "ui/gfx/color_utils.h" |
38 #include "ui/views/controls/button/text_button.h" | 39 #include "ui/views/controls/button/text_button.h" |
39 #include "ui/views/controls/link.h" | 40 #include "ui/views/controls/link.h" |
40 #include "ui/views/controls/textfield/textfield.h" | 41 #include "ui/views/controls/textfield/textfield.h" |
41 #include "ui/views/controls/throbber.h" | 42 #include "ui/views/controls/throbber.h" |
42 #include "ui/views/layout/layout_constants.h" | 43 #include "ui/views/layout/layout_constants.h" |
43 #include "ui/views/view_text_utils.h" | 44 #include "ui/views/view_text_utils.h" |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 int height = error_label_->GetHeightForWidth( | 791 int height = error_label_->GetHeightForWidth( |
791 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + | 792 dialog_dimensions_.width() - (2 * views::kPanelHorizMargin)) + |
792 views::kRelatedControlVerticalSpacing; | 793 views::kRelatedControlVerticalSpacing; |
793 window_rect.set_height(window_rect.height() + height); | 794 window_rect.set_height(window_rect.height() + height); |
794 GetWidget()->SetBounds(window_rect); | 795 GetWidget()->SetBounds(window_rect); |
795 | 796 |
796 return height; | 797 return height; |
797 } | 798 } |
798 | 799 |
799 #endif | 800 #endif |
OLD | NEW |