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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_view.mm

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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/find_bar/find_bar_view.h" 5 #import "chrome/browser/ui/cocoa/find_bar/find_bar_view.h"
6 6
7 #import "chrome/browser/ui/cocoa/nsview_additions.h" 7 #import "chrome/browser/ui/cocoa/nsview_additions.h"
8 #import "chrome/browser/ui/cocoa/themed_window.h" 8 #import "chrome/browser/ui/cocoa/themed_window.h"
9 #import "chrome/browser/ui/cocoa/url_drop_target.h" 9 #import "chrome/browser/ui/cocoa/url_drop_target.h"
10 #import "chrome/browser/ui/cocoa/view_id_util.h" 10 #import "chrome/browser/ui/cocoa/view_id_util.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 [path curveToPoint:topRight 63 [path curveToPoint:topRight
64 controlPoint1:NSMakePoint(midRight2.x, topLeft.y) 64 controlPoint1:NSMakePoint(midRight2.x, topLeft.y)
65 controlPoint2:NSMakePoint(midRight2.x, topLeft.y)]; 65 controlPoint2:NSMakePoint(midRight2.x, topLeft.y)];
66 66
67 { 67 {
68 gfx::ScopedNSGraphicsContextSaveGState scopedGState; 68 gfx::ScopedNSGraphicsContextSaveGState scopedGState;
69 NSGraphicsContext* context = [NSGraphicsContext currentContext]; 69 NSGraphicsContext* context = [NSGraphicsContext currentContext];
70 [path addClip]; 70 [path addClip];
71 71
72 // Set the pattern phase 72 // Set the pattern phase
73 NSPoint phase = [[self window] themePatternPhase]; 73 NSPoint phase = [[self window]
74 themePatternPhaseForAlignment:THEME_PATTERN_ALIGN_WITH_TAB_STRIP];
74 75
75 [context cr_setPatternPhase:phase forView:self]; 76 [context cr_setPatternPhase:phase forView:self];
76 [super drawBackgroundWithOpaque:YES]; 77 [super drawBackgroundWithOpaque:YES];
77 } 78 }
78 79
79 [[self strokeColor] set]; 80 [[self strokeColor] set];
80 [path setLineWidth:lineWidth]; 81 [path setLineWidth:lineWidth];
81 [path stroke]; 82 [path stroke];
82 } 83 }
83 84
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return VIEW_ID_FIND_IN_PAGE; 138 return VIEW_ID_FIND_IN_PAGE;
138 } 139 }
139 140
140 // Specifies that mouse events over this view should be ignored by the 141 // Specifies that mouse events over this view should be ignored by the
141 // render host. 142 // render host.
142 - (BOOL)nonWebContentView { 143 - (BOOL)nonWebContentView {
143 return YES; 144 return YES;
144 } 145 }
145 146
146 @end 147 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698