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

Side by Side Diff: ui/app_list/views/app_list_menu_views.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/app_list/views/app_list_menu_views.h" 5 #include "ui/app_list/views/app_list_menu_views.h"
6 6
7 #include "grit/ui_resources.h" 7 #include "grit/ui_resources.h"
8 #include "ui/app_list/app_list_view_delegate.h" 8 #include "ui/app_list/app_list_view_delegate.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 #include "ui/views/controls/button/menu_button.h" 10 #include "ui/views/controls/button/menu_button.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 menu_runner_.reset(new views::MenuRunner(menu_)); 131 menu_runner_.reset(new views::MenuRunner(menu_));
132 menu_delegate_->BuildMenu(menu_); 132 menu_delegate_->BuildMenu(menu_);
133 } 133 }
134 134
135 AppListMenuViews::~AppListMenuViews() {} 135 AppListMenuViews::~AppListMenuViews() {}
136 136
137 void AppListMenuViews::RunMenuAt(views::MenuButton* button, 137 void AppListMenuViews::RunMenuAt(views::MenuButton* button,
138 const gfx::Point& point) { 138 const gfx::Point& point) {
139 ignore_result(menu_runner_->RunMenuAt(button->GetWidget(), button, 139 ignore_result(menu_runner_->RunMenuAt(button->GetWidget(), button,
140 gfx::Rect(point, gfx::Size()), 140 gfx::Rect(point, gfx::Size()),
141 MenuItemView::TOPRIGHT, 0)); 141 MenuItemView::TOPRIGHT,
142 ui::MENU_SOURCE_NONE, 0));
142 } 143 }
143 144
144 void AppListMenuViews::Cancel() { 145 void AppListMenuViews::Cancel() {
145 menu_runner_->Cancel(); 146 menu_runner_->Cancel();
146 } 147 }
147 148
148 } // namespace app_list 149 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698