Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: ui/views/view.cc

Issue 11592011: events: Update mouse-event handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/view.h ('k') | ui/views/widget/desktop_aura/desktop_activation_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/view.h ('k') | ui/views/widget/desktop_aura/desktop_activation_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698