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

Side by Side Diff: chrome/browser/ui/views/download/download_shelf_context_menu_view.cc

Issue 10916180: Context menus on view elements should be positioned above the finger when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h" 5 #include "chrome/browser/ui/views/download/download_shelf_context_menu_view.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/download/download_item_model.h" 9 #include "chrome/browser/download/download_item_model.h"
10 #include "content/public/browser/download_item.h" 10 #include "content/public/browser/download_item.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // The return value of RunMenuAt indicates whether the MenuRunner was deleted 37 // The return value of RunMenuAt indicates whether the MenuRunner was deleted
38 // while running the menu, which indicates that the containing view may have 38 // while running the menu, which indicates that the containing view may have
39 // been deleted. We ignore the return value because our caller already assumes 39 // been deleted. We ignore the return value because our caller already assumes
40 // that the view could be deleted by the time we return from here. 40 // that the view could be deleted by the time we return from here.
41 ignore_result(menu_runner_->RunMenuAt( 41 ignore_result(menu_runner_->RunMenuAt(
42 parent_widget, 42 parent_widget,
43 NULL, 43 NULL,
44 rect, 44 rect,
45 position, 45 position,
46 views::MenuRunner::HAS_MNEMONICS)); 46 views::MenuRunner::HAS_MNEMONICS | views::MenuRunner::CONTEXT_MENU));
47 } 47 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/browser_action_view.cc ('k') | chrome/browser/ui/views/frame/browser_frame_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698