| 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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 | 914 |
| 915 gfx::Point point_in_child_coords(point); | 915 gfx::Point point_in_child_coords(point); |
| 916 ConvertPointToTarget(this, child, &point_in_child_coords); | 916 ConvertPointToTarget(this, child, &point_in_child_coords); |
| 917 View* handler = child->GetTooltipHandlerForPoint(point_in_child_coords); | 917 View* handler = child->GetTooltipHandlerForPoint(point_in_child_coords); |
| 918 if (handler) | 918 if (handler) |
| 919 return handler; | 919 return handler; |
| 920 } | 920 } |
| 921 return this; | 921 return this; |
| 922 } | 922 } |
| 923 | 923 |
| 924 bool View::GetWordAtPoint(const gfx::Point& point, |
| 925 gfx::NativeStyledString word, |
| 926 gfx::Point* baseline_point) { |
| 927 return false; |
| 928 } |
| 929 |
| 924 gfx::NativeCursor View::GetCursor(const ui::MouseEvent& event) { | 930 gfx::NativeCursor View::GetCursor(const ui::MouseEvent& event) { |
| 925 #if defined(OS_WIN) | 931 #if defined(OS_WIN) |
| 926 static ui::Cursor arrow; | 932 static ui::Cursor arrow; |
| 927 if (!arrow.platform()) | 933 if (!arrow.platform()) |
| 928 arrow.SetPlatformCursor(LoadCursor(NULL, IDC_ARROW)); | 934 arrow.SetPlatformCursor(LoadCursor(NULL, IDC_ARROW)); |
| 929 return arrow; | 935 return arrow; |
| 930 #else | 936 #else |
| 931 return gfx::kNullCursor; | 937 return gfx::kNullCursor; |
| 932 #endif | 938 #endif |
| 933 } | 939 } |
| (...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2418 // Message the RootView to do the drag and drop. That way if we're removed | 2424 // Message the RootView to do the drag and drop. That way if we're removed |
| 2419 // the RootView can detect it and avoid calling us back. | 2425 // the RootView can detect it and avoid calling us back. |
| 2420 gfx::Point widget_location(event.location()); | 2426 gfx::Point widget_location(event.location()); |
| 2421 ConvertPointToWidget(this, &widget_location); | 2427 ConvertPointToWidget(this, &widget_location); |
| 2422 widget->RunShellDrag(this, data, widget_location, drag_operations, source); | 2428 widget->RunShellDrag(this, data, widget_location, drag_operations, source); |
| 2423 // WARNING: we may have been deleted. | 2429 // WARNING: we may have been deleted. |
| 2424 return true; | 2430 return true; |
| 2425 } | 2431 } |
| 2426 | 2432 |
| 2427 } // namespace views | 2433 } // namespace views |
| OLD | NEW |