| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/views/style/platform_style.h" | 5 #include "ui/views/style/platform_style.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "ui/base/resource/resource_bundle.h" | 8 #include "ui/base/resource/resource_bundle.h" |
| 9 #include "ui/gfx/color_utils.h" | 9 #include "ui/gfx/color_utils.h" |
| 10 #include "ui/gfx/paint_vector_icon.h" | 10 #include "ui/gfx/paint_vector_icon.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // static | 79 // static |
| 80 void PlatformStyle::ApplyLabelButtonTextStyle( | 80 void PlatformStyle::ApplyLabelButtonTextStyle( |
| 81 views::Label* label, | 81 views::Label* label, |
| 82 ButtonColorByState* color_by_state) { | 82 ButtonColorByState* color_by_state) { |
| 83 ButtonColorByState& colors = *color_by_state; | 83 ButtonColorByState& colors = *color_by_state; |
| 84 colors[Button::STATE_PRESSED] = SK_ColorWHITE; | 84 colors[Button::STATE_PRESSED] = SK_ColorWHITE; |
| 85 } | 85 } |
| 86 | 86 |
| 87 // static | 87 // static |
| 88 void PlatformStyle::OnTextfieldKeypressUnhandled() { | 88 void PlatformStyle::OnTextfieldEditFailed() { |
| 89 NSBeep(); | 89 NSBeep(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace views | 92 } // namespace views |
| OLD | NEW |