Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: views/controls/link.cc

Issue 4179001: [cros] Fix UI issues on SignIn pod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/user_image_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "views/controls/link.h" 5 #include "views/controls/link.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #endif 9 #endif
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #elif defined(OS_LINUX) 172 #elif defined(OS_LINUX)
173 return gdk_cursor_new(GDK_HAND2); 173 return gdk_cursor_new(GDK_HAND2);
174 #endif 174 #endif
175 } 175 }
176 176
177 std::string Link::GetClassName() const { 177 std::string Link::GetClassName() const {
178 return kViewClassName; 178 return kViewClassName;
179 } 179 }
180 180
181 void Link::SetHighlightedColor(const SkColor& color) { 181 void Link::SetHighlightedColor(const SkColor& color) {
182 normal_color_ = color; 182 highlighted_color_ = color;
183 ValidateStyle(); 183 ValidateStyle();
184 } 184 }
185 185
186 void Link::SetDisabledColor(const SkColor& color) { 186 void Link::SetDisabledColor(const SkColor& color) {
187 disabled_color_ = color; 187 disabled_color_ = color;
188 ValidateStyle(); 188 ValidateStyle();
189 } 189 }
190 190
191 void Link::SetNormalColor(const SkColor& color) { 191 void Link::SetNormalColor(const SkColor& color) {
192 normal_color_ = color; 192 normal_color_ = color;
(...skipping 23 matching lines...) Expand all
216 } else { 216 } else {
217 if (font().GetStyle() & gfx::Font::UNDERLINED) { 217 if (font().GetStyle() & gfx::Font::UNDERLINED) {
218 Label::SetFont( 218 Label::SetFont(
219 font().DeriveFont(0, font().GetStyle() & ~gfx::Font::UNDERLINED)); 219 font().DeriveFont(0, font().GetStyle() & ~gfx::Font::UNDERLINED));
220 } 220 }
221 Label::SetColor(disabled_color_); 221 Label::SetColor(disabled_color_);
222 } 222 }
223 } 223 }
224 224
225 } // namespace views 225 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_image_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698