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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 } | 860 } |
861 | 861 |
862 bool View::OnKeyReleased(const ui::KeyEvent& event) { | 862 bool View::OnKeyReleased(const ui::KeyEvent& event) { |
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 ui::EventResult View::OnKeyEvent(ui::KeyEvent* event) { | 870 void View::OnKeyEvent(ui::KeyEvent* event) { |
871 return ui::ER_UNHANDLED; | |
872 } | 871 } |
873 | 872 |
874 ui::EventResult View::OnMouseEvent(ui::MouseEvent* event) { | 873 ui::EventResult View::OnMouseEvent(ui::MouseEvent* event) { |
875 return ui::ER_UNHANDLED; | 874 return ui::ER_UNHANDLED; |
876 } | 875 } |
877 | 876 |
878 void View::OnScrollEvent(ui::ScrollEvent* event) { | 877 void View::OnScrollEvent(ui::ScrollEvent* event) { |
879 } | 878 } |
880 | 879 |
881 void View::OnTouchEvent(ui::TouchEvent* event) { | 880 void View::OnTouchEvent(ui::TouchEvent* event) { |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 ConvertPointToWidget(this, &widget_location); | 2163 ConvertPointToWidget(this, &widget_location); |
2165 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, | 2164 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, |
2166 source); | 2165 source); |
2167 return true; | 2166 return true; |
2168 #else | 2167 #else |
2169 return false; | 2168 return false; |
2170 #endif // !defined(OS_MACOSX) | 2169 #endif // !defined(OS_MACOSX) |
2171 } | 2170 } |
2172 | 2171 |
2173 } // namespace views | 2172 } // namespace views |
OLD | NEW |