OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autocomplete/autocomplete_popup_view_gtk.h" | 5 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "chrome/browser/autocomplete/autocomplete.h" | 9 #include "chrome/browser/autocomplete/autocomplete.h" |
10 #include "chrome/browser/autocomplete/autocomplete_match.h" | 10 #include "chrome/browser/autocomplete/autocomplete_match.h" |
11 #include "chrome/browser/gtk/gtk_util.h" | 11 #include "chrome/browser/ui/gtk/gtk_util.h" |
12 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 static const float kLargeWidth = 10000; | 16 static const float kLargeWidth = 10000; |
17 | 17 |
18 const GdkColor kContentTextColor = GDK_COLOR_RGB(0x00, 0x00, 0x00); | 18 const GdkColor kContentTextColor = GDK_COLOR_RGB(0x00, 0x00, 0x00); |
19 const GdkColor kDimContentTextColor = GDK_COLOR_RGB(0x80, 0x80, 0x80); | 19 const GdkColor kDimContentTextColor = GDK_COLOR_RGB(0x80, 0x80, 0x80); |
20 const GdkColor kURLTextColor = GDK_COLOR_RGB(0x00, 0x88, 0x00); | 20 const GdkColor kURLTextColor = GDK_COLOR_RGB(0x00, 0x88, 0x00); |
21 | 21 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // One color for the entire string, and it's not the one we passed | 409 // One color for the entire string, and it's not the one we passed |
410 // in. | 410 // in. |
411 EXPECT_EQ(kContents.size(), | 411 EXPECT_EQ(kContents.size(), |
412 RunLengthForAttrType(0U, | 412 RunLengthForAttrType(0U, |
413 kContents.size(), | 413 kContents.size(), |
414 PANGO_ATTR_FOREGROUND)); | 414 PANGO_ATTR_FOREGROUND)); |
415 EXPECT_TRUE(RunHasColor(0U, | 415 EXPECT_TRUE(RunHasColor(0U, |
416 kContents.size(), | 416 kContents.size(), |
417 kURLTextColor)); | 417 kURLTextColor)); |
418 } | 418 } |
OLD | NEW |