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/browser/views/about_chrome_view.h" | 5 #include "chrome/browser/views/about_chrome_view.h" |
6 | 6 |
7 #include <commdlg.h> | 7 #include <commdlg.h> |
8 | 8 |
| 9 #include "app/l10n_util.h" |
9 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
10 #include "base/file_version_info.h" | 11 #include "base/file_version_info.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "base/win_util.h" | 13 #include "base/win_util.h" |
13 #include "base/word_iterator.h" | 14 #include "base/word_iterator.h" |
14 #include "chrome/browser/browser_list.h" | 15 #include "chrome/browser/browser_list.h" |
15 #include "chrome/common/gfx/chrome_canvas.h" | 16 #include "chrome/common/gfx/chrome_canvas.h" |
16 #include "chrome/common/gfx/color_utils.h" | 17 #include "chrome/common/gfx/color_utils.h" |
17 #include "chrome/browser/metrics/user_metrics.h" | 18 #include "chrome/browser/metrics/user_metrics.h" |
18 #include "chrome/browser/views/restart_message_box.h" | 19 #include "chrome/browser/views/restart_message_box.h" |
19 #include "chrome/browser/views/standard_layout.h" | 20 #include "chrome/browser/views/standard_layout.h" |
20 #include "chrome/common/l10n_util.h" | |
21 #include "chrome/common/chrome_constants.h" | 21 #include "chrome/common/chrome_constants.h" |
22 #include "chrome/installer/util/install_util.h" | 22 #include "chrome/installer/util/install_util.h" |
23 #include "chrome/views/controls/text_field.h" | 23 #include "chrome/views/controls/text_field.h" |
24 #include "chrome/views/controls/throbber.h" | 24 #include "chrome/views/controls/throbber.h" |
25 #include "chrome/views/window/window.h" | 25 #include "chrome/views/window/window.h" |
26 #include "grit/chromium_strings.h" | 26 #include "grit/chromium_strings.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "grit/locale_settings.h" | 28 #include "grit/locale_settings.h" |
29 #include "grit/theme_resources.h" | 29 #include "grit/theme_resources.h" |
30 #include "webkit/glue/webkit_glue.h" | 30 #include "webkit/glue/webkit_glue.h" |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 | 819 |
820 // We have updated controls on the parent, so we need to update its layout. | 820 // We have updated controls on the parent, so we need to update its layout. |
821 View* parent = GetParent(); | 821 View* parent = GetParent(); |
822 parent->Layout(); | 822 parent->Layout(); |
823 | 823 |
824 // Check button may have appeared/disappeared. We cannot call this during | 824 // Check button may have appeared/disappeared. We cannot call this during |
825 // ViewHierarchyChanged because the |window()| pointer hasn't been set yet. | 825 // ViewHierarchyChanged because the |window()| pointer hasn't been set yet. |
826 if (window()) | 826 if (window()) |
827 GetDialogClientView()->UpdateDialogButtons(); | 827 GetDialogClientView()->UpdateDialogButtons(); |
828 } | 828 } |
OLD | NEW |