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

Unified Diff: chrome/browser/cocoa/download_item_cell.mm

Issue 495010: Mac: fix/implement app windows (not app mode), popups, drawing; refactor code. (Closed)
Patch Set: Updated per pink's review. Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/chrome_browser_window_unittest.mm ('k') | chrome/browser/cocoa/gradient_button_cell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/download_item_cell.mm
diff --git a/chrome/browser/cocoa/download_item_cell.mm b/chrome/browser/cocoa/download_item_cell.mm
index 57d79e38f7fd36a3d6f9c50d047b405b57866904..267fb0f0eb5de0d96d894f251931b2e163a534e4 100644
--- a/chrome/browser/cocoa/download_item_cell.mm
+++ b/chrome/browser/cocoa/download_item_cell.mm
@@ -397,20 +397,12 @@ const int kCompleteAnimationDuration = 2.5;
NSBezierPath* buttonInnerPath = [self
leftRoundedPath:radius inRect:buttonDrawRect];
- NSBezierPath* buttonOuterPath = [self
- leftRoundedPath:(radius + 1)
- inRect:NSInsetRect(buttonDrawRect, -1, -1)];
-
NSBezierPath* dropdownInnerPath = [self
rightRoundedPath:radius inRect:dropdownDrawRect];
- NSBezierPath* dropdownOuterPath = [self
- rightRoundedPath:(radius + 1)
- inRect:NSInsetRect(dropdownDrawRect, -1, -1)];
// Stroke the borders and appropriate fill gradient.
[self drawBorderAndFillForTheme:theme
controlView:controlView
- outerPath:buttonOuterPath
innerPath:buttonInnerPath
showClickedGradient:[self isButtonPartPressed]
showHighlightGradient:[self isMouseOverButtonPart]
@@ -421,7 +413,6 @@ const int kCompleteAnimationDuration = 2.5;
[self drawBorderAndFillForTheme:theme
controlView:controlView
- outerPath:dropdownOuterPath
innerPath:dropdownInnerPath
showClickedGradient:[self isDropdownPartPressed]
showHighlightGradient:[self isMouseOverDropdownPart]
« no previous file with comments | « chrome/browser/cocoa/chrome_browser_window_unittest.mm ('k') | chrome/browser/cocoa/gradient_button_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698