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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm

Issue 1508893003: Use proper namespace in skia/ext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h" 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return [NSColor controlHighlightColor]; 56 return [NSColor controlHighlightColor];
57 } 57 }
58 58
59 NSColor* ContentTextColor() { 59 NSColor* ContentTextColor() {
60 return [NSColor blackColor]; 60 return [NSColor blackColor];
61 } 61 }
62 NSColor* DimTextColor() { 62 NSColor* DimTextColor() {
63 return [NSColor darkGrayColor]; 63 return [NSColor darkGrayColor];
64 } 64 }
65 NSColor* PositiveTextColor() { 65 NSColor* PositiveTextColor() {
66 return gfx::SkColorToCalibratedNSColor(SkColorSetRGB(0x0b, 0x80, 0x43)); 66 return skia::SkColorToCalibratedNSColor(SkColorSetRGB(0x0b, 0x80, 0x43));
67 } 67 }
68 NSColor* NegativeTextColor() { 68 NSColor* NegativeTextColor() {
69 return gfx::SkColorToCalibratedNSColor(SkColorSetRGB(0xc5, 0x39, 0x29)); 69 return skia::SkColorToCalibratedNSColor(SkColorSetRGB(0xc5, 0x39, 0x29));
70 } 70 }
71 NSColor* URLTextColor() { 71 NSColor* URLTextColor() {
72 return [NSColor colorWithCalibratedRed:0.0 green:0.55 blue:0.0 alpha:1.0]; 72 return [NSColor colorWithCalibratedRed:0.0 green:0.55 blue:0.0 alpha:1.0];
73 } 73 }
74 74
75 NSFont* FieldFont() { 75 NSFont* FieldFont() {
76 return OmniboxViewMac::GetFieldFont(gfx::Font::NORMAL); 76 return OmniboxViewMac::GetFieldFont(gfx::Font::NORMAL);
77 } 77 }
78 NSFont* BoldFieldFont() { 78 NSFont* BoldFieldFont() {
79 return OmniboxViewMac::GetFieldFont(gfx::Font::BOLD); 79 return OmniboxViewMac::GetFieldFont(gfx::Font::BOLD);
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 return base::i18n::IsRTL() ? (inputWidth - glyphOffset) : glyphOffset; 623 return base::i18n::IsRTL() ? (inputWidth - glyphOffset) : glyphOffset;
624 } 624 }
625 625
626 + (NSAttributedString*)createSeparatorString { 626 + (NSAttributedString*)createSeparatorString {
627 base::string16 raw_separator = 627 base::string16 raw_separator =
628 l10n_util::GetStringUTF16(IDS_AUTOCOMPLETE_MATCH_DESCRIPTION_SEPARATOR); 628 l10n_util::GetStringUTF16(IDS_AUTOCOMPLETE_MATCH_DESCRIPTION_SEPARATOR);
629 return CreateAttributedString(raw_separator, DimTextColor()); 629 return CreateAttributedString(raw_separator, DimTextColor());
630 } 630 }
631 631
632 @end 632 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698