OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |