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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm

Issue 2872503005: [Mac] Fix for the Verbose State Text Color (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | 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 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" 5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" 9 #include "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
10 #include "skia/ext/skia_utils_mac.h" 10 #include "skia/ext/skia_utils_mac.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 owner_->OnMouseEntered(); 134 owner_->OnMouseEntered();
135 } 135 }
136 136
137 - (void)mouseExited:(NSEvent*)event { 137 - (void)mouseExited:(NSEvent*)event {
138 owner_->OnMouseExited(); 138 owner_->OnMouseExited();
139 } 139 }
140 140
141 @end 141 @end
142 142
143 const CGFloat LocationBarDecoration::kOmittedWidth = 0.0; 143 const CGFloat LocationBarDecoration::kOmittedWidth = 0.0;
144 const SkColor LocationBarDecoration::kMaterialDarkModeTextColor = 0xCCFFFFFF; 144 const SkColor LocationBarDecoration::kMaterialDarkModeTextColor = SK_ColorWHITE;
145 145
146 LocationBarDecoration::LocationBarDecoration() { 146 LocationBarDecoration::LocationBarDecoration() {
147 accessibility_view_.reset( 147 accessibility_view_.reset(
148 [[DecorationAccessibilityView alloc] initWithOwner:this]); 148 [[DecorationAccessibilityView alloc] initWithOwner:this]);
149 [accessibility_view_.get() setHidden:YES]; 149 [accessibility_view_.get() setHidden:YES];
150 } 150 }
151 151
152 void LocationBarDecoration::OnAccessibilityViewAction() { 152 void LocationBarDecoration::OnAccessibilityViewAction() {
153 // Turn the action into a synthesized mouse click at the center of |this|. 153 // Turn the action into a synthesized mouse click at the center of |this|.
154 NSRect frame = [accessibility_view_.get() frame]; 154 NSRect frame = [accessibility_view_.get() frame];
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 CGFloat gray_scale = 412 CGFloat gray_scale =
413 location_bar_is_dark ? kDividerIncognitoGrayScale : kDividerGrayScale; 413 location_bar_is_dark ? kDividerIncognitoGrayScale : kDividerGrayScale;
414 return 414 return
415 [NSColor colorWithCalibratedWhite:gray_scale alpha:kDividerAlpha / 255.0]; 415 [NSColor colorWithCalibratedWhite:gray_scale alpha:kDividerAlpha / 255.0];
416 } 416 }
417 417
418 const gfx::VectorIcon* LocationBarDecoration::GetMaterialVectorIcon() const { 418 const gfx::VectorIcon* LocationBarDecoration::GetMaterialVectorIcon() const {
419 NOTREACHED(); 419 NOTREACHED();
420 return nullptr; 420 return nullptr;
421 } 421 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698