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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months 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 | « views/controls/label_unittest.cc ('k') | views/controls/listbox/native_listbox_win.cc » ('j') | 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
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "gfx/color_utils.h"
13 #include "gfx/font.h"
14 #include "ui/base/keycodes/keyboard_codes.h" 12 #include "ui/base/keycodes/keyboard_codes.h"
13 #include "ui/gfx/color_utils.h"
14 #include "ui/gfx/font.h"
15 #include "views/event.h" 15 #include "views/event.h"
16 16
17 #if defined(OS_LINUX) 17 #if defined(OS_LINUX)
18 #include "gfx/gtk_util.h" 18 #include "ui/gfx/gtk_util.h"
19 #endif 19 #endif
20 20
21 namespace { 21 namespace {
22 22
23 void GetColors(const SkColor* background_color, // NULL means "use default" 23 void GetColors(const SkColor* background_color, // NULL means "use default"
24 SkColor* highlighted_color, 24 SkColor* highlighted_color,
25 SkColor* disabled_color, 25 SkColor* disabled_color,
26 SkColor* normal_color) { 26 SkColor* normal_color) {
27 static SkColor kHighlightedColor, kDisabledColor, kNormalColor; 27 static SkColor kHighlightedColor, kDisabledColor, kNormalColor;
28 static bool initialized = false; 28 static bool initialized = false;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } else { 220 } else {
221 if (font().GetStyle() & gfx::Font::UNDERLINED) { 221 if (font().GetStyle() & gfx::Font::UNDERLINED) {
222 Label::SetFont( 222 Label::SetFont(
223 font().DeriveFont(0, font().GetStyle() & ~gfx::Font::UNDERLINED)); 223 font().DeriveFont(0, font().GetStyle() & ~gfx::Font::UNDERLINED));
224 } 224 }
225 Label::SetColor(disabled_color_); 225 Label::SetColor(disabled_color_);
226 } 226 }
227 } 227 }
228 228
229 } // namespace views 229 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/label_unittest.cc ('k') | views/controls/listbox/native_listbox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698