| OLD | NEW |
| 1 // Copyright (c) 2011 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/search/search.h" | 7 #include "chrome/browser/search/search.h" |
| 8 #include "chrome/browser/themes/theme_properties.h" | 8 #include "chrome/browser/themes/theme_properties.h" |
| 9 #include "chrome/browser/themes/theme_service.h" | 9 #include "chrome/browser/themes/theme_service.h" |
| 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" | 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 79 } |
| 80 | 80 |
| 81 // Bottom stroke. | 81 // Bottom stroke. |
| 82 NSRect strokeRect = [self bounds]; | 82 NSRect strokeRect = [self bounds]; |
| 83 strokeRect.size.height = [self cr_lineWidth]; | 83 strokeRect.size.height = [self cr_lineWidth]; |
| 84 if (NSIntersectsRect(strokeRect, dirtyRect)) { | 84 if (NSIntersectsRect(strokeRect, dirtyRect)) { |
| 85 NSColor* strokeColor = | 85 NSColor* strokeColor = |
| 86 tp.GetNSColor(ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR); | 86 tp.GetNSColor(ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR); |
| 87 strokeColor = [[self strokeColor] blendedColorWithFraction:morph | 87 strokeColor = [[self strokeColor] blendedColorWithFraction:morph |
| 88 ofColor:strokeColor]; | 88 ofColor:strokeColor]; |
| 89 strokeColor = [strokeColor colorWithAlphaComponent:0.5]; | |
| 90 [strokeColor set]; | 89 [strokeColor set]; |
| 91 NSRectFillUsingOperation(NSIntersectionRect(strokeRect, dirtyRect), | 90 NSRectFillUsingOperation(NSIntersectionRect(strokeRect, dirtyRect), |
| 92 NSCompositeSourceOver); | 91 NSCompositeSourceOver); |
| 93 } | 92 } |
| 94 } | 93 } |
| 95 | 94 |
| 96 @end // @implementation BookmarkBarToolbarView | 95 @end // @implementation BookmarkBarToolbarView |
| OLD | NEW |