| 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/views/text_button.h" | 5 #include "chrome/views/text_button.h" |
| 6 | 6 |
| 7 #include "chrome/app/theme/theme_resources.h" | 7 #include "grit/theme_resources.h" |
| 8 #include "chrome/common/gfx/chrome_canvas.h" | 8 #include "chrome/common/gfx/chrome_canvas.h" |
| 9 #include "chrome/common/resource_bundle.h" | 9 #include "chrome/common/resource_bundle.h" |
| 10 #include "chrome/common/throb_animation.h" | 10 #include "chrome/common/throb_animation.h" |
| 11 #include "chrome/common/win_util.h" | 11 #include "chrome/common/win_util.h" |
| 12 #include "chrome/views/button.h" | 12 #include "chrome/views/button.h" |
| 13 #include "chrome/views/event.h" | 13 #include "chrome/views/event.h" |
| 14 #include "chrome/views/view_menu_delegate.h" | 14 #include "chrome/views/view_menu_delegate.h" |
| 15 | 15 |
| 16 #include "generated_resources.h" | 16 #include "generated_resources.h" |
| 17 | 17 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 void TextButton::SetEnabled(bool enabled) { | 292 void TextButton::SetEnabled(bool enabled) { |
| 293 if (enabled == IsEnabled()) | 293 if (enabled == IsEnabled()) |
| 294 return; | 294 return; |
| 295 BaseButton::SetEnabled(enabled); | 295 BaseButton::SetEnabled(enabled); |
| 296 color_ = enabled ? kEnabledColor : kDisabledColor; | 296 color_ = enabled ? kEnabledColor : kDisabledColor; |
| 297 SchedulePaint(); | 297 SchedulePaint(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace views | 300 } // namespace views |
| 301 | 301 |
| OLD | NEW |