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

Unified Diff: ui/base/cocoa/nsview_additions.h

Issue 1125363005: Fix darkly-drawn Show All button in Downloads Shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change API to accommodate Show All button background drawing. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_show_all_button.mm ('k') | ui/base/cocoa/nsview_additions.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/nsview_additions.h
diff --git a/ui/base/cocoa/nsview_additions.h b/ui/base/cocoa/nsview_additions.h
index 467c04fa62066c81f3a9860e14c9015d38d14941..62043b2ab06e35d95613194d796875b7e6a8f354 100644
--- a/ui/base/cocoa/nsview_additions.h
+++ b/ui/base/cocoa/nsview_additions.h
@@ -37,7 +37,12 @@
// Draw using ancestorView's drawRect function into this view's rect. Do any
// required translating or flipping to transform between the two coordinate
-// systems.
+// systems, and optionally clip to the ancestor view's bounds.
+- (void)cr_drawUsingAncestor:(NSView*)ancestorView inRect:(NSRect)dirtyRect
+ clippedToAncestorBounds:(BOOL)clipToAncestorBounds;
+
+// Same as cr_drawUsingAncestor:inRect:clippedToAncestorBounds: except always
+// clips to the ancestor view's bounds.
- (void)cr_drawUsingAncestor:(NSView*)ancestorView inRect:(NSRect)dirtyRect;
// Used by ancestorView in the above draw call, to look up the child view that
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_show_all_button.mm ('k') | ui/base/cocoa/nsview_additions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698