OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bookmarks/bookmark_bar_instructions_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/defaults.h" | 10 #include "chrome/browser/defaults.h" |
11 #include "chrome/browser/themes/theme_properties.h" | 11 #include "chrome/browser/themes/theme_properties.h" |
12 #include "chrome/browser/ui/bookmarks/bookmark_bar_instructions_delegate.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_bar_instructions_delegate.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "ui/base/accessibility/accessible_view_state.h" | 14 #include "ui/base/accessibility/accessible_view_state.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 #include "ui/base/theme_provider.h" | 16 #include "ui/base/theme_provider.h" |
17 #include "ui/views/controls/label.h" | 17 #include "ui/views/controls/label.h" |
18 #include "ui/views/controls/link.h" | 18 #include "ui/views/controls/link.h" |
19 | 19 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const ui::ThemeProvider* theme_provider = GetThemeProvider(); | 119 const ui::ThemeProvider* theme_provider = GetThemeProvider(); |
120 if (!theme_provider) | 120 if (!theme_provider) |
121 return; | 121 return; |
122 updated_colors_ = true; | 122 updated_colors_ = true; |
123 SkColor text_color = | 123 SkColor text_color = |
124 theme_provider->GetColor(ThemeProperties::COLOR_BOOKMARK_TEXT); | 124 theme_provider->GetColor(ThemeProperties::COLOR_BOOKMARK_TEXT); |
125 instructions_->SetEnabledColor(text_color); | 125 instructions_->SetEnabledColor(text_color); |
126 if (import_link_) | 126 if (import_link_) |
127 import_link_->SetEnabledColor(text_color); | 127 import_link_->SetEnabledColor(text_color); |
128 } | 128 } |
OLD | NEW |