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

Side by Side Diff: chrome/browser/cocoa/download_shelf_view.mm

Issue 165500: Prevent mouse down events in the bookmark bar and download shelf from moving the browser window (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_view_unittest.mm ('k') | chrome/browser/cocoa/download_shelf_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698