| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cocoa/download_shelf_view.h" | 5 #import "chrome/browser/cocoa/download_shelf_view.h" |
| 6 | 6 |
| 7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 8 #import "third_party/GTM/AppKit/GTMTheme.h" | 8 #import "third_party/GTM/AppKit/GTMTheme.h" |
| 9 | 9 |
| 10 @implementation DownloadShelfView | 10 @implementation DownloadShelfView |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 NSGradientDrawsAfterEndingLocation]; | 39 NSGradientDrawsAfterEndingLocation]; |
| 40 } | 40 } |
| 41 | 41 |
| 42 // Draw top stroke | 42 // Draw top stroke |
| 43 [[self strokeColor] set]; | 43 [[self strokeColor] set]; |
| 44 NSRect borderRect, contentRect; | 44 NSRect borderRect, contentRect; |
| 45 NSDivideRect([self bounds], &borderRect, &contentRect, 1, NSMaxYEdge); | 45 NSDivideRect([self bounds], &borderRect, &contentRect, 1, NSMaxYEdge); |
| 46 NSRectFillUsingOperation(borderRect, NSCompositeSourceOver); | 46 NSRectFillUsingOperation(borderRect, NSCompositeSourceOver); |
| 47 } | 47 } |
| 48 | 48 |
| 49 // Mouse down events on the download shelf should not allow dragging the parent |
| 50 // window around. |
| 51 - (BOOL)mouseDownCanMoveWindow { |
| 52 return NO; |
| 53 } |
| 54 |
| 49 @end | 55 @end |
| OLD | NEW |