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

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

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_host_root_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 (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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 int* formats, 74 int* formats,
75 std::set<OSExchangeData::CustomFormat>* custom_formats) { 75 std::set<OSExchangeData::CustomFormat>* custom_formats) {
76 return false; 76 return false;
77 } 77 }
78 78
79 bool MenuDelegate::AreDropTypesRequired(MenuItemView* menu) { 79 bool MenuDelegate::AreDropTypesRequired(MenuItemView* menu) {
80 return false; 80 return false;
81 } 81 }
82 82
83 int MenuDelegate::GetDropOperation(MenuItemView* item, 83 int MenuDelegate::GetDropOperation(MenuItemView* item,
84 const DropTargetEvent& event, 84 const ui::DropTargetEvent& event,
85 DropPosition* position) { 85 DropPosition* position) {
86 NOTREACHED() << "If you override CanDrop, you need to override this too"; 86 NOTREACHED() << "If you override CanDrop, you need to override this too";
87 return ui::DragDropTypes::DRAG_NONE; 87 return ui::DragDropTypes::DRAG_NONE;
88 } 88 }
89 89
90 int MenuDelegate::OnPerformDrop(MenuItemView* menu, 90 int MenuDelegate::OnPerformDrop(MenuItemView* menu,
91 DropPosition position, 91 DropPosition position,
92 const DropTargetEvent& event) { 92 const ui::DropTargetEvent& event) {
93 NOTREACHED() << "If you override CanDrop, you need to override this too"; 93 NOTREACHED() << "If you override CanDrop, you need to override this too";
94 return ui::DragDropTypes::DRAG_NONE; 94 return ui::DragDropTypes::DRAG_NONE;
95 } 95 }
96 96
97 bool MenuDelegate::CanDrag(MenuItemView* menu) { 97 bool MenuDelegate::CanDrag(MenuItemView* menu) {
98 return false; 98 return false;
99 } 99 }
100 100
101 void MenuDelegate::WriteDragData(MenuItemView* sender, OSExchangeData* data) { 101 void MenuDelegate::WriteDragData(MenuItemView* sender, OSExchangeData* data) {
102 NOTREACHED() << "If you override CanDrag, you must override this too."; 102 NOTREACHED() << "If you override CanDrag, you must override this too.";
(...skipping 30 matching lines...) Expand all
133 MenuConfig::instance().submenu_horizontal_margin_size, 133 MenuConfig::instance().submenu_horizontal_margin_size,
134 MenuConfig::instance().submenu_vertical_margin_size, 134 MenuConfig::instance().submenu_vertical_margin_size,
135 MenuConfig::instance().submenu_horizontal_margin_size); 135 MenuConfig::instance().submenu_horizontal_margin_size);
136 } 136 }
137 137
138 Background* MenuDelegate::CreateMenuBackground() { 138 Background* MenuDelegate::CreateMenuBackground() {
139 return NULL; 139 return NULL;
140 } 140 }
141 141
142 } // namespace views 142 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_delegate.h ('k') | ui/views/controls/menu/menu_host_root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698