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

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

Issue 11570012: events: Update key-event handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-for-landing 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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