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/link.h" | 5 #include "chrome/views/link.h" |
6 | 6 |
7 #include "base/scoped_ptr.h" | |
8 #include "chrome/common/gfx/chrome_font.h" | 7 #include "chrome/common/gfx/chrome_font.h" |
9 #include "chrome/views/event.h" | 8 #include "chrome/views/event.h" |
10 | 9 |
11 namespace views { | 10 namespace views { |
12 | 11 |
13 static HCURSOR g_hand_cursor = NULL; | 12 static HCURSOR g_hand_cursor = NULL; |
14 | 13 |
15 // Default colors used for links. | 14 // Default colors used for links. |
16 static const SkColor kHighlightedColor = SkColorSetRGB(255, 0x00, 0x00); | 15 static const SkColor kHighlightedColor = SkColorSetRGB(255, 0x00, 0x00); |
17 static const SkColor kNormalColor = SkColorSetRGB(0, 51, 153); | 16 static const SkColor kNormalColor = SkColorSetRGB(0, 51, 153); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 if (!g_hand_cursor) { | 174 if (!g_hand_cursor) { |
176 g_hand_cursor = LoadCursor(NULL, IDC_HAND); | 175 g_hand_cursor = LoadCursor(NULL, IDC_HAND); |
177 } | 176 } |
178 return g_hand_cursor; | 177 return g_hand_cursor; |
179 } else { | 178 } else { |
180 return NULL; | 179 return NULL; |
181 } | 180 } |
182 } | 181 } |
183 | 182 |
184 } // namespace views | 183 } // namespace views |
OLD | NEW |