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

Side by Side Diff: ui/views/controls/menu/menu_delegate.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/views/controls/menu/menu_config.h" 5 #include "ui/views/controls/menu/menu_config.h"
6 #include "ui/views/controls/menu/menu_delegate.h" 6 #include "ui/views/controls/menu/menu_delegate.h"
7 7
8 namespace views { 8 namespace views {
9 9
10 MenuDelegate::~MenuDelegate() {} 10 MenuDelegate::~MenuDelegate() {}
(...skipping 27 matching lines...) Expand all
38 return string16(); 38 return string16();
39 } 39 }
40 40
41 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) { 41 bool MenuDelegate::GetAccelerator(int id, ui::Accelerator* accelerator) {
42 return false; 42 return false;
43 } 43 }
44 44
45 bool MenuDelegate::ShowContextMenu(MenuItemView* source, 45 bool MenuDelegate::ShowContextMenu(MenuItemView* source,
46 int id, 46 int id,
47 const gfx::Point& p, 47 const gfx::Point& p,
48 bool is_mouse_gesture) { 48 ui::MenuSourceType source_type) {
49 return false; 49 return false;
50 } 50 }
51 51
52 bool MenuDelegate::SupportsCommand(int id) const { 52 bool MenuDelegate::SupportsCommand(int id) const {
53 return true; 53 return true;
54 } 54 }
55 55
56 bool MenuDelegate::IsCommandEnabled(int id) const { 56 bool MenuDelegate::IsCommandEnabled(int id) const {
57 return true; 57 return true;
58 } 58 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int* right_margin) const { 150 int* right_margin) const {
151 *left_margin = 0; 151 *left_margin = 0;
152 *right_margin = 0; 152 *right_margin = 0;
153 } 153 }
154 154
155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const { 155 bool MenuDelegate::ShouldReserveSpaceForSubmenuIndicator() const {
156 return true; 156 return true;
157 } 157 }
158 158
159 } // namespace views 159 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698