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/options/content_page_view.h" | 5 #include "chrome/browser/ui/views/options/content_page_view.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shlobj.h> | 8 #include <shlobj.h> |
9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
10 #include <vssym32.h> | 10 #include <vssym32.h> |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "chrome/browser/autofill/autofill_dialog.h" | 16 #include "chrome/browser/autofill/autofill_dialog.h" |
17 #include "chrome/browser/autofill/personal_data_manager.h" | 17 #include "chrome/browser/autofill/personal_data_manager.h" |
18 #include "chrome/browser/browser_list.h" | 18 #include "chrome/browser/browser_list.h" |
19 #include "chrome/browser/browser_window.h" | 19 #include "chrome/browser/browser_window.h" |
20 #include "chrome/browser/importer/importer_data_types.h" | 20 #include "chrome/browser/importer/importer_data_types.h" |
21 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/sync/sync_ui_util.h" | 22 #include "chrome/browser/sync/sync_ui_util.h" |
23 #include "chrome/browser/sync/sync_setup_wizard.h" | 23 #include "chrome/browser/sync/sync_setup_wizard.h" |
24 #include "chrome/browser/ui/views/importer_view.h" | 24 #include "chrome/browser/ui/views/importer_view.h" |
25 #include "chrome/browser/ui/views/options/managed_prefs_banner_view.h" | 25 #include "chrome/browser/ui/views/options/managed_prefs_banner_view.h" |
26 #include "chrome/browser/ui/views/options/options_group_view.h" | 26 #include "chrome/browser/ui/views/options/options_group_view.h" |
27 #include "chrome/browser/ui/views/options/passwords_exceptions_window_view.h" | 27 #include "chrome/browser/ui/views/options/passwords_exceptions_window_view.h" |
28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
29 #include "gfx/canvas.h" | |
30 #include "gfx/native_theme_win.h" | |
31 #include "grit/chromium_strings.h" | 29 #include "grit/chromium_strings.h" |
32 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
33 #include "grit/locale_settings.h" | 31 #include "grit/locale_settings.h" |
34 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "ui/gfx/canvas.h" |
| 34 #include "ui/gfx/native_theme_win.h" |
35 #include "views/controls/button/radio_button.h" | 35 #include "views/controls/button/radio_button.h" |
36 #include "views/layout/grid_layout.h" | 36 #include "views/layout/grid_layout.h" |
37 #include "views/layout/layout_constants.h" | 37 #include "views/layout/layout_constants.h" |
38 #include "views/widget/widget.h" | 38 #include "views/widget/widget.h" |
39 #include "views/window/window.h" | 39 #include "views/window/window.h" |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 // All the options pages are in the same view hierarchy. This means we need to | 43 // All the options pages are in the same view hierarchy. This means we need to |
44 // make sure group identifiers don't collide across different pages. | 44 // make sure group identifiers don't collide across different pages. |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 sync_action_link_->SetEnabled(!managed); | 498 sync_action_link_->SetEnabled(!managed); |
499 | 499 |
500 if (status_has_error) { | 500 if (status_has_error) { |
501 sync_status_label_->set_background(CreateErrorBackground()); | 501 sync_status_label_->set_background(CreateErrorBackground()); |
502 sync_action_link_->set_background(CreateErrorBackground()); | 502 sync_action_link_->set_background(CreateErrorBackground()); |
503 } else { | 503 } else { |
504 sync_status_label_->set_background(NULL); | 504 sync_status_label_->set_background(NULL); |
505 sync_action_link_->set_background(NULL); | 505 sync_action_link_->set_background(NULL); |
506 } | 506 } |
507 } | 507 } |
OLD | NEW |