| 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/view.h" | 5 #include "ui/views/view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 bool View::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* loc) const { | 985 bool View::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* loc) const { |
| 986 return false; | 986 return false; |
| 987 } | 987 } |
| 988 | 988 |
| 989 // Context menus --------------------------------------------------------------- | 989 // Context menus --------------------------------------------------------------- |
| 990 | 990 |
| 991 void View::ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture) { | 991 void View::ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture) { |
| 992 if (!context_menu_controller_) | 992 if (!context_menu_controller_) |
| 993 return; | 993 return; |
| 994 | 994 |
| 995 context_menu_controller_->ShowContextMenuForView(this, p, is_mouse_gesture); | 995 context_menu_controller_->ShowContextMenuForView(this, p); |
| 996 } | 996 } |
| 997 | 997 |
| 998 // Drag and drop --------------------------------------------------------------- | 998 // Drag and drop --------------------------------------------------------------- |
| 999 | 999 |
| 1000 bool View::GetDropFormats( | 1000 bool View::GetDropFormats( |
| 1001 int* formats, | 1001 int* formats, |
| 1002 std::set<OSExchangeData::CustomFormat>* custom_formats) { | 1002 std::set<OSExchangeData::CustomFormat>* custom_formats) { |
| 1003 return false; | 1003 return false; |
| 1004 } | 1004 } |
| 1005 | 1005 |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 | 2071 |
| 2072 // Message the RootView to do the drag and drop. That way if we're removed | 2072 // Message the RootView to do the drag and drop. That way if we're removed |
| 2073 // the RootView can detect it and avoid calling us back. | 2073 // the RootView can detect it and avoid calling us back. |
| 2074 gfx::Point widget_location(event.location()); | 2074 gfx::Point widget_location(event.location()); |
| 2075 ConvertPointToWidget(this, &widget_location); | 2075 ConvertPointToWidget(this, &widget_location); |
| 2076 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations); | 2076 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations); |
| 2077 #endif // !defined(OS_MACOSX) | 2077 #endif // !defined(OS_MACOSX) |
| 2078 } | 2078 } |
| 2079 | 2079 |
| 2080 } // namespace views | 2080 } // namespace views |
| OLD | NEW |