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 #import "chrome/browser/ui/cocoa/options/preferences_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/options/preferences_window_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #include "chrome/common/url_constants.h" | 58 #include "chrome/common/url_constants.h" |
59 #include "chrome/installer/util/google_update_settings.h" | 59 #include "chrome/installer/util/google_update_settings.h" |
60 #include "grit/chromium_strings.h" | 60 #include "grit/chromium_strings.h" |
61 #include "grit/generated_resources.h" | 61 #include "grit/generated_resources.h" |
62 #include "grit/locale_settings.h" | 62 #include "grit/locale_settings.h" |
63 #include "grit/theme_resources.h" | 63 #include "grit/theme_resources.h" |
64 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 64 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" |
65 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 65 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
66 #include "ui/base/l10n/l10n_util_mac.h" | 66 #include "ui/base/l10n/l10n_util_mac.h" |
67 #include "ui/base/resource/resource_bundle.h" | 67 #include "ui/base/resource/resource_bundle.h" |
| 68 #include "ui/gfx/image.h" |
68 | 69 |
69 namespace { | 70 namespace { |
70 | 71 |
71 // Colors for the managed preferences warning banner. | 72 // Colors for the managed preferences warning banner. |
72 static const double kBannerGradientColorTop[3] = | 73 static const double kBannerGradientColorTop[3] = |
73 {255.0 / 255.0, 242.0 / 255.0, 183.0 / 255.0}; | 74 {255.0 / 255.0, 242.0 / 255.0, 183.0 / 255.0}; |
74 static const double kBannerGradientColorBottom[3] = | 75 static const double kBannerGradientColorBottom[3] = |
75 {250.0 / 255.0, 230.0 / 255.0, 145.0 / 255.0}; | 76 {250.0 / 255.0, 230.0 / 255.0, 145.0 / 255.0}; |
76 static const double kBannerStrokeColor = 135.0 / 255.0; | 77 static const double kBannerStrokeColor = 135.0 / 255.0; |
77 | 78 |
(...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2178 case OPTIONS_PAGE_ADVANCED: | 2179 case OPTIONS_PAGE_ADVANCED: |
2179 return underTheHoodView_; | 2180 return underTheHoodView_; |
2180 case OPTIONS_PAGE_DEFAULT: | 2181 case OPTIONS_PAGE_DEFAULT: |
2181 case OPTIONS_PAGE_COUNT: | 2182 case OPTIONS_PAGE_COUNT: |
2182 LOG(DFATAL) << "Invalid page value " << page; | 2183 LOG(DFATAL) << "Invalid page value " << page; |
2183 } | 2184 } |
2184 return basicsView_; | 2185 return basicsView_; |
2185 } | 2186 } |
2186 | 2187 |
2187 @end | 2188 @end |
OLD | NEW |