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

Side by Side Diff: chrome/browser/cocoa/extensions/chevron_menu_button_cell.mm

Issue 3036040: Merge 54843 - [Mac] Integrate divider into browser-action overflow chevron.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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) 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 #include "chrome/browser/cocoa/extensions/chevron_menu_button_cell.h" 5 #include "chrome/browser/cocoa/extensions/chevron_menu_button_cell.h"
6 6
7 namespace { 7 namespace {
8 8
9 // Width of the divider. 9 // Width of the divider.
10 const CGFloat kDividerWidth = 1.0; 10 const CGFloat kDividerWidth = 1.0;
(...skipping 27 matching lines...) Expand all
38 nil]); 38 nil]);
39 39
40 NSRect edgeRect, remainder; 40 NSRect edgeRect, remainder;
41 NSDivideRect(cellFrame, &edgeRect, &remainder, kDividerWidth, NSMaxXEdge); 41 NSDivideRect(cellFrame, &edgeRect, &remainder, kDividerWidth, NSMaxXEdge);
42 edgeRect = NSInsetRect(edgeRect, 0.0, kDividerInset); 42 edgeRect = NSInsetRect(edgeRect, 0.0, kDividerInset);
43 43
44 [borderGradient drawInRect:edgeRect angle:90.0]; 44 [borderGradient drawInRect:edgeRect angle:90.0];
45 } 45 }
46 46
47 @end 47 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698