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

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

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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/view_unittest.cc » ('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 #include "ui/views/view.h" 5 #include "ui/views/view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 ui::GestureStatus View::OnGestureEvent(const GestureEvent& event) { 826 ui::GestureStatus View::OnGestureEvent(const GestureEvent& event) {
827 return ui::GESTURE_STATUS_UNKNOWN; 827 return ui::GESTURE_STATUS_UNKNOWN;
828 } 828 }
829 829
830 void View::SetMouseHandler(View* new_mouse_handler) { 830 void View::SetMouseHandler(View* new_mouse_handler) {
831 // |new_mouse_handler| may be NULL. 831 // |new_mouse_handler| may be NULL.
832 if (parent_) 832 if (parent_)
833 parent_->SetMouseHandler(new_mouse_handler); 833 parent_->SetMouseHandler(new_mouse_handler);
834 } 834 }
835 835
836 bool View::OnKeyPressed(const KeyEvent& event) { 836 bool View::OnKeyPressed(const ui::KeyEvent& event) {
837 return false; 837 return false;
838 } 838 }
839 839
840 bool View::OnKeyReleased(const KeyEvent& event) { 840 bool View::OnKeyReleased(const ui::KeyEvent& event) {
841 return false; 841 return false;
842 } 842 }
843 843
844 bool View::OnMouseWheel(const MouseWheelEvent& event) { 844 bool View::OnMouseWheel(const MouseWheelEvent& event) {
845 return false; 845 return false;
846 } 846 }
847 847
848 bool View::OnScrollEvent(const ScrollEvent& event) { 848 bool View::OnScrollEvent(const ScrollEvent& event) {
849 return false; 849 return false;
850 } 850 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 const Widget* widget = GetWidget(); 953 const Widget* widget = GetWidget();
954 return widget ? widget->GetFocusManager() : NULL; 954 return widget ? widget->GetFocusManager() : NULL;
955 } 955 }
956 956
957 void View::RequestFocus() { 957 void View::RequestFocus() {
958 FocusManager* focus_manager = GetFocusManager(); 958 FocusManager* focus_manager = GetFocusManager();
959 if (focus_manager && IsFocusable()) 959 if (focus_manager && IsFocusable())
960 focus_manager->SetFocusedView(this); 960 focus_manager->SetFocusedView(this);
961 } 961 }
962 962
963 bool View::SkipDefaultKeyEventProcessing(const KeyEvent& event) { 963 bool View::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) {
964 return false; 964 return false;
965 } 965 }
966 966
967 FocusTraversable* View::GetFocusTraversable() { 967 FocusTraversable* View::GetFocusTraversable() {
968 return NULL; 968 return NULL;
969 } 969 }
970 970
971 FocusTraversable* View::GetPaneFocusTraversable() { 971 FocusTraversable* View::GetPaneFocusTraversable() {
972 return NULL; 972 return NULL;
973 } 973 }
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 gfx::Point widget_location(event.location()); 2106 gfx::Point widget_location(event.location());
2107 ConvertPointToWidget(this, &widget_location); 2107 ConvertPointToWidget(this, &widget_location);
2108 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations); 2108 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations);
2109 return true; 2109 return true;
2110 #else 2110 #else
2111 return false; 2111 return false;
2112 #endif // !defined(OS_MACOSX) 2112 #endif // !defined(OS_MACOSX)
2113 } 2113 }
2114 2114
2115 } // namespace views 2115 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698