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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 return false; | 863 return false; |
864 } | 864 } |
865 | 865 |
866 bool View::OnMouseWheel(const ui::MouseWheelEvent& event) { | 866 bool View::OnMouseWheel(const ui::MouseWheelEvent& event) { |
867 return false; | 867 return false; |
868 } | 868 } |
869 | 869 |
870 void View::OnKeyEvent(ui::KeyEvent* event) { | 870 void View::OnKeyEvent(ui::KeyEvent* event) { |
871 } | 871 } |
872 | 872 |
873 ui::EventResult View::OnMouseEvent(ui::MouseEvent* event) { | 873 void View::OnMouseEvent(ui::MouseEvent* event) { |
874 return ui::ER_UNHANDLED; | |
875 } | 874 } |
876 | 875 |
877 void View::OnScrollEvent(ui::ScrollEvent* event) { | 876 void View::OnScrollEvent(ui::ScrollEvent* event) { |
878 } | 877 } |
879 | 878 |
880 void View::OnTouchEvent(ui::TouchEvent* event) { | 879 void View::OnTouchEvent(ui::TouchEvent* event) { |
881 } | 880 } |
882 | 881 |
883 void View::OnGestureEvent(ui::GestureEvent* event) { | 882 void View::OnGestureEvent(ui::GestureEvent* event) { |
884 } | 883 } |
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 ConvertPointToWidget(this, &widget_location); | 2162 ConvertPointToWidget(this, &widget_location); |
2164 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, | 2163 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, |
2165 source); | 2164 source); |
2166 return true; | 2165 return true; |
2167 #else | 2166 #else |
2168 return false; | 2167 return false; |
2169 #endif // !defined(OS_MACOSX) | 2168 #endif // !defined(OS_MACOSX) |
2170 } | 2169 } |
2171 | 2170 |
2172 } // namespace views | 2171 } // namespace views |
OLD | NEW |