| 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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. | 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. |
| 6 | 6 |
| 7 #include "ui/views/view.h" | 7 #include "ui/views/view.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 FocusTraversable* View::GetFocusTraversable() { | 1245 FocusTraversable* View::GetFocusTraversable() { |
| 1246 return NULL; | 1246 return NULL; |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 FocusTraversable* View::GetPaneFocusTraversable() { | 1249 FocusTraversable* View::GetPaneFocusTraversable() { |
| 1250 return NULL; | 1250 return NULL; |
| 1251 } | 1251 } |
| 1252 | 1252 |
| 1253 // Tooltips -------------------------------------------------------------------- | 1253 // Tooltips -------------------------------------------------------------------- |
| 1254 | 1254 |
| 1255 bool View::GetTooltipText(const gfx::Point& p, string16* tooltip) const { | 1255 bool View::GetTooltipText(const gfx::Point& p, base::string16* tooltip) const { |
| 1256 return false; | 1256 return false; |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 bool View::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* loc) const { | 1259 bool View::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* loc) const { |
| 1260 return false; | 1260 return false; |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 // Context menus --------------------------------------------------------------- | 1263 // Context menus --------------------------------------------------------------- |
| 1264 | 1264 |
| 1265 void View::ShowContextMenu(const gfx::Point& p, | 1265 void View::ShowContextMenu(const gfx::Point& p, |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 // Message the RootView to do the drag and drop. That way if we're removed | 2395 // Message the RootView to do the drag and drop. That way if we're removed |
| 2396 // the RootView can detect it and avoid calling us back. | 2396 // the RootView can detect it and avoid calling us back. |
| 2397 gfx::Point widget_location(event.location()); | 2397 gfx::Point widget_location(event.location()); |
| 2398 ConvertPointToWidget(this, &widget_location); | 2398 ConvertPointToWidget(this, &widget_location); |
| 2399 widget->RunShellDrag(this, data, widget_location, drag_operations, source); | 2399 widget->RunShellDrag(this, data, widget_location, drag_operations, source); |
| 2400 // WARNING: we may have been deleted. | 2400 // WARNING: we may have been deleted. |
| 2401 return true; | 2401 return true; |
| 2402 } | 2402 } |
| 2403 | 2403 |
| 2404 } // namespace views | 2404 } // namespace views |
| OLD | NEW |