Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_POPUP_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_POPUP_CONSTANTS_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_POPUP_CONSTANTS_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_POPUP_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 #include "ui/native_theme/native_theme.h" | |
| 9 | 10 |
| 10 namespace autofill { | 11 namespace autofill { |
| 11 | 12 |
| 12 // The size of the border around the entire results popup, in pixels. | 13 // The size of the border around the entire results popup, in pixels. |
| 13 const int kPopupBorderThickness = 1; | 14 const int kPopupBorderThickness = 1; |
| 14 | 15 |
| 15 // Various colors used in the Autofill popup. | 16 // Various colors used in the Autofill popup. |
| 16 // TODO(crbug.com/666523): These colors ought to be replaced by getting colors | 17 const SkColor kBorderColor = |
| 17 // from ui::NativeTheme for consistency and accessibility. | 18 ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor( |
| 18 const SkColor kBorderColor = SkColorSetRGB(0xC7, 0xCA, 0xCE); | 19 ui::NativeTheme::kColorId_UnfocusedBorderColor); |
| 19 const SkColor kHoveredBackgroundColor = SkColorSetRGB(0xCD, 0xCD, 0xCD); | 20 const SkColor kHoveredBackgroundColor = |
| 20 const SkColor kLabelTextColor = SkColorSetRGB(0x64, 0x64, 0x64); | 21 ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor( |
|
Evan Stade
2016/12/15 17:42:14
you shouldn't really be calling this here as it wo
jiahuiguo
2016/12/20 09:58:10
Done.
| |
| 22 ui::NativeTheme::kColorId_ResultsTableHoveredBackground); | |
| 23 const SkColor kLabelTextColor = | |
| 24 ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor( | |
| 25 ui::NativeTheme::kColorId_TextfieldReadOnlyColor); | |
|
Mathieu
2016/12/15 17:37:06
Should we use kColorId_ResultsTableNormalDimmedTex
jiahuiguo
2016/12/20 09:58:10
Done.
| |
| 21 constexpr SkColor kPopupBackground = SK_ColorWHITE; | 26 constexpr SkColor kPopupBackground = SK_ColorWHITE; |
|
Mathieu
2016/12/15 17:37:06
Should we use kColorId_ResultsTableNormalBackgroun
jiahuiguo
2016/12/20 09:58:11
Done.
| |
| 22 constexpr SkColor kValueTextColor = SK_ColorBLACK; | 27 constexpr SkColor kValueTextColor = SK_ColorBLACK; |
|
Mathieu
2016/12/15 17:37:06
Should we use kColorId_ResultsTableNormalText?
jiahuiguo
2016/12/20 09:58:11
Done.
| |
| 23 | 28 |
| 24 } // namespace autofill | 29 } // namespace autofill |
| 25 | 30 |
| 26 #endif // CHROME_BROWSER_UI_AUTOFILL_POPUP_CONSTANTS_H_ | 31 #endif // CHROME_BROWSER_UI_AUTOFILL_POPUP_CONSTANTS_H_ |
| OLD | NEW |