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

Side by Side Diff: ui/base/models/menu_model.cc

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make event_utils::DispositionFromEventFlags not view-specific. Created 9 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) 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 "ui/base/models/menu_model.h" 5 #include "ui/base/models/menu_model.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 int MenuModel::GetFirstItemIndex(gfx::NativeMenu native_menu) const { 9 int MenuModel::GetFirstItemIndex(gfx::NativeMenu native_menu) const {
10 return 0; 10 return 0;
(...skipping 21 matching lines...) Expand all
32 return true; 32 return true;
33 } 33 }
34 } 34 }
35 return false; 35 return false;
36 } 36 }
37 37
38 const gfx::Font* MenuModel::GetLabelFontAt(int index) const { 38 const gfx::Font* MenuModel::GetLabelFontAt(int index) const {
39 return NULL; 39 return NULL;
40 } 40 }
41 41
42 // Default implementation ignores the disposition. 42 // Default implementation ignores the flags
43 void MenuModel::ActivatedAtWithDisposition(int index, int disposition) { 43 void MenuModel::ActivatedAtWithFlags(int index, int flags) {
44 ActivatedAt(index); 44 ActivatedAt(index);
45 } 45 }
46 46
47 } // namespace ui 47 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698