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

Unified Diff: ui/views/widget/desktop_native_widget_aura.cc

Issue 10908127: events: Move EventTarget into Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/desktop_native_widget_aura.h ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_native_widget_aura.cc b/ui/views/widget/desktop_native_widget_aura.cc
index 4d5f0a79a57d32d306ac7df1c5c98737cb7352b2..5af67b487b24af0a5ca648943a158295e388b866 100644
--- a/ui/views/widget/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_native_widget_aura.cc
@@ -302,10 +302,6 @@ void DesktopNativeWidgetAura::OnFocus(aura::Window* old_focused_window) {
void DesktopNativeWidgetAura::OnBlur() {
}
-bool DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) {
- return false;
-}
-
gfx::NativeCursor DesktopNativeWidgetAura::GetCursor(const gfx::Point& point) {
return gfx::kNullCursor;
}
@@ -321,19 +317,6 @@ bool DesktopNativeWidgetAura::ShouldDescendIntoChildForEventHandling(
return true;
}
-bool DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
- return false;
-}
-
-ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) {
- return ui::TOUCH_STATUS_UNKNOWN;
-}
-
-ui::EventResult DesktopNativeWidgetAura::OnGestureEvent(
- ui::GestureEvent* event) {
- return ui::ER_UNHANDLED;
-}
-
bool DesktopNativeWidgetAura::CanFocus() {
return true;
}
@@ -364,4 +347,24 @@ bool DesktopNativeWidgetAura::HasHitTestMask() const {
void DesktopNativeWidgetAura::GetHitTestMask(gfx::Path* mask) const {
}
+////////////////////////////////////////////////////////////////////////////////
+// DesktopNativeWidgetAura, ui::EventHandler implementation:
+
+ui::EventResult DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) {
+ return ui::ER_UNHANDLED;
+}
+
+ui::EventResult DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
+ return ui::ER_UNHANDLED;
+}
+
+ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) {
+ return ui::TOUCH_STATUS_UNKNOWN;
+}
+
+ui::EventResult DesktopNativeWidgetAura::OnGestureEvent(
+ ui::GestureEvent* event) {
+ return ui::ER_UNHANDLED;
+}
+
} // namespace views
« no previous file with comments | « ui/views/widget/desktop_native_widget_aura.h ('k') | ui/views/widget/native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698