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

Side by Side Diff: chrome/browser/cocoa/download_item_button.h

Issue 380002: Mac: Show download item menu on mouse down instead of mouse up. (Closed)
Patch Set: comments Created 10 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/download_item_button.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #import "chrome/browser/cocoa/draggable_button.h" 8 #import "chrome/browser/cocoa/draggable_button.h"
9 9
10 // A button that is a drag source for a file. 10 @class DownloadItemController;
11
12 // A button that is a drag source for a file and that displays a context menu
13 // instead of firing an action when clicked in a certain area.
11 @interface DownloadItemButton : DraggableButton { 14 @interface DownloadItemButton : DraggableButton {
12 @private 15 @private
13 FilePath downloadPath_; 16 FilePath downloadPath_;
17 DownloadItemController* controller_; // weak
14 } 18 }
15 19
16 @property(assign, nonatomic) FilePath download; 20 @property(assign, nonatomic) FilePath download;
21 @property(assign, nonatomic) DownloadItemController* controller;
17 22
18 // Overridden from DraggableButton. 23 // Overridden from DraggableButton.
19 - (void)beginDrag:(NSEvent*)event; 24 - (void)beginDrag:(NSEvent*)event;
20 25
21 @end 26 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/download_item_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698