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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_button.h

Issue 1125423002: Dismiss context menu when download bar is closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dismiss context menu using NSMenu API. 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
Index: chrome/browser/ui/cocoa/download/download_item_button.h
diff --git a/chrome/browser/ui/cocoa/download/download_item_button.h b/chrome/browser/ui/cocoa/download/download_item_button.h
index e0124913885ae0ec4c59bfeb553794865cb4823d..33646d7e73dc1278ded01cf389cbece9f00d3442 100644
--- a/chrome/browser/ui/cocoa/download/download_item_button.h
+++ b/chrome/browser/ui/cocoa/download/download_item_button.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -17,11 +17,15 @@
@private
base::FilePath downloadPath_;
DownloadItemController* controller_; // weak
+ base::scoped_nsobject<NSMenu> contextMenu_;
}
@property(assign, nonatomic) base::FilePath download;
@property(assign, nonatomic) DownloadItemController* controller;
+// Shows the DownloadItemButton's context menu.
+- (void)showContextMenu;
+
// Overridden from DraggableButton.
- (void)beginDrag:(NSEvent*)event;

Powered by Google App Engine
This is Rietveld 408576698